sharefasad.blogg.se

Ac3d scaling
Ac3d scaling







ac3d scaling

If using OpenSceneGraph 2.8.x you'll need version 2010.2 of the SDK. List of available 3d database plugins Plugin name

ac3d scaling

The only factors to keep in mind are that OSG needs to support the file format (as determined by the file's extension) and that you should have compiled the necessary plugin.

ac3d scaling

The loading of the necessary plugins by osgDB is transparent and in practice you shouldn't have to do anything special to load a certain file type. OsgDB::writeNodeFile(*node, "saved.osg") Osg::ref_ptr image = osgDB::readImageFile("lz.rgb") Osg::ref_ptr node = osgDB::readNodeFile("cow.osg") When programming use the follow API to read a file: #include If the plugin supports more than one extension, it may be necessary to pre-load the plugin before loading the file by using the standard osgViewer '-e ext' option: > osgviewer -e lwo model.lw The OpenSceneGraph database plugin library osgDB automatically loads plugins on demand, using the extension of the file being loaded/saved to determine which plugin to load. Other plugins are available in the Community Plugins section. There are 45 plugins in the core OpenSceneGraph distribution, and these provide the support for reading and writing both native and 3rd party file formats, details of these are below.









Ac3d scaling