OGL convertor to VRML

Does somebody know about a way to take an OGL code and convert it to VRML file ?

Originally posted by Yair:
Does somebody know about a way to take an OGL code and convert it to VRML file ?

You can’t make a general converter, as VRML can only handle a very small subset of what OpenGL can handle. If you want to get the results of your OpenGL program into VRML you’ll have to write your own exporter.

It might be easier to export to a simpler format like OBJ or OFF and then use a converter to get to VRML, if you really need that.

Hope it helps

Dirk

Dear Dirk,
Thanks for the info.
Actually I don’t care to convert “all” OGL to VRML. My target is to do “save 3D image” from my application - which means to create a VRML (or different format) which store the geometry along with normal, colors and textures.
What are OBJ and OFF ?
Do you know about any converter to those formats and from those formats to VRML ?
Thanks