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 / 13939
13938  |  13940
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 06:36:04 GMT
Viewed: 
6437 times
  
In lugnet.cad, Travis Cobbs wrote:
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.

* 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.



Message has 2 Replies:
  Re: I'm sure one of you has already worked this out...
 
(...) Thankyou gentlemen. I didn't realise that Antialiasing was an option in Povray. Then - found it was ALSO an option in LSP-Addon. Now that I've turned it off in both, I've got over my issue :-) PS - I'm afraid using "alpha channeling" is a bit (...) (18 years ago, 18-Jul-06, to lugnet.cad, lugnet.cad.ray, lugnet.cad.ray)
  Re: I'm sure one of you has already worked this out...
 
--SNIP-- (...) To add to this, make sure you have a neutral background colour set when you do this. The background colour does still have an effect on certain aspects of the rendering (albeit a small one). Tim (18 years ago, 18-Jul-06, to lugnet.cad, lugnet.cad.ray, lugnet.cad.ray)

Message is in Reply To:
  Re: I'm sure one of you has already worked this out...
 
(...) 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 (...) (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