OpenSceneGraph Exporter for Blender

In this article, I will show you how to install osgexporter Blender plugin and then demonstrate using osgviewer from OpenSceneGraph source bundle to load the exported osg file.

Step 1: Install Blender OpenSceneGraph Plugin

Download OSGExport zipped file and unzip it to a temporary directory. Copy and paste the python script to the python module directory.

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0096.png

On my Blender install on XP, my python module directory is:

C:Documents and Settingsu1Application DataBlender FoundationBlender.blenderscriptsbpymodules

Restart Blender. Then Change the main windows type from the default 3D View to User Preference.

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0105.png

Click File Paths button.

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0106.png

Then find an entry box that says Python Scripts:. Click the

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0107.png

Select the directory, which is where youve just paste the osgexport script to.

Then click SELECT SCRIPT PATH button to save the path.

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0101.png

Then click the refresh button.

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0103.png

Now go to File->Export, and you should see OpenSceneGraph.

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0097.png

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0109.png

Step 2: Test it!

Just export your model to an osg file and then use the osgviewer from OpenSceneGraph source bundle to open it.

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0111.png

Or if you have added the binary directory of OpenSceneGraph to the Path variable, then

C:Documents and Settingsu1My DocumentsSnagIt CatalogImage-0110.png