-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Joan,

I have checked the code of the plugin as I promised.

Joan Slottow wrote:
> 
> 3) I wrote out a version of it with much less geometry. I was able to
> load it in both osgviewer and in my program when I got rid of:
> 
> Group { children [ here is the whole vrml file ] }
> 
> which was around the whole thing.

This is caused by the plugin not handling a Group node. At the moment it
handles only Transforms, Shapes and Appearance, nothing else. A Group
node could be added easily, though.

Unfortunately a proper implementation of the scene graph translation
would require a significant coding effort - there are simply way too
many types of VRML nodes to be handled if you want to load scenes of any
significant complexity. I do not have time to do that at right now,
however you are welcome to contribute a patch. On the other hand, that
was not even the goal of this plugin - it is only a quick hack to be
able to import textured VRML meshes into OSG. If you need a complex
scene support, try the Coin3D plugin. That will probably work better for
your needs.

> 
> 4) However, my vrml files has:
> 
> color Color { color [ 0.000000 0.304099 0.989031, 0.000000 0.315067
> 1.000000, 0.000000 0.315067 1.000000, 0.000000 0.315067 1.000000, 
> 0.000000 0.315067 1.000000, 0.000000 0.315067 1.000000, 0.000000
> 0.315067 1.000000, 0.000000 0.315067 1.000000, ] } colorPerVertex
> TRUE
> 
> And after it loads it the color is gone.  I wrote out the scene graph
> in .osg format immediately after loading the file and then looked at
> it.  I should see something like:

Could you provide me with an example file of the data you want to load?
The implementation of the vertex colours is trivial, but I do not have
means to author VRML here. I will need to test it.

Regards,

Jan



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFGr9Xbn11XseNj94gRAgk0AKDVS5ulQt+fjgJII7ZcMHS1x1fd3gCffdk+
1LyfxCqsv973L+ElECUuauE=
=SnkW
-----END PGP SIGNATURE-----
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to