Re: pfProject Texture and transparent textures

New Message Reply Date view Thread view Subject view Author view

From: devrim (devrim++at++infotron.com.tr)
Date: 05/25/2000 07:33:40


> Hi Devrim,
>
> Which version of performer are you using? We did a major rewrite of the
> projective texture code in 2.2.5 to solve exactly this problem. There are
> sevral flags that you can pass to pfChannel::setTravMode which can be used

I have 2.2.7 installed and the defines are not in the header files. It is
possible that they are in 2.2.8 ? ( which is ~800Mb )

>
>
> to fine-tune the multipass behavior:
> #define PFMPASS_EMISSIVE_PASS 0x2
>
> This must be enabled if you have emissive geometry, which requires an
> extra pass.
>
> #define PFMPASS_NONTEX_SCENE 0x4
>
> This flag lets us skip a pass in the case of a non-textured scene.
>
> #define PFMPASS_NO_TEXTURE_ALPHA 0x8
>
> If there is no texture based transparency, we can skip another pass. For
> your trees, you want this flag off.
>
> #define PFMPASS_FORCE_MULTISAMPLE 0x10
>
> Multisampling greatly simplifies the multipass algorithm. In cases where
> there is no translucency, only full transparency or full opacity, the
> multisample version of the algorithm will work faster even on machines
> without multisampling hardware. This flag forces the multisample
> transparency mode.
>
> #define PFMPASS_BLACK_PASS 0x20
>
> If you see opaque objects in your scene appear translucent, turn on this
> flag, it will fix the problem at the cost of an extra pass.
>
> -- Marcin
>
> On Wed, 24 May 2000, devrim wrote:
>
> > Hi,
> >
> > I have been using performer projected textures within my application (
> > based on the sample in the man page ) . We also have transparent
> > textured billboards which are used for lens flare and static shadows. At
> > some point project texture is enabled and then at some point again it is
> > disabled. I have noticed that when I use projected textures transparent
> > textures look as if alpha bits are set to 1. When I don't enable
> > projected textures, it is just fine, we have nice transparency. It looks
> > like the color bit count has also decreased.
> >
> > Any ideas ?
> >
> > /*===============================================
> > M. Devrim Erdem devrim++at++infotron.com.tr
> > Simulation Software Development
> > info(+)TRON, Turkey
> > Tel: +90 216 4921002, Ext 138
> > Fax: +90 216 3432132
> > http://www.infotron-tr.com
> > http://abone.turk.net/mderdem
> > ===============================================*/
> >
> >
> > -----------------------------------------------------------------------
> > List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
> >

--
/*===============================================
M. Devrim Erdem            devrim++at++infotron.com.tr
                    Senior Engineer
                  Simulation Software Development
                              info(+)TRON, Turkey
Tel: +90 216 4921002, Ext 138
Fax: +90 216 3432132
http://www.infotron-tr.com
http://abone.turk.net/mderdem
===============================================*/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu May 25 2000 - 07:29:12 PDT

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