Re: LightSource culling
John Rohlf (jrohlf++at++tubes)
Fri, 30 Jun 95 16:11:40 PDT
>
> Hi,
>
> In my Performer application, I need to dynamically add and
> delete light sources to the scene.
> So, I tried to attach and pfLightSources to my scene graph when
> requested.
>
> Things go well enough, but I couldn't avoid that my Light Sources
> were culled to the viewing frustum.
>
> I read the Performer 1.2 Reference Pages (p.83):
> "If a pfLightSource has a null bounding volume (radius<0) then
> it is not culled and has global effect over its pfScene. By default
> pfLightSources have null bounding volume."
>
> When I saw that my LightSources were culled, I tried to force the
> Light bounding sphere radius to -1, but I didn't succeed.
>
> Did someome have the same problem ?
>
You are encountering a bug in 1.2. The bug is that the nodes
along the path from the pfScene to the pfLightSource are cull-tested
normally. If one of these nodes is culled, then the pfLightSource will
be culled as well.
The solution is make sure that no nodes along the
path to the pfLightSource are culled. You can do this by
rearranging your scene graph so the pfLightSource is a direct
child of the pfScene or by specifying a large bounding sphere radius
for the pfLightSource.
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:51:37 PDT