Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Scultped torus? Is it possible?

Apple May
Apple May Designs
Join date: 6 Oct 2006
Posts: 326
04-30-2008 04:50
I've seen several sculpted models that use some sort of ring, but I've never been able to get a torus to work properly. Is it possible to use a torus to model from? If so, what's the trick? TIA!
_____________________
Fashion for Less
Domino Marama
Domino Designs
Join date: 22 Sep 2006
Posts: 1,126
04-30-2008 05:14
/8/60/203571/1.html

My Blender scripts include support for torus. If you don't use Blender, you could just use it to export an obj file which would work in any sculptie maker that uses UV based baking.

Just Add - Mesh - Sculpt Mesh, set X & Y to 32, multires to 0 and pick torus as the type. Then do File - Export - Wavefront (.obj) to save the mesh for importing into another app.
Apple May
Apple May Designs
Join date: 6 Oct 2006
Posts: 326
04-30-2008 05:19
Ahhh ok! I'll give that a go. Thanks!

** Edit... I'm still having the same problem. The torus exports great, but it looks like someone filled in the hole. So it's not completely hallow where it should be. I followed your directions of rendering and baking the sculpty to export in blender.
_____________________
Fashion for Less
Pygora Acronym
User
Join date: 20 Feb 2007
Posts: 222
04-30-2008 07:38
The trick is to switch the sculpted prim topology in SL from sphere to torus with a script. Drop the following script into the prim. It will switch it and remove itself leaving you with a torus sculpty.

CODE

integer SCULPT_TYPE = PRIM_SCULPT_TYPE_TORUS;
string DEFAULT_SCULPTMAP = "be293869-d0d9-0a69-5989-ad27f1946fd4"; // apple

default
{
state_entry()
{
string sculptTexture = DEFAULT_SCULPTMAP;
list primType = llGetPrimitiveParams( [PRIM_TYPE] );
if (PRIM_TYPE_SCULPT == llList2Integer(primType, 0) ) {
sculptTexture = llList2String(primType, 1 );
}
llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_SCULPT, sculptTexture, SCULPT_TYPE] );
llRemoveInventory(llGetScriptName());
}

}
Domino Marama
Domino Designs
Join date: 22 Sep 2006
Posts: 1,126
04-30-2008 08:31
Or with the rc clients you can set the sculptie type in the edit box :)
Apple May
Apple May Designs
Join date: 6 Oct 2006
Posts: 326
04-30-2008 08:56
From: Pygora Acronym
The trick is to switch the sculpted prim topology in SL from sphere to torus with a script. Drop the following script into the prim. It will switch it and remove itself leaving you with a torus sculpty.

CODE

integer SCULPT_TYPE = PRIM_SCULPT_TYPE_TORUS;
string DEFAULT_SCULPTMAP = "be293869-d0d9-0a69-5989-ad27f1946fd4"; // apple

default
{
state_entry()
{
string sculptTexture = DEFAULT_SCULPTMAP;
list primType = llGetPrimitiveParams( [PRIM_TYPE] );
if (PRIM_TYPE_SCULPT == llList2Integer(primType, 0) ) {
sculptTexture = llList2String(primType, 1 );
}
llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_SCULPT, sculptTexture, SCULPT_TYPE] );
llRemoveInventory(llGetScriptName());
}

}



The script worked. Thanks!
_____________________
Fashion for Less