Hej,

Andreas Zieringer schrieb:
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
Thank you. It works great.

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
I have found the error. It was a problem with Qt::QGLWidget::renderText(). This function renders text directly into the gl-context. Therefore it allocates 256 DisplayLists for the characters of the QFont to render. If you don't give a free index to the function it takes the default index 2000. But at this index OpenSG has allocated allready DisplayLists.
So when i destroyed my ViewerObject, i got the warning above.

--
Love&Peace...
Christian

-> Alles Gute kommt vom SCHEUERN! <-
    elektronische Musik in der Radiowueste Mecklenburg-Vorpommern
    alle 2Wochen freitags 22-24Uhr auf NB-Radiotreff 88,0
-> www.scheuern.info <-


-------------------------------------------------------
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