PFLAYER & SHADOWS & STENCIL

New Message Reply Date view Thread view Subject view Author view

Joaquin Casillas Melendez (jcasilla++at++glup.eleinf.uv.es)
Fri, 23 May 1997 19:52:28 +0100 (WETDST)


Hi all!
I am working in a crane simulator aplication, and I am trying to include
shadows for the objects to be carried. I have a pfLayer with the floor as
its base, and several decals (with transparency) over it. The last decal
correspond to the shadow object (wich is the projection of the object to
be shadowed on the floor). In addition, I want the shadow to be clipped
out of the region of the floor. I use the PFDECAL_BASE_STENCIL mode in
the pfLayer, and all works fine in a single example (simple.c based)

I have integrated all in the main aplication, which is perfly-based,
and all works well except that the shadow isn't clipped out of the floor.
The shadow is still being painted over the rest of the scene geometry.

-Is there anything in perfly code that is affecting the pfLayer node?
(I've commented the line pfdCombineLayers((pfNode *)scene) in perfly.c).

-How many bits of stencil are needed for this task? (I've 1 bit of
stencil, and it works fine in the single example).

-Is it possible to have several pfLayers to draw shadows in different planes?
 When I try this, I can't get the shadow to be properly clipped in the
singel example. (I think there aren't enough bits of stencil)

I'd be very grateful if someone could help me on these issues.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Joaquin Casillas Melendez | email: jcasilla++at++glup.eleinf.uv.es _/
_/ ARTEC (LISITT) | _/
_/ Dept. Electr. & Informatics | Phone: +34 6 360 4484 Fax: +34 6 361 6198 _/
_/ University of Valencia | Address: Hugo de Moncada 4. 46010 Val.(SPAIN)_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:17 PDT

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