View Single Post
  #4  
Old 10-06-2006, 09:07 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

I looked at your file and experience the same problem here. The problem is that the color for most of the geometry in the model is undefined. This means that the geometry will inherit the color of the last rendered geometry. And depending on the viewpoint the last rendered geometry will change (due to culling), which causes the color to change.

The reason it works with osgViewer is because osgViewer automatically optimizes all models that are loaded. The optimization seems to fix this problem. You can manually perform the optimization in Vizard using the following command:
Code:
kob = viz.add('kob.osg')
kob.optimize()
Also, when dealing with models this large that take a long time to load, I suggest converting it to the IVE format. It will load MUCH faster. You can create a script to convert your file:
Code:
kob = viz.add('kob.osg')
kob.optimize()
kob.save('kob.ive')
Now you can use the kob.ive file and save yourself a lot of time.
Reply With Quote