View Single Post
  #6  
Old 12-11-2012, 02:54 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
A correction to my earlier post about exporting objects to osg. It is possible to use the node3D.save command for saving objects in the osg format. To save the whole scene with multiple objects as one model file, parent all objects to a single node before saving. However, this will not work with avatar files. Here's an example:
Code:
import viz
viz.go()

scene = viz.addGroup()

dojo = viz.addChild('dojo.osgb',parent=scene)
soccerball = viz.addChild('soccerball.osgb',parent=scene,pos=[-0.5,2,1.5])
basketball = viz.addChild('basketball.osgb',parent=scene,pos=[0,2,1.5])
volleyball = viz.addChild('volleyball.osgb',parent=scene,pos=[0.5,2,1.5])

scene.save('dojo2.osgb')

Last edited by Jeff; 12-11-2012 at 02:59 PM.
Reply With Quote