Game Development Reference
In-Depth Information
FIGURE 7.8
Screen grab showing the creation of sphere prims around the cylinder for the particle “planetary system.”
color “PSYS_PART_END_COLOR” to match the color of the sphere. For instance, in the bright red sphere,
this change will generate particles that start white and end up bright red.
Remember in the color menu of Firestorm that there is a converter, so you can change the RGB values into the
percentages that the LSL particle script code needs, and they give a handy button that will copy these values to
your clipboard, so you can paste the numbers into your script in place of the number that is already there. The red
sphere code line would read PSYS_PART_START_COLOR, <1,1,1>, PSYS_ PART_END_COLOR, <1,0,0> .
The inal thing to do in this section is to link these elements together and move them into the Sensory Space.
To do this, select all the planets irst, holding the Shift key down so they are selected collectively, and then select
the cylinder as shown in Figure 7.9. Pick the Link button on the Build/Edit top menu. The planets should have blue
halos, and the cylinder will have a yellow halo, indicating that they are linked and the cylinder is the key prim.
If you have more questions or need a more detailed description about linking prims, that is available
online (http://community.secondlife.com/t5/English-Knowledge-Base/Build-Tools/ta-p/700039).
You are in the home stretch! Take this linked structure into your inventory as a backup. Rez a copy on the
ground near the front door of the Sensory Space and move it into the center of the inner space. Orient the
cylinder around the center column of the Sensory Space, and when it's set, change the texture on just that part
into a 100% transparency, so it disappears. You will see the light sources from the spheres affect the internal
walls of the space immediately, especially if you have your graphics levels set up in High or Ultra.
Figure  7.10 is a view of this setup of the planetary system inside the Sensory Space model. For even
greater visual effects, you can do these two additional things: (1) add a spin script into the cylinder to make
the whole particle/planetary system rotate around the center column and (2) turn on the advanced lighting
(sun, moon, and projectors) and change the lights into projectors that use the Galaxy_gobo_black texture to
project a star image on the surrounding surfaces. This additional texture is included in the Chapter 7 content.
Search WWH ::




Custom Search