Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rezzing on the ground

Weasel Wingtips
Registered User
Join date: 17 Sep 2007
Posts: 7
02-27-2008 04:18
I've made a pair of new objects, one of which always rezzes on the ground from my inventory, but the other always rezzes a few feet above the ground. I've tried playing with all the settings, but maybe I'm missing something? help!
Brick Infinity
Registered User
Join date: 1 Sep 2007
Posts: 83
02-27-2008 04:40
Are one of the prims in your new objects cut in half? This happens to me when I use "cut" prims. They seem to keep and use the original "full" prims collision mesh, rather than change to the cut prim.
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
02-27-2008 06:56
You can add a script to an item that has cut prims on the bottom, to cause it to move down to the actual surface when it is rezzed. I posted that script here somewhere... Wrote it to fix my park benches that were doing the same thing. The script has a variable in it that allows you to set the offset you want, and works for rezzing on prim surfaces as well as it does on the ground.

Send me an IM in-world, and I'll send you that script. I'll try to locate it and post it here as well, but I am really busy with RL work today, so it may take me a bit to get it posted here.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
02-27-2008 07:01
If the chair uses a cut prim on the lower surface, it will rez as if it was sitting on the whole prim. For example, if I make a park bench, and use a half of a circle for the legs, and that circle is 1 meter in diameter, the bench will rez 0.5 M too high.

The solution is to add a script to the chair that adjusts the height after it rezzes. Here is a simple script for that:

From: someone
// adjust this height
float adjustHeight = -0.5; // how much the position should be adjusted when the object is rezzed. (m) -

default
{
on_rez(integer x) {
vector v = llGetPos ();
v.z = v.z + adjustHeight;
llSetPos(v);
}
}


Just add this script to the item, and change the "adjustHeight" variable as needed. As shown above, it moves the item down 1/2 meter.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
Brick Infinity
Registered User
Join date: 1 Sep 2007
Posts: 83
02-27-2008 09:03
Thanks for the script Ceera! : )