This tutorial covers:
- Building with the Torus
- Snap Back
- Adding Textures
- Simple Script
Rez a Torus (first shape on the bottom in the Create tab).
Change the size to "X = 1.000, Y = "1.000", Z = " 1.000"
Path Cut: B = "0.250", E = "1.000".
Hole Size: X = "1.00", Y = "0.10"
I changed my Rotation in order to show you the path cut in the chair. Adjust your "Y" value as needed to see what you are doing.
Snap Back (Ctrl + Z) :
Make a copy of this prim using the Shift + Drag method learned before. You may drag along ANY arrow direction for this feature.
With the NEW prim still selected (yellow outline around it) hold down the Ctrl key and tap the "Z" key. This is the basic undo function and will return your prim to the exact location of the first prim. It will look like it disappeared. It didn't :D.
Change the shape of the primitive to Sphere using the drop down menu on the right that says Building Block Type.
Your build should look like this.
Change the size of your sphere to X = ".850", Y = ".850", Z = ".300".
Change the rotation to be "0,0,0" -- that is 0 rotation in all fields.
We have the beginnings of our chair. The prims -- all two of them -- are made.
If you are reading this in the future, it is likely that you can skip this step.
At the beginning of 2009, however, avatars cannot just sit on a prim. So we are going to add a very simple script to the chair.
Select the sphere again and go to the Contents Tab. Click on the button that says New Script. A script will appear in the contents window. This is a default script.
Double click on the New Script to open it. Highlight and delete the existing text. Copy the text below and paste it into the New Script.
Right Click on the New Script and choose Rename. Give your script a better name, such a "simple sit".
default
{
state_entry()
{
llSitTarget(<0.23,0.10,0.4>, ZERO_ROTATION);
}
touch_start(integer total_number)
{
llSay(0, "Right click me and choose 'Sit Here' to sit down");
}
}
You will need to adjust the cushion of the chair so that the sit works well.
To do this easily, click on the sphere (the cushion) and hold down the control key.
CAREFULLY drag on the BLUE line to turn the cushion in the direction you need to go.
Go to the texture tab as we have done before. This time instead of making a blank texture, we are going to add the look of wood.
Click on the Texture window (it will have the default plywood at present) and scroll through the textures you have to find a wood texture. I used "mahogany" from the Texture Library that comes with the viewer.
In this case I needed to change the texture rotation to 90 degrees to achieve the look I wanted. Play with the parameters -- including repeats if you want, to get a look you like. Then add a texture to the cushion.
Select both prims and link. You have a chair.