O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - demonstrating render attributes

Let's try changing render attributes and see what that does for our scene.

  1. Make sure that all of your model NodePaths are reparented to render instead of each other.
  2. Remove any scale or rotation adjustments made to the NodePaths.
  3. Set the track position to (0,0,-5) again and set the cycles' positions back to (2,15,0) and (-2,15, 0).
  4. Add this line after line 14 so that the file looks like figure 23:
    self.cycle2.setRenderModeWireframe()
    
    Time for action - demonstrating render attributes
  5. Save the file as "chp02_10.py" and run it.
    Time for action - demonstrating render attributes
  6. Now the cycle on the left is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required