Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

A chair rezzes odly

Xylo Quisling
Registered User
Join date: 1 Feb 2007
Posts: 146
02-25-2007 12:47
Hello good people of the building forum,

The story in a nutshell (full version will be brought out on DVD, lasting 1.5 hours, but I try to pin down the essentials here): I built a chair, and every time I rez it from my inventory, it rezzes several meters up in the air. I bring it down and save my new, earthbound version - but when I rez that new version it, too, rezzes up in the air, just like the old one. Conundrum! Anybody know what to do about this?

Thanks,
Xylo
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
02-25-2007 17:02
Perhaps the chair has an invisible component below it. Check "view invisible" under the view menu.

Or you could run one of the scripts from this post:
/8/bf/163050/1.html
Xylo Quisling
Registered User
Join date: 1 Feb 2007
Posts: 146
02-26-2007 01:47
Dank je wel, ed! Ik ga dit gauw proberen.

Xylo
Xylo Quisling
Registered User
Join date: 1 Feb 2007
Posts: 146
02-26-2007 01:53
Oy, that didnt work....I don't seem to have an option 'View Invisible'. Unless you mean 'Highlight Transparent'? I'm green enough not to know whether invisible and transparent are the same, in SL.
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
02-26-2007 06:58
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:

CODE
// 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.
Xylo Quisling
Registered User
Join date: 1 Feb 2007
Posts: 146
02-26-2007 10:30
Thank you, Ceera. In your kindness, you and ed are causing me untold hours of work. Because I'm realizing that I have to start learning LSL. I suppose one can get by without it, but seeing your scripts, I want to be able to make my own. And just when I thought I'd go out and get a tan in the wonderful winter weather* we have in my country...

Xylo

*bitter cynicism