Re: Shadow of the sun

New Message Reply Date view Thread view Subject view Author view

Jorge Valencia Loera (valencia_jorge++at++hotmail.com)
Mon, 30 Aug 1999 16:50:43 EDT


Hi,

What type of light are you using to simulate your sun?
Local or infinite light?
look at the 4th value (w==0.0 when infinite & w!=0.0 when local) in your
pfLSourcePos call.
I had some problems trying to cast shadows with an infinite light...
If that's your problem, you can use a local light really far away from your
objects to simulate the sun.

try looking at:
/usr/share/Performer/src/pguide/libpf/C/shadows.c

It's a nice example of shadows using Perfomer.
I hope this will help you.

Jorge Valencia
>Hi,
>
>I have many moving objects (DCS node) on an airfield, I wish to
>simulate their shadow under the sun ( the shadow should vary
>according to time of day), I try to use
>pfLSourceMode(sun, PFLS_SHADOW_ENABLE, 1);
>pfLSourceAttr(sun, PFLS_PROJ_FRUST, shadFrust);
>pfLSourceVal(sun, PFLS_SHADOW_SIZE, 512);
>....
>However, i didn't see any shadow, can anybody give me any advice?
>
>regards
>
>Hui Li

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 30 1999 - 13:50:54 PDT

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