Hi David,

I had one more quick question, I can load in osg files, but what about the lua 
files?

lua is a scripting language, not a 3D model file format... OSG wouldn't know what to do with it. There is an osgLua project that allows you to use OSG from lua scripts, though I don't know if it's being maintained anymore.

And am I able to load any other 3D Models, like google Sketchup files or 3ds or 
obj files?
Do I need to install some kind of plugin? And if yes which one and how?

Sketchup I believe uses the COLLADA format, so you'll need to compile the COLLADA plugin (the dae file reader, as .dae is the normal extension for COLLADA files). Check the OSG wiki for instructions.

3ds and obj files can be read by default by OSG. Check your Visual Studio solution, you'll see projects called "Plugin 3ds" and "Plugin obj". You can just do osgviewer file.3ds and it should load (though of course the plugins might not support all the features of a particular format, so the loaded model might look different).

In general, OSG has plugins for lots of stuff by default. Some plugins have external dependencies. Some external dependencies are included in the 3rd party bin that you probably downloaded to be able to compile OSG at all (an example is the PNG loader "Plugin png", the JPEG loader, the GIF loader).

Other plugins have external dependencies that are not included in the default 3rd party package (because they're too big, or they're not used by enough people to justify including them by default). These are optional compiles, and once you have the dependencies installed you can tell CMake where to find them, and then regenerate the project files, and the appropriate project(s) will show up in the Solution file and be built when you build OSG. The COLLADA plugin is an example of this.

Hope this clears things up,

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to