public:t-vien-07-1:lab_2_materials
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:t-vien-07-1:lab_2_materials [2007/01/19 03:35] – hannes | public:t-vien-07-1:lab_2_materials [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| * Make sure you can run the Panda 3D sample programs on your machine | * Make sure you can run the Panda 3D sample programs on your machine | ||
| + | |||
| + | ===== Useful Links ===== | ||
| + | |||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||
| ===== In-Class Excercises ===== | ===== In-Class Excercises ===== | ||
| Line 11: | Line 22: | ||
| * Download and unzip the [[http:// | * Download and unzip the [[http:// | ||
| + | |||
| Line 33: | Line 45: | ||
| ==== Making a Virtual Room in Panda 3D ==== | ==== Making a Virtual Room in Panda 3D ==== | ||
| + | |||
| + | {{public: | ||
| - Create a program called myscene.py that moves the camera to the location (-0.5, -3.5, 0.5), changes its heading by -45 degrees and then loads the model " | - Create a program called myscene.py that moves the camera to the location (-0.5, -3.5, 0.5), changes its heading by -45 degrees and then loads the model " | ||
| Line 85: | Line 99: | ||
| if self.keystate[' | if self.keystate[' | ||
| base.camera.setPos(camera, | base.camera.setPos(camera, | ||
| + | self.lasttime = task.time | ||
| return task.cont | return task.cont | ||
| </ | </ | ||
| Line 146: | Line 161: | ||
| # " | # " | ||
| </ | </ | ||
| - | - Modify the **create_wall** method to pick a random texture for each panel for a greater variety (use the assets below) and finally pass in data into the Room's constructor for building a room with the following shape: \\{{public: | + | - Modify the **create_wall** method to pick a random texture for each panel for a greater variety (use the assets below) and finally pass in data into the Room's constructor for building a room with the following shape: \\ {{public: |
| # USEFUL ASSETS: | # USEFUL ASSETS: | ||
| # " | # " | ||
/var/www/cadia.ru.is/wiki/data/attic/public/t-vien-07-1/lab_2_materials.1169177754.txt.gz · Last modified: 2024/04/29 13:33 (external edit)