Let's try changing render attributes and see what that does for our scene.
Make sure that all of your model
NodePaths
are reparented to render instead of each other.Remove any scale or rotation adjustments made to the NodePaths.
Set the track position to (0,0,-5) again and set the cycles' positions back to (2,15,0) and (-2,15, 0).
Add this line after line 14 so that the file looks like figure 23:
self.cycle2.setRenderModeWireframe()
Save the file as "
chp02_10.py
" and run it.Now the cycle on the left is rendered in wireframe mode. Let's try one more thing before we move on. Change line 13 to:
self.cycle2.reparentTo(self.cycle1)
Change line 15 so that it affects cycle1 instead of cycle2:
self.cycle1.setRenderModeWireframe()
Save the file again, this time as "
chp02_11.py
" and run it.