|
Post by Trey Brown on Jul 28, 2014 23:06:53 GMT -5
We know you've been waiting for this! We have been waiting for it as well! This is CCC Forum's first Panda3D tutorial! Let's get started shall we? A few things I expect of you: - You have Panda3D Installed and properly working.
- You have a text editor of your choice ready for use with syntax highlights.
- You have a basic understanding of Python.
First of all we want to import Panda3D into our code: from direct.showbase.ShowBase import ShowBase
Next we want to create a MyApp class: class MyApp(ShowBase):
Inside of this class we want to define the __init__ function with the following inside: class MyApp(ShowBase): def __init__(self): ShowBase.__init__(self)
With this we get a window but first we want to run the app so that everything will be visible: if __name__ == "__main__": app = MyApp() app.run()
With this code put together we get an empty window to appear with a gray background and a title of "Panda". This is the basic workspace that you will be using the make all of your Panda3D magic!
|
|