public:t-gede-14-1:lab8
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:t-gede-14-1:lab8 [2014/03/10 20:02] – [Discussion] marino | public:t-gede-14-1:lab8 [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== LAB8: Particle Systems ====== | ====== LAB8: Particle Systems ====== | ||
| - | In this lab we will be checking out particle systems, This lab will be based on the "The Ogre 3D Startup Sequence" | + | In this lab we will be checking out particle systems, This lab will be roughly |
| Line 8: | Line 8: | ||
| Discussion thread for this lab is here: [[https:// | Discussion thread for this lab is here: [[https:// | ||
| + | ===== Preperation ===== | ||
| + | You will have to create the folder '' | ||
| + | You can use your own project or start fresh with the base application {{: | ||
| + | ===== Lab ===== | ||
| - **Add the following code your MyApplication:: | - **Add the following code your MyApplication:: | ||
| Ogre:: | Ogre:: | ||
| Line 45: | Line 49: | ||
| colour_range_start 1 0 0 | colour_range_start 1 0 0 | ||
| colour_range_end 0 0 1</ | colour_range_end 0 0 1</ | ||
| - | - **Additional attributes, | + | - **Additional attributes, |
| duration 1 | duration 1 | ||
| repeat_delay 1</ | repeat_delay 1</ | ||
| Line 52: | Line 56: | ||
| rate 10 | rate 10 | ||
| }</ | }</ | ||
| - | - **Colour fading affector** Colour affector will add the given values | + | - **Colour fading affector** Colour affector will add the given values |
| affector ColourFader { | affector ColourFader { | ||
| red 0.0 | red 0.0 | ||
| Line 73: | Line 77: | ||
| alpha2 | alpha2 | ||
| }</ | }</ | ||
| - | - And finally we have probably the most useful tool, called | + | - And finally we have the ColorInterpelator. |
| affector ColourInterpolator { | affector ColourInterpolator { | ||
| time0 0 | time0 0 | ||
| Line 93: | Line 97: | ||
| colour5 0 1 0 0 | colour5 0 1 0 0 | ||
| }</ | }</ | ||
| - | - **Direction Randomiser** We can make the particles change direction at random: <code cpp>// This will make the particles fly around like it has no tomorrow. | + | - **Direction Randomiser** We can make the particles change direction at random: <code cpp>// This will make the particles fly around like they have no tomorrow. |
| affector DirectionRandomiser { | affector DirectionRandomiser { | ||
| // This indicates the magnitude of the random choices the particle makes. | // This indicates the magnitude of the random choices the particle makes. | ||
| Line 101: | Line 105: | ||
| // Here you can indicate if the particle should randomize its velocity or not. < | // Here you can indicate if the particle should randomize its velocity or not. < | ||
| keep_velocity true | keep_velocity true | ||
| - | }</ | + | }</ |
| - **Deflector Planes** Deflector planes can make the particles change direction when they hit the deflector plane, the plane is provided in point normal form. <code cpp>// Deflector planes bounce the particles of the given plane. | - **Deflector Planes** Deflector planes can make the particles change direction when they hit the deflector plane, the plane is provided in point normal form. <code cpp>// Deflector planes bounce the particles of the given plane. | ||
| affector DeflectorPlane { | affector DeflectorPlane { | ||
| Line 136: | Line 140: | ||
| // Clasp Sinbads hands around the hilt of the sword. | // Clasp Sinbads hands around the hilt of the sword. | ||
| _SinbadEnt-> | _SinbadEnt-> | ||
| - | - **Celebrate Sinbads amazing sword effect.** If you followed the last point then Sinbad is surely a happy seadog, and a happy fellow deserves a show! Create some fireworks using the particle system Ogre provides. //**Hint:** Check out the [[http:// | + | - **Celebrate Sinbads amazing sword effect.** If you followed the last point then Sinbad is surely a happy seadog, and a happy fellow deserves a show! Create some fireworks using the particle system Ogre provides. //**Hint:** Check out the [[http:// |
| particle_system Fireworks { | particle_system Fireworks { | ||
| // Make the particles use the " | // Make the particles use the " | ||
| Line 191: | Line 195: | ||
| }</ | }</ | ||
| - | - **Lastly** If you come up with a use for the particle system and think that it deserves an additional bonus point or half, then I might be generous : | + | - **Lastly** If you come up with a use for the particle system and think that it deserves an additional bonus point or half, then I might be generous : |
| </ | </ | ||
| ===== When You Are Finished ===== | ===== When You Are Finished ===== | ||
| Upload your **commented source files** into Lab8 in MySchool (zip them up if more than one). The lab projects will not be graded, but their completion counts towards your participation grade. | Upload your **commented source files** into Lab8 in MySchool (zip them up if more than one). The lab projects will not be graded, but their completion counts towards your participation grade. | ||
/var/www/cadia.ru.is/wiki/data/attic/public/t-gede-14-1/lab8.1394481738.txt.gz · Last modified: 2024/04/29 13:32 (external edit)