PDA

View Full Version : dle and dlc?


shivanangel
04-16-2014, 08:06 AM
Reading through the SDK, forums and documentation and it mentions the creation of a custom node.

I'm make an extension using your sdk that just outputs a simple OSG Shapes for testing.

However, I have to create an Extension that loads the ExtensionOSGNode.

Can I create the ExtensionOSGNode without the need of the Extension class using a custom node? And if so, is there any documentation, as I didn't find anything specific about custom nodes in the SDK or the example python files. They all use .dle extensions.

Thanks,
George

farshizzo
04-18-2014, 09:11 AM
You can create your own OSG file loader plugin. If you download the OSG source, you can see how all the built-in file loader plugins are implemented. Using this method, you would simply use viz.addChild to load models of your custom file type.