![]() |
|
|
|
#1
|
|||
|
|||
|
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 03:59 PM. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 11:46 AM |
| Vizard 4 Beta Testing | farshizzo | Vizard | 0 | 02-01-2011 11:46 AM |
| Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 12:13 PM |
| problem with exporting avatars and using them in Vizard | VDong | Vizard | 2 | 02-23-2009 02:25 AM |
| Exporting from Maya to Vizard | jfreeman | Vizard | 2 | 06-30-2005 03:14 PM |