Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Skywalking?

Luc Aubret
Oreo-eater
Join date: 14 Sep 2005
Posts: 86
09-29-2005 00:16
I've seen a couple of people with items that allow them to walk in the air, as the item keeps a constant stream of rezzing platforms underneath them.

I was wondering if anyone that made one of these would be able to explain, basically, how it's done. I can write the code, I think, if only I understood the principal behind it. Does the item rez platforms underneath the owner, or does it anticipate their steps and rez them ahead of time?
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
09-29-2005 00:19
I have a fun one made by bUTTONPUSHER Jones. My understanding is it automatically rezzes the watermelon platforms (I customized it) under my feet at regular and rather quick intervals, so if I keep walking, new ones will materialize under my toes. If I stand still however, they'll keep stacking up.
_____________________
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
09-29-2005 02:41
I made one way back then when ElvenGlen opened for group members and had nofly on. It's simple: an invisible cylinder 6m in diameter that follows (non-physical) with a basic sensor-setpos. Make it go to owner's position plus <0,0,-1.2> ;)

Then all you have to do is add particles to make it look like it rezzes things, maybe ?
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-29-2005 03:43
The one product you are wondering about I wrote.
Can be purchased for 100L$
Navora (13,78)

It is an attachment that rezes new plates in the direction the avatar is moving.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Luc Aubret
Oreo-eater
Join date: 14 Sep 2005
Posts: 86
10-03-2005 08:36
From: Jesrad Seraph
I made one way back then when ElvenGlen opened for group members and had nofly on. It's simple: an invisible cylinder 6m in diameter that follows (non-physical) with a basic sensor-setpos. Make it go to owner's position plus <0,0,-1.2> ;)

Then all you have to do is add particles to make it look like it rezzes things, maybe ?


Well, I made one that combines the two ideas. It follows the owner, and rezzes plates 1.2m underneath them. I think, however, that I'm going to use llGetRot to make the plates rez in the direction the avatar is moving, as Strife mentioned he did (but sorry, Strife - I want to make my own). I think that way I can cut down on platform size.

Also, where does 1.2m come from? Wouldn't it be more accurate to take the detected av height and divide it in half?
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
10-03-2005 09:08
The 1.2m is from trial and error, since the real height of the AV's waist depends on the legs' length, which you cannot get an accurate measure of through the AV's bounding box.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-03-2005 15:25
some tweaking might be in order.
CODE

vector t = llList2Vector(llGetBoundingBox(llGetOwner()),0);
float offset = t.z;
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Cletus Fardel
Registered User
Join date: 5 Oct 2005
Posts: 6
10-05-2005 08:44
From: Torley Torgeson
I have a fun one made by bUTTONPUSHER Jones. My understanding is it automatically rezzes the watermelon platforms (I customized it) under my feet at regular and rather quick intervals, so if I keep walking, new ones will materialize under my toes. If I stand still however, they'll keep stacking up.



This sounds cool. I need me one of them there things. lol
Siro Mfume
XD
Join date: 5 Aug 2004
Posts: 747
10-05-2005 22:40
While rezzing a lot of platforms is cool, might it not get fairly intensive on rezzing?

Wouldn't a better solution be to modify a flight script to hover an avatar at a given height (adjustable with up and down) and use a animation overrider to give the appearance of walking even if they are either flying or falling.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-05-2005 22:51
hover isn't optimal as it won't work past a certain altitude. And as long as you don't multithread the rezzing you shouldn't have problems with causing excess lag. Course you end up having to simplify the math and come up with short cuts if you rez the plates smartly.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
10-06-2005 00:41
From: Siro Mfume
While rezzing a lot of platforms is cool, might it not get fairly intensive on rezzing?

Wouldn't a better solution be to modify a flight script to hover an avatar at a given height (adjustable with up and down) and use a animation overrider to give the appearance of walking even if they are either flying or falling.

No need. There's a fun, exploitable bug in the avatar movement system for exactly this.

All you really need to do is counteract gravity at the desired height ( read: llSetForce(<0,0,9.8> * llGetObjectMass(llGetOwner())); ). If done right, you can basically walk around in mid-air to heart's content... until you run into an object.


While a bit laggier in terms of rez commands and listeners, Strife's solution is far more user friendly, as one false move with my above command can send you into the stratosphere. Plus, the lag shouldn't be noticable by such a small script as his.
_____________________
---
Siro Mfume
XD
Join date: 5 Aug 2004
Posts: 747
10-06-2005 02:54
When I said hover, I was not referring to the scripted functions that use the word hover(which I am not fond of anyway). I merely meant 'to stay at one height' (which is optimal when appearing to walk in midair). However you want to script it is fine, I was just throwing the idea out there that you could use alternative means to standing on rez'd platforms.