Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

hookah hose help

daivid Walcott
Registered User
Join date: 19 Oct 2005
Posts: 2
10-23-2005 19:10
hello

i jsut started second life and as my first project im trying to make a working hookah (see http://en.wikipedia.org/wiki/Hookah )
well as you can see the hookah includes a hose through which smoke runs..
i have the hookah body finished.
and through messing around with some freebie scripts i have a pretty decent looking smoke coming fromt he top.
what i need to do is make a flexable hose that can be incorporated into a hookah smoking animation


any ideas?
if anyone really wants to help id like to incoporate the whole thing into a hookah scene.
pose balls and everything.


id really like to make this work.
please help
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
10-23-2005 19:14
From: daivid Walcott
...what i need to do is make a flexable hose that can be incorporated into...



Flexible and prim don't mix. You could do an object-rez on touch....a hose stretch/resize on touch...or use a particle hose (though that would flash quite a bit and not be visible to persons with particles turned off).

Some things just aren't meant to be in SL...
daivid Walcott
Registered User
Join date: 19 Oct 2005
Posts: 2
10-23-2005 19:34
damn...could yuo maybe help me with the rez on touch?..that sounds do able.
i
RyeDin Meiji
Reluctant Entrepeneur
Join date: 15 Mar 2005
Posts: 124
10-24-2005 07:21
I believe, while sitting here at my desk at work, that a hose can be done in 2 different ways. The first way seems incredibly daunting and would most likely look very kludgy (pronounced kloo-jee). For either method you would need a bunch of tube segments, the more and the smaller they are, the better looking hose you'd have. For the 1st method you'd need some sick Math Skills. The tubes would have to start out touching each other end to end (but not linked... ooo this would be hard). When one is touch-dragged, it needs to transmit info to the other ones and then your Home-made Hose Physics Engine would have to resize, rotate, and move the other ones appropriately. Super Duper Hard.

Or... Maybe another way. Design the small tubes in such away that they can be interlocked physically, then make them all physical. So when you move one (with some Physical Object Moving Thingamabob), they all get pulled around and rotated and all that good stuff. You'd just need to limit the movement somehow or you'll yank the hose right out'tha hookah.

People are afraid to use physics. Use it. If physics causes lag, bummer dude but oh well. LL will continue to be forced to give us better software/hardware if we continue to push the limits :D

EDIT: LL already does a great job of improving the platform, but I think people in general are leary of using things like physics because they don't want to be looked as lag-inducers. Physics can be used to accomplish some neat stuff. I'm not sure how the hose thing would look, but it's worth a try. I saw someone in a sandbox once make a giant clock that operated completely on physics. The only scripting in it was to give the initial rotational force on one of the gears.
_____________________
if (!you)
{
who();
}
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
10-24-2005 10:09
RyeDin...the main reason I'm hesitant to use physics is that physics objects are often unpredictable...

...physics is cool...though yes, it is lag-inducing. It will be interesting to see the way lag works with the new work-around in 1.7 where the lag primarily hits scripts rather than frame-rates...
Michael McLuhan
Registered User
Join date: 7 Jul 2005
Posts: 3
Thought about adapting a particle script?
10-24-2005 11:52
maybe you should check into the particle subsystem for a way to build a hose. I have seen a hooka already on one of the islands; IM me in game for the landmark...