To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 13938
13937  |  13939
Subject: 
Re: I'm sure one of you has already worked this out...
Newsgroups: 
lugnet.cad, lugnet.cad.ray, lugnet.cad.ray
Date: 
Tue, 18 Jul 2006 05:26:55 GMT
Viewed: 
6214 times
  
In lugnet.cad, Gabriel McGrath wrote:
As you can see, I am using bright pink (255,0,255) as my transparency
colour.
(I set it as 'background' in LP3Add-on)

The only problem is, when I use it in the game,
there is a slight 'pink halo' around the figure,
as there are slightly pink anti-aliased(?) bits around the edges.

It is the antialiasing that is causing this problem.  I think there are only two
ways around this.  Either turn off antialiasing, or switch from chroma-key
compositing to transparency-based compositing and make the background
transparent.  You should be able to get POV-Ray to generate a PNG file with a
transparent background.  That file can then be composited over anything you
want, and it will even antialias nicely into the background you paste it over.
That would of course require your game to support PNG files with alpha instead
of using chroma-key.

Oh, and I don't know how to make POV-Ray generate a transparent background, but
I'm almost positive that it's possible.  If it isn't, you can render with
antialiasing disabled at higher resolution using your chroma-key, then import
the file into an image program and delete the pink regions (leaving transparent
parts), then shrink the image in the image editor to get your antialiasing back,
and finally save as a PNG file.

--Travis



Message has 1 Reply:
  Re: I'm sure one of you has already worked this out...
 
(...) * set +FN in the toolbar command line to get a PNG file * set +UA in the toolbar command line to turn on alpha channeling for a transparent background * read the "5.2.2.3 File Output Options" chapter in povray's help for a deeper insight w. (18 years ago, 18-Jul-06, to lugnet.cad, lugnet.cad.ray, lugnet.cad.ray)

Message is in Reply To:
  I'm sure one of you has already worked this out...
 
I'm currently making minifig animations for a freeware computer game. Here's an example picture: (URL) you can see, I am using bright pink (255,0,255) as my transparency colour. (I set it as 'background' in LP3Add-on) The only problem is, when I (...) (18 years ago, 18-Jul-06, to lugnet.cad, lugnet.cad.ray, lugnet.cad.ray)

7 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR