From: Sylvain Faisan (sylvain.faisan++at++imag.fr)
Date: 04/26/2001 04:33:44
Hi,
I' m loading a texture which can be transparent and i'm blending it with
the background of the scene.
Here is some part of the code :
chan->setTravMode(PFTRAV_CULL , PFCULL_VIEW | PFCULL_SORT) ;
chan->setBinSort(PFSORT_TRANSP_BIN, PFSORT_BACK_TO_FRONT, NULL) ;
chan->setBinSort(PFSORT_OPAQUE_BIN, PFSORT_BACK_TO_FRONT, NULL) ;
gstateTexture->setMode(PFSTATE_TRANSPARENCY,
PFTR_BLEND_ALPHA|PFTR_NO_OCCLUDE);
The PFTR_NO_OCCLUDE enables not to write in the Z-buffer. And the
program
is working.
The problem is that I want to see the shadow of the texture.
If i comment PFTR_NO_OCCLUDE, the shadows are working but not the
blending.
If i don't comment PFTR_NO_OCCLUDE, the shadows are not working but the
blending
is working.
Can we use PFTR_BLEND_ALPHA without PFTR_NO_OCCLUDE ?
If anyone has an idea, i will be very happy.
Thanks by advance
Faisan Sylvain
This archive was generated by hypermail 2b29 : Thu Apr 26 2001 - 04:33:53 PDT