Hi Christian,

Hello,

i use OpenSG to view one or more wrl-files, which include a point cloud. Therefore the files have a PointSet like this:

geometry  PointSet {
     coord  Coordinate {
point [
-0.366116 -0.48644 -1.24413
...
      ]
    }
}

To get a NodePtr i do the following as the tutorial showed:

NodePtr n = SceneFileHandler::the().read(filename);

Where can i get the info, how the resulting node looks like? I want to change the material or something else. But without knowing the structure, i can't do.
So somebody can tell me?

just traverse over the scenegraph and look for node with a MaterialGroup core. Theres is an traversal example in Tutorials/09traverse.cpp


I've got a second question:
If i load more than one file into the scene, i get the following warning when destroying the whole scene:

WARNING: Window::destroyGLObject: object 4 is NULL!

This warning only occures, if i load wrl-files with a "PointSet"-part.
What means the message? And how can it be avoid?
It seems to me, that OpenSG has some problems with "PointSet"-parts?

hmm strange do you have an example wrl file to reproduce this.

Andreas


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to