Re: Help,how can i make it be transparent!

New Message Reply Date view Thread view Subject view Author view

MLM Veraart (Veraart++at++fel.tno.nl)
Wed, 17 Mar 1999 14:41:29 +0100


zhoutian wrote:
>
> Hi,thank you for looking at my question.
> These days I use Performer on O2 to do some work of virtual reality.
>
> And I want to make some faces be transparent, but I don't know how to
> do it. I find a function pfTexFormat(pfTexture *tex,int format,int
> type).I try to use pfTexFormat(tex,PFTEX_INTERNAL_FORMAT,PFTEX_RGBA_8),
> but no use. And GIF images can be transparent, can I load it directly
> and it will be transparent?
You can make the polygon that the texture is mapped to transparent by
setting the PFSTATE_TRANSPARENCY mode of the pfGeoState to on. And also
set the PFSTATE_ALPHAREF value of the pfGeoState.
If you want transparent parts of the texture you have to make an rgba
texture in a file or in memory.

> And I want to do some work for shadows. I found a example, when I
> ran it, it told me the machine didn't have some hardware. Does it need
> some kind of display card?
Yes it needs an Reality Engine2 (RE2) or an infinit Reality (iR). That
example possibly uses shadow maps to create shadows. There are other
techniques of creating shadows that can be used in certain situations.
You can find some of them on the net(OpenGL advanced cource notes)
and in Foley&vanDam.
>
> ZhouTian

Mario


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Mar 17 1999 - 05:40:59 PST

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