Cull callback as part of light perspective

12 views
Skip to first unread message

Anders Backman

unread,
Apr 11, 2021, 5:47:12 AM4/11/21
to OpenSceneGraph Users
Is there anyway of understanding that when you get a cull callback as part of rendering the shadowmap from the lights perspective?

I am trying to set some LOD for when the light viewpoint is being rendered compared to the main camera perspective.

/Anders

Robert Osfield

unread,
Apr 11, 2021, 9:18:18 AM4/11/21
to OpenSceneGraph Users
Hi Anders,

It's quite a few years since I worked on osgShadow so rather rusty.  From what I recall it's possible to set a viewpoint for controlling the LOD levels so that within a shader rendering pass the same LODs are used as for the main rendering pass.  Does this sound like what you are after?  I don't recall how to set it though, hopefully this will be enough to point you in the right direction.  Look at osg::Camera/osg::View./osg::LOD and osgShadow to see implementations to see if there what the exact mechanism is and how to control it.  

Cheers,
Robert.

--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/f1857968-e996-477e-87a8-6cd683917dcbn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages