This tutorial is for Blender 2.49b, Python 2.6 and Primstar 1.0.0. The Beta versions of Primstar had different dialogs when adding sculpt meshes and rendering. I'm no sort of Blender or scuptie expert, in fact I've only recently started learning. I just thought it would be useful, when I found how to do something that doesn't seem to have a tutorial, to pass on what I'd discovered. If there are better ways to do what I suggest, I'd love to know so I can update things.
Objectives
The main objective is to make a tiny ring that's quite thin, to use for example in jewellery. Tortured prims can be used but you can't achieve a true round section.
The second objective, if you are new to Blender, is to demonstrate a few main aspects of the interface and some functions you'll need to make sculpties.
You can make tiny sculpties from the .tga UV map for a full sized torus by using an image editor to scale (reduce the contrast) in the R, G and B channels, but in Blender you can do this at the same time as you bake the sculptie texture, which saves time.
Here's a pic of the finished torus next to an unscaled one, both at the default prim settings of 0.5 x 0.5 x 0.5m:
This is small enough to make a really tiny ring when it's shrunk down inworld. The finished product isn't smooth, because of the low contrast, but by the time you've got it down to microsize the defects simply won't be visible.
There are two main steps involved in this.
First, the default sculpt mesh torus in Blender is much too fat so we need to do a bit of editing to shrink the ring.
Second, sculpt maps save by default so that the sculptie fills the entire space allowed to it by SL. What we need is a map that only occupies a small bit of the area, producing a shape that looks small aready. We can then shrink that in SL to a tiny apparent size, much smaller than the 0.01m SL limit.
Outcomes
You will have made a tiny sculpted ring.
You will know how to:
- Select and deselect objects and vertices and delete objects.
- Move objects.
- Add a sculpt mesh.
- Shrink/fatten selections.
- Split the work area.
- Change the view.
- Bake a scaled sculpt mesh.
- Conceal a sculpt map so it can't be copied in a mod object in SL.
- Save the UV map for SL.
Audio version: Open the tutorial in another window so you can listen, read and stop the audio when needed.
Get started
Open Blender. It opens with a default cube added and already selected. You don't need this so might as well delete it for practice. Just press delete, and left click on the dialog that comes up right under the cursor. If for any reason it isn't selected, remember you right click to select things.
Here's what it looks like selected:
And unselected:
Add a torus
Now add a torus sculpt mesh.
Click Build to add it.
I've chosen Torus Z here, which will give you a torus with the hole pointing up and down by default.
I find it easier to work on a single object if it's in the centre of the frame, so right click on it and start dragging it to the centre green/red crosswires. Once you've started dragging you can let go of the right button - the object sticks to the cursor. When it's where you want it, left click to confirm.
You can scroll in and out using the mouse wheel.
We're in Object Mode by default, so swith to Edit Mode so we can torture the object a bit.
Down near the bottom of the workspace is a row of buttons. Click Object Mode and then select Edit Mode.
Your torus should now look like this, with all its vertices selected:
Pressing a on the keyboard toggles select/deselect all, so try pressing it a few times if the torus is not looking like this (with all the vertices yellow and the axis arrows showing).
Shrink the ring
Now simply scaling the object won't help us, so instead we use alt + s, which works in Edit Mode to shrink/fatten (scale along vertex normals). You can do this entirely from the keyboard - you just need to make sure the whole thing is selected, as shown, then type alt + s followed by the scaling factor you want, or you can use the up and down arrow keys or scroll the mouse to scale. In this case, I entered directly from the alt + s-0.1.The scale factor is shown at the bottom left of the work area. Press Enter or left click to finish, Esc to cancel.
It should look like this after scaling by -0.1.
Bake the texture and scale the finished torus for export
First, split the area so we can see the UV map. Right click anywhere along the bottom edge of the top menu, so you see the dropdown shown below. Click Split area, then move your mouse till the vertical line is where you want to split the window (in the middle, say) and left click.
You then see two identical windows, both showing your torus.
Now click on the little button at the bottom left of one of the windows, and select UV Image Editor.
Your view of that area should now look something like this:
Then, make sure you are still in Edit Mode and that your torus is selected (press a till it is, if you are not sure)
Select Render > Bake Sculpt Meshes in the top menu.
Now we need to change the Render settings to make sure that our torus doesn't end up full size. Here's the Settings box - if you click outside it it just closes, so there isn't a cancel button.
In the Primstar Bake sculpt meshes box, first uncheck the 'Keep Center' and 'Keep Scale' boxes. Then adjust the range of the Red, Green and Blue values. If you just limit the top of the range (eg red is 0, 100) the object will be offset in the map, which can be inconvenient, so unless you want to do that it's better to limit the range from both ends. And as the contrast decreases, the object gets less smooth to the point where it may be unusable. For this example torus, I used the following ranges: Red 50, Green 50, Blue 15. Go too small and it will get very distorted. The Blue range is smaller because otherwise the torus will be as deep as it is wide. To get the actual settings, take the middle of the full range (255/2) and subtract and add half the range you want. Eg, for a range of 80 you get 255/2 - 50/2 and 255/2 + 50/2. This works out as settings of Red and Green 102 / 152 , Blue 120 / 135 (ignore the 0.5 units). To make this quick and easy, I made a simple ExCel calculator to display the values for any given range desired.
When you've changed the settings, make sure the 'Adjust Scale' box is ticked, then click Bake.
Here's what the UV map should look like:
And just for comparison, here's what it would look like if you baked with the default values:
You can see how much more contrasty the second one is - that would give you a full size sculptie with the size of the torus on the z axis the same as on the other two axes.
Save the UV map for SL
Now, down at the bottom of the UV Editor area, click on Image and tick Save As...
It will save as a .tga by default.
If you want to conceal the texture in SL, so that it can't be copied from a mod item, you can open it in an image editor, add an alpha layer, fill it with black, then save with transparency enabled.
You can now upload to SL.
Remember
- to tick the 'Use lossless compression' box.
- to select Torus from the drop down menu in the Object Edit tab - if you use Sphere the hole will be filled in.
**(It seems it should be possible at the Bake stage to to add an alpha layer using the Alpha buttons, useful to conceal your sculpt map if it's in a moddable object in SL, but I haven't been able to get these to work. Maybe I'm missing something here. But we can achieve the right result by altering the contrast in the Range settings, which is great because it gives you a lot of control.)

















No comments:
Post a Comment