[osg-users] How safe is it to modify an node during cull traversal

Lincoln Nxumalo lincoln.nxumalo at gmail.com
Tue Oct 11 01:46:18 PDT 2016


Hi All,

I'm trying to implement to an "infinite" line. The way I'm going about doing this is computing the intersection if the line with the view frutum and using those intersection points as the end points of the line rather than drawing a "very long" line.

I want to use a node callback to update the end points of the line. However, I can't figure out a way to obtain the projection matrix in the update traversal so I can construct the view frutum planes. I can only do this in the cull traversal using the cull stack obtained from the node visitor.

So long story short, maybe a bit too late for that, is it safe to update the position of the line in the cull traversal or will I run into issues sometimes?

Thanks in advance.
... 

Thank you!

Cheers,
Lincoln

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68954#68954








More information about the osg-users mailing list