Simon Mills (simon++at++wgs.estec.esa.nl)
Wed, 03 Nov 1999 10:12:07 +0100
I am implementing custom culling in an application but discovered a
disturbing effect with pfLightSources. Some of the nodes (representing
rooms) have pfLightSources and when these are culled out by my pre-cull
callback, using pfCullResult(PFIS_FALSE) and returning PFTRAV_PRUNE, the
lights are also turned off. This results in a disturbing flickering of
lights as I move around.
The manual says pfLightSources are processed in a seperate cull
traversal before the normal view volume cull traversal. In both cases my
cull callbacks are called and so my pfLightSources are culled as well.
The question is how can my callbacks *not* cull the pfLightSources in
this seperate "lights only" traversal? So far I've not found a way my
callback can tell which traversal it's being called from except maybe
ugly things like checking the frame count etc. For now I'm just placing
my pfLightSources higher up the scene graph but they then are positioned
in the world coordinate frame and not the local room coordinate frame -
also not ideal.
I'm using Performer 2.2, IRIX 6.5.5m on Onyx2 iR.
Any suggestions or examples, anybody?
Simon
________________________________________________________________________
Simon C. Mills
Modelling & Simulation Section (TOS-EMM) Tel: +31 (0)71 565 3725
European Space Agency (ESA/ESTEC) Fax: +31 (0)71 565 5419
Postbus 299, 2200AG Noordwijk e-mail: simon++at++wgs.estec.esa.nl
The Netherlands http://www.estec.esa.nl/wmwww/EMM
________________________________________________________________________
This archive was generated by hypermail 2.0b2 on Wed Nov 03 1999 - 01:13:00 PST