Bernard Leclerc (bleclerc++at++cae.ca)
Wed, 1 May 1996 11:54:19 -0400
> I would like to render shadows with Performer.It seems that Performer
> has not any fonction to do that. So I look on the OpenGL Programming Guide,
> it is told how shadows work but there isn't any sample code.
> So I send a message (not in a bottle ...)
> Could somebody help me?
>
> My application is a 3D terrain with thousands trees (yes, it is
> possible!). For the moment I duplicate all the facets on the forest terrain
> with a opacity mapping of a shadow image. It works well but it isnt the
> economical version.
>
> I am looking for:
>
> 1) A sample code of how to render shadows of one object to another
> or
> 2) A sample code of how to map an image (shadow image for example) on a
> projector
You do not mention if you're using IrisGL or OpenGL. It makes all the
difference. Take a look at the sample programs
/usr/share/Performer/src/pguide/libpf/C++/shadows.C
/usr/share/Performer/src/pguide/libpf/C/shadows.c
These programs work only with IrisGL.
If you're targetting OpenGL, you're out of luck.
--
___/ | ___/ Bernard Leclerc e-mail: bleclerc++at++cae.ca
/ / | / Systems Engineer voice: +1 514 341 2000
/ / | __/ CAE Electronics Ltd. extension 2275
/ / | / 8585 Cote De Liesse fax: +1 514 340 5496
/ ____ | / P.O. Box 1800
_____/ _/ _| _____/ Saint-Laurent, Quebec, Canada, H4L-4X4
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:51 PDT