One prim furniture, sit issues
|
|
Sky Eclipse
Registered User
Join date: 30 Oct 2006
Posts: 123
|
02-16-2007 15:52
So I make a one prim chair, but how do i get the av to sit on the right face of the chair without the use of a pose ball?
Eg, my av currently sits on the top most edge of the chair, and thats the top of the back rest, I want her to sit on the seat which is an inner edge.
Can it be done?
Thank you in advance. Sky xx
|
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
02-16-2007 16:03
Make the seat of the chair the root prim. The last prim clicked on when you linked it is usually the one it tries to sit you on. Then face the front of the chair before you try to sit. Click on the center of the seat, and you should turn around and sit more or less the right way.
I have some unscripted picnic benches and tables that I still use on occasion. One of my own very early furniture building attempts. If you stood facing the table and clicked the nearer bench, you'd always end up facing away from the table. The trick was to go to the other side of the table first, then click on the seat of the bench on the other side of the table from where you were standing.
Realisticly, you're better off using a free pose ball and a freebie sit pose. It makes it far easier to use the chair.
Now, if by "One prim chair", you mean that you cut a quarter of a cube away, and you're using the cut surfaces for the seat and the back... no, that won't work well at all. Sorry. Use more prims.
_____________________
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.
|
|
Sky Eclipse
Registered User
Join date: 30 Oct 2006
Posts: 123
|
02-16-2007 16:06
Thankyou for your quick reply, but my problem is that the chair is made from just one prim. Its a single prim chair, Im trying to get my AV to sit on the right face of the single prim. Im thinking its not possible without a pose ball, am I right?
Thankyou
|
|
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
|
02-16-2007 16:12
You need to put a sitTarget script in your chair to tell the av where to sit, what direction to face, etc. Without such a script in place, the av will attempt to sit wherever you click, and will always try to face the direction it came from to get there.
_____________________
.
Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
|
|
Sky Eclipse
Registered User
Join date: 30 Oct 2006
Posts: 123
|
02-16-2007 16:16
Hmm, sounds complicated, but im sure gonna give it a go! do these scripts come with instructions?? lol
Thankyou
|
|
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
|
02-16-2007 16:20
Sure it's possible, without any extra prims or balls or anything. One just needs to set a sit point with the correct position and rotation via a script, as Chosen mentioned. The problem is, SL's implementation of rotations is unintuitive to say the least, and of course scripting isn't everyone's cup of tea either. Fortunately a clever fellow by the name of Lex Neva came up with a very helpful device to do this with no scripting or math at all. /54/6a/153963/1.htmlIt's a pair of scripts. You put one in your furniture, and one in any old prim (might as well use a ball since we're all used to sitting on them). Sit on the ball, drag it around until you're in the right spot on your furniture, then click the furniture and like magic it sets the sit point correctly for you. Delete the script out of your furniture and the sit position stays forever. HUGE time-saver for furniture made of oddly-shaped prims.
|
|
Ashrilyn Hayashida
Registered User
Join date: 6 Jul 2006
Posts: 103
|
02-16-2007 16:20
Well, what I have done to figure out the proper seating is.. I made a second prim and linked it to the seat I made. I put this script in this second prim: default { touch_start(integer num_detected) { llOwnerSay((string)llGetLocalRot()); } }
For now, set each side of the prim to a different color. I'll explain later. So you have that second prim linked to your seat. Click the second prim. You may get like so: Link Me To A Chair To Figure Out llSitTarget: <-0.50001, 0.50000, -0.49998, 0.50001> Now in the seat, have this script: default { state_entry() { rotation rRot = llGetRot() * <-0.50001, 0.50000, -0.49998, 0.50001>; llSitTarget(<0.0,0.0,0.0>,rRot); } }
So basically, you plug in the number that second prim told you when you clicked it. Then try sitting in the seat. If you're facing the wrong way.. Well, remember what side of that second prim corresponds to your avatar's head, back, sides, etc., and rotate that second prim so if it were your avatar you'd be facing properly. Then click the prim again, and plug in the new number. Then when you're done, unlink and delete that second prim. This method worked for me when I tried it before. Do what you wish with the scripts. Edit: I started typing out my post before I saw yours, Anti Antonelli. Use whatever works, I say. 
|
|
Sky Eclipse
Registered User
Join date: 30 Oct 2006
Posts: 123
|
02-16-2007 16:25
Ohh, thanks very much to you all  i will give all this a try, i will post later to say how i get on 
|
|
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
|
02-16-2007 16:29
Ashrilyn, I started typing before Chosen posted too but caught it on preview and sneakily worked his name into my post  Lots of helpful people around at the moment, it seems. Sky, good luck however you tackle it, I'm sure you'll make out fine.
|
|
Sky Eclipse
Registered User
Join date: 30 Oct 2006
Posts: 123
|
02-17-2007 07:02
I finally used Lex Nevas sit target helper, its fantastic. Very pleased with the result  Thanx again
|
|
DancesWithRobots Soyer
Registered User
Join date: 7 Apr 2006
Posts: 701
|
Umm. . .about Lex. . .
02-17-2007 17:57
From: Anti Antonelli Fortunately a clever fellow by the name of Lex Neva came up with a very helpful device to do this with no scripting or math at all. Lex's AV, and AFAIK, rl person, is female. But she'll be the the first to admit that her shape is a bit androgynous.
|
|
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
|
02-17-2007 20:46
From: DancesWithRobots Soyer Lex's AV, and AFAIK, rl person, is female.
But she'll be the the first to admit that her shape is a bit androgynous. Thanks for clearing that up Dances, I haven't met her and I must confess the Superman character of the same name led me to jump to a wrong conclusion 
|
|
Sky Eclipse
Registered User
Join date: 30 Oct 2006
Posts: 123
|
Arrgh... still having trouble
02-19-2007 14:18
Ok, lex target gadget worked a treat, but then i figured, as soon as i move the furniture the sit targets are lost, i suppose thats obvious, but it went over my head until i found out in practice, its perfect for home funiture, but... The problem is that I want to sell the furniture with poses already set, ie. I want the furniture to be ready to sit on without the customer having to set target, also without using a pose ball? The main reason is that Im making one prim furniture, and a poseball makes it two prims, thus losing its one prim appeal. Is there a way? Thankyou so much. Sky xx EDIT----- Or maybe im not using lex's script right?? ............... no, i contacted lex, its not supposed to keep the targets, its a brilliant system but not what i need. what do i need??? does anyone know?? lol, thankyou very much 
|
|
Wilhelm Neumann
Runs with Crayons
Join date: 20 Apr 2006
Posts: 2,204
|
02-19-2007 15:57
From: Sky Eclipse Thankyou for your quick reply, but my problem is that the chair is made from just one prim. Its a single prim chair, Im trying to get my AV to sit on the right face of the single prim. Im thinking its not possible without a pose ball, am I right?
Thankyou use a script for say a poseball or just a script with the sit rotations in it so he sits in the right place there is one i believe in the wiki for this and do a search on the script forums i never use poseballs i use the actual seat instead (looks nicer) and do what i just stated above. If i want a particular pose while on the chair i use an animation with the basic poseball script if not i just use the standard sit and define the parameters yes it can be done 
|
|
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
|
02-20-2007 22:04
Sky I'm not sure how exactly you're using Lex's system, or what question you asked her that led to the answer you got, but I can attest to the fact that it should work just fine - in fact I am the "animating and scripting partner" for a furniture designer in game, and I use Lex's system to align my poses. Once you set the sit target, it becomes a permanent property of the prim (unless another script changes it) and follows the prim around no matter where you move it.
Are you perhaps adding another script after the fact, which may be resetting your sit target?
edit:
Some people may make a note of the numbers the script spits out and insert them into their own poseball scripts (in order to use different poses) but strictly speaking that isn't necessary at all, if all you want to do is have people sit in the correct spot without using any special pose.
|
|
Ace Albion
Registered User
Join date: 21 Oct 2005
Posts: 866
|
02-21-2007 03:00
Yes, I put a nice "writing" animated sit into a one prim ring based stool (you've seen the type) for my little office desk, thanks to Lex's Sit Target Helper. I used, I think, the really simple sit script posted by Strife Onizuka with it, pasting in the llSitTarget thing from the helper. It's handy dandy and works very well 
_____________________
Ace's Spaces! at Deco (147, 148, 24) ace.5pointstudio.com
|