The main focus of this chapter was learning about NodePaths
, where they come from, and what we can do with them.
Specifically, we covered:
First we learned how to get Panda3D started so we could begin exploring how it works. We did that by importing
DirectStart
.After that, we learned how to load models into the scene, which gave us our first
NodePaths
to play around with. We usedloader.loadModel
to bring our track and, later, two cycles into the scene.Next we learned about transforming
NodePaths
with the position, rotation, and scale methods. We also learned about how eachNodePath
has its own coordinate system, and how parent child relationships affect that.Finally, we learned about render attributes, their basic uses, and how parent child relationships affect them as well.
We also talked about the Scene Graph, how it controls what is rendered and what isn't, and how NodePaths
can be moved around in it.
Now that we've learned about NodePaths
we're ready to make them move around on...