problem with a transparent surface

New Message Reply Date view Thread view Subject view Author view

From: Sylvain Faisan (sylvain.faisan++at++imag.fr)
Date: 05/04/2001 04:07:56


Hi,

I ve a problem with a transparent surface. My scene is composed of one
transparent surface and of other
opaque surfaces.
During the definition of the pfGeostate of my transparent surface, i ve
writen something like :

gstateTransparent->setMode(PFSTATE_TRANSPARENCY,
        PFTR_BLEND_ALPHA|PFTR_NO_OCCLUDE);

And it's working but the problem is that i don't want to use the
PFTR_NO_OCCLUDE option.

If i don't use this option, the surface looks opaque and not
transparent. I know that i must draw the
transparent surface at the end of the draw process.

Is there a solution to tell Performer that the transparent object must
be drawn after opaque objects?
It's written in the documentation of the class pfChannel :

By default, the opaque bin rendering order is PFSORT_OPAQUE_BIN_ORDER
(0)
and the transparent bin is PFSORT_TRANSP_BIN_ORDER (1) so that
transparent surfaces are rendered after opaque surfaces.

Have I something to do?
I use already the PFCULL_SORT mode for the channel

Must i tell Performer which object ares transparent?

it's written in the documentation of the pfGeoSet class :
when attached to a pfGeoSet via pfGeoSet::setGState, the pfGeoSet will
always
be rendered with the state encapsulated by gstate, regardless of the
order in which pfGeoSet/pfGeoState pairs are rendered

What means "regardless of the order in which pfGeoSet/pfGeoState pairs
are rendered"?

Thank you by advance

Faisan Sylvain


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri May 04 2001 - 04:08:04 PDT

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