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 02:50] – 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 ===== | ||
| + | |||
| ==== Before You Start ==== | ==== Before You Start ==== | ||
| - | * Download and unzip the Lab 2 Asset File into your working directory | + | * Download and unzip the [[http:// |
| + | |||
| Line 31: | 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 83: | 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 144: | 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: | ||
| # " | # " | ||
| Line 171: | Line 188: | ||
| root.setLight(spot) | root.setLight(spot) | ||
| </ | </ | ||
| + | - Modify the spotlight creation in the **create_lights** methods so that it creats a spotlight for each of the ceiling panels that have light fixtures in them. | ||
/var/www/cadia.ru.is/wiki/data/attic/public/t-vien-07-1/lab_2_materials.1169175056.txt.gz · Last modified: 2024/04/29 13:33 (external edit)