Shadows in an Ortho view frustum (bug?)

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (rioj7++at++fel.tno.nl)
Tue, 9 Feb 1999 16:30:46 +0100 (MET)


Hello,

I have an application where I want to have realtime shadows.
I use the pfLightSource capability to make a shadow map and
show the shadows. The application uses perspective frustums
and orthographic frustums. In the perspective frustums the
shadows are ok. I have a problem with the ortho graphic
frustums. In a test program, adaptation of shadow.c, I found
out that the lightsource calculates the correct shadowmap
but the view frustum is changed. I think that the view matrix
is not correctly restored after calculating the shadow map.
The frustum is still orthographic but its size is a lot bigger.
The factor is about 400 times, tested by making the frustum size
smaller until I see the same amount of terrain.

The position of the viewer is at xyz(0,0,100) and hpr(0,-90,0).

I use Performer 2.2.2 at an Irix 6.5 iR2.

Can anybody give information about this possible bug in the
performer libs?

Mario Veraart


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Feb 09 1999 - 07:39:22 PST

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