public:t-gede-16-1:lab6
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:t-gede-16-1:lab6 [2016/02/23 19:40] – [Bonus] marino | public:t-gede-16-1:lab6 [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Discussion ===== | ===== Discussion ===== | ||
| - | Discussion thread for this lab is here: [[https:// | + | Discussion thread for this lab is here: [[https:// |
| ===== Goal ====== | ===== Goal ====== | ||
| Line 63: | Line 63: | ||
| </ | </ | ||
| ===== Bonus ===== | ===== Bonus ===== | ||
| - | <box green 100% | **Notice**> | + | <box green 100% | **Manual Object**> |
| + | <code cpp> | ||
| + | // radius of the base of the cone | ||
| + | // height of the cone | ||
| + | // detail is the number of vertices around the base. | ||
| + | void createCone(float radius, float height, int detail); | ||
| + | </ | ||
| + | This method should create a cone mesh with the tools used in the lab. Extra kudos for those who get the object to cast shadows and have an okish normal mapping. | ||
| + | You can use this material for the object | ||
| + | < | ||
| + | { | ||
| + | receive_shadows on | ||
| + | |||
| + | technique | ||
| + | { | ||
| + | pass | ||
| + | { | ||
| + | ambient 0.3 0.1 0.1 1.0 | ||
| + | diffuse 1.0 0.1 0.1 1.0 | ||
| + | specular 1.0 1.0 1.0 1.0 0.2 | ||
| + | |||
| + | |||
| + | shading flat | ||
| + | |||
| + | |||
| + | } | ||
| + | } | ||
| + | }</ | ||
| + | <box green 100% | **Notice**> | ||
| / | / | ||
| Line 69: | Line 97: | ||
| The original file in the OgreSdk folder seemed to be missing a few textures, for this one I replaced the missing textures with one colored textures. </ | The original file in the OgreSdk folder seemed to be missing a few textures, for this one I replaced the missing textures with one colored textures. </ | ||
| - | - <box green 100% | **Bonus point**> | + | <box green 100% | **Bonus point**> |
| // add the Quake archive to the world resource group | // add the Quake archive to the world resource group | ||
| Ogre:: | Ogre:: | ||
/var/www/cadia.ru.is/wiki/data/attic/public/t-gede-16-1/lab6.1456256402.txt.gz · Last modified: 2024/04/29 13:32 (external edit)