Re: Transparency

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Mon, 4 Dec 1995 12:39:52 +0100


I think the most likely problem is the way you have enabled transparency.
Have you turned the state information for transparency on in the geostate
or have you just called pfTransparency? If the latter then perhaps you also
need to override the transparency state, so try this in your draw, just as
a test I'm not suggesting that this is what you ultimately want to do:

pfOverride( STATE_TRANSPARENCY, PF_OFF);
pfTransparency( PFTR_FAST );
pfOverride( STATE_TRANSPARENCY, PF_ON);

This will work unless you break this elsewhere in your code.
If this doesn't fix the problem then your alpha information is to blame
so look at how you are applying this. If youre applying the alpha via a
material you must have lighting enabled. If you are applying the alpha in
the geosets colour information and you have lighting enabled with a material
applied then set the pfMtlColorMode appropriately.

Rgds,
Angus.

On Dec 4, 11:45am, Ion Barosan wrote:
> Subject: Transparency
> Hi,
>
> I am trying to build a transparent object in Performer, but
> I haven't got the right thing.
>
> I have used all the switches and modes that enable the transparency,
> but no effect.
> I have enabled the transparency and used a geometry that have alpha values
> less than the maximum value, but no transparent object.
>
> In the "IRIS Performer Programing guide" there is an example (pag. 120-121)
about
> the transparency, but it doesn't work .
>
> I have an Onyx (IRIX 5.3), Performer 1.2 .
>
>
> ANY help will be appreciated ,
> Thank you,
>
> - Ion.
>
> PS. I am a beginner in Performer.
>
>-- End of excerpt from Ion Barosan

-- 
Angus Dorbie,
Silicon Graphics Ltd, UK
dorbie++at++reading.sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:06 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.