[osg-users] Capturing all visible nodes
Isaac Wolf
ijwolf8 at gmail.com
Tue Feb 5 11:55:17 PST 2019
Any updates on how this can be done? I have implemented my own methods to do this, but they are very slow and buggy.
To take step back again, the overarching goal is to have a user select n points on a body that bound a region that a picture will be projected on to.
Projecting textures with TexGen works great as a "guideline" for the user, but they map to all surfaces in view, not just the desired surface. In addition, I actually need the nodes for area calculations. And as mentioned, I don't know if the there is anyway to extract this information from TexGen.
Currently, the process is as follows:
1. Project entire image onto model with TexGen
2. Align the image where you'd like it to be on the model
3. With image overlaying the body, select n points that will serve as the boundary for the texture
4. Capture the points that lie within this boundary:
a. Capture all visible nodes (this is the part I'm still having trouble with)
b. Loop over all visible nodes and check if they lie within boundary
Thanks for all that help. Appreciate your time!
Isaac[/list]
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75591#75591
More information about the osg-users
mailing list