![]() |
|
|
|
#1
|
|||
|
|||
|
Your model seems to work fine for me. Here is the script I used to test it out:
Code:
import viz
viz.go()
viz.add('tut_ground.wrl')
model = viz.addChild('testtree.lwo')
model.drawOrder(-1) #Ensure model is rendered to depth buffer before other models
model.disable(viz.COLOR_WRITE)
import vizcam
cam = vizcam.PivotNavigate()
cam.centerNode(model)
cam.setDistance(model.getBoundingSphere().radius*5)
cam.rotateUp(10)
|
|
#2
|
|||
|
|||
|
Cool it works now.
Thx It was the "node.drawOrder(-1)" line what made the difference. what does this exactly do? As a newbie I do not really understand why it is important that the model is rendered before others.... for the future - if i load more of these specific models do they all need this specific drawOrder function??? Anyway, thank you very much helping me at this problem. Regards Phil |
|
#3
|
|||
|
|||
|
The object you want to have occlude other objects must be rendered to the depth buffer first. The default draw order of objects is 0, so setting the draw order to -1 ensures it is rendered before other objects.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| view problem | nlfrnassimi | Vizard | 3 | 03-11-2009 09:33 PM |
| export problem | bazelaisr | Vizard | 2 | 05-28-2008 11:19 AM |
| 5DT Data Glove 5 Ultra Problem | bjgold | Vizard | 1 | 08-08-2006 05:08 PM |
| problem with female animations | vmonkey | Vizard | 1 | 10-07-2005 11:36 AM |
| sound problem | alaa | Vizard | 7 | 09-02-2005 02:13 PM |