Thanks Robert, I understand ShapeDrawable is an osg construct that obj won't understand. But i was under the impression that the conversion out of the osg format would de-OSG all shapes. in other words, make a mesh out of the ShapeDrawable. But clearly this is not the case. Is this feature on the todo list?
Also, i know that the VRML format has some concept of primitive shapes. Do you think that the osg to wrl conversion would include the primitive ShapeDrawables? I would just try it, but unfortunately i did not build osg with vrml writing capabilities, and i won't have the opportunity to rebuild osg for a while. Thanks, -Ben ________________________________________ From: [email protected] [[email protected]] On Behalf Of Robert Osfield [[email protected]] Sent: Wednesday, November 25, 2009 5:08 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Missing ShapeDrawables in .obj export Hi Ben, Does .obj support ShapeDrawable? No... it knows nothing about ShapeDrawable so there is no way it can be exported without conveting it into another form that .obj supports. .obj support just meshes, lines and points so if you want to export to .obj then you'll need to stick to these types of objects in your scene graph. Robert, On Wed, Nov 25, 2009 at 5:34 AM, Ben Axelrod <[email protected]> wrote: > I have a scene that has some primitive shapes in it created with > ShapeDrawables. When i save the scene to a .obj file using > osgDB::writeNodeFile() the ShapeDrawables don't show up in the file, but the > floor plane i created with simple geometry does. If i save it to a .osg file > instead, then everything is in in the file. I get the same results if i use > osgconv to convert my .osg file into a .obj. > > Note: i am viewing the exported files with osgviewer. And i am using OSG > version 2.6. > > Any clue on why this is or how to get around it? > > Thanks, > -Ben > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

