[osg-users] Clipping when using a shader

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Thu Apr 30 11:26:07 PDT 2020


Fix was very simple - get the bounding sphere and box of the geometry. 
Expand the sphere's radius by a factor. Expand the bbox by this sphere. 
Then setInitialBound using the expanded box. Nice!

On Thursday, April 30, 2020 at 11:01:57 AM UTC-7, AndrewC wrote:
>
> Yes, good idea. That should work. I can't really override the 
> computeBoundingBox as I can't change the object hierarchy easily.
>
> On Thursday, April 30, 2020 at 10:07:16 AM UTC-7, OpenSceneGraph Users 
> wrote:
>>
>> Hi Andrew,
>>
>>

-- 
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+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/2eb37b9c-7540-4a30-a2fa-cac27c4c4dd9%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200430/7db1f21f/attachment.html>


More information about the osg-users mailing list