On 1/8/07, Jean-Marie Normand <[EMAIL PROTECTED]> wrote:
Hi osg-users,

Hi :-)

First of all I want to apologize if my question seems dumb or
inapropriate to the list.

I'm completely new to OSG, and I want to use it as a "universal" file
opener, i.e. I want to write an OpenGL viewer that could open almost all
important 3D file formats (as 3DS, Maya, etc.) without having to write
the readers on my own (do not want to reinvent the wheel :) ). My first
question will then be do you think it's a good idea to use OSG for that
purpose?

You can write a simple 3D viewer in three or four lines of OSG code...
actually, OSG comes with an 'osgviewer' application that does just
this.

Secondly, I've played with the source files and have been able to
retrieve the vertices of some meshes (e.g. not the .flt ones) but I've
failed to get the number of primitives that composed the meshes. What
I'd like to do with OSG is to retrieve the topology (at least vertices,
faces/triangles and normals) of a mesh contained in a .xxx file in order
to build my own data structure suitable for my purposes.
Are there any tutorials that would show how to do that?

Take a look at www.openscenegraph.org, in the Documentation/Tutorials
and download LMBs_OSG_Examples.zip. It is a package of pretty well
documented OSG examples I have been creating. The first one is a
simple 3D viewer. The 18th (and last one so far) opens a 3D model,
finds all its triangles and draws its normals as lines over the model.

Hope this helps,

LMB
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to