Jump to content

Follow me graphic? If thats even the right name?


HeatherD Tungsten
 Share

You are about to reply to a thread that has been inactive for 1367 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I want to make a sign that turns to face the viewer no matter where the person is viewing from.   I've seen signs like this around SL but I'm not even sure what to call such a sign.  Then I would like to cut and paste some script to make it work.   But seeing that I don't even know the proper name for such a sign, the script search will have to wait.   
So.... for starters, what do you call such a sign?
And if there are more than one person in the area, will that sign show flat on to everyone?  I'll be using it in my store to direct shoppers.

Ultra Vixen - Shop_009.png

Edited by HeatherD Tungsten
typos
Link to comment
Share on other sites

I don't know if the types of signs you're talking about have a specific name.

However, the only way to do what you want to do, specifically "if there are multiple shoppers, the sign should face each of them," is to use particles. Particles are rendered completely locally, which allows each viewer to have a unique view of the sign.

The type of particle system you need is one that emits a single particle every few seconds without any speed, so it stays in place. The particle's lifetime should be just slightly longer than the rate at which new particles are emitted, to make sure the sign is always visible and doesn't "flicker" annoyingly. The rate should not be too long, otherwise it won't show up for a long time, so I would recommend 2 seconds.

 

If you wanted to have a sign that physically rotates towards someone's camera, you would need a script that requests permission to track a specific customer's camera, and the resulting rotation would be seen by other customers (but the sign could only follow that one customer at a time). I think a static sign would be a better option than that.

Edited by Wulfie Reanimator
  • Like 1
Link to comment
Share on other sites

If you just wanted it to face the closest person, shouldn't need camera perms... just their position to calculate the relative rotation between the two positions? It would look strange switching from person to person as other people got closer.

(partial pseudo code)

Set up llSensorRepeat for avatars in state entry. Limit range to maybe 20 meters.

In detected event:

vector r = llRot2Euler(llRotBetween(llGetPos(), llDetectedPos(0)));

llSetRot(llEuler2Rot(0, 0, r.z));

(Or some variation on this)

It is driving me nuts.... I can't remember the movie where a guy gets his eyes transplanted, and as he is walking down the streets, all the advertising is scanning his eyes and calling out the name of the donor.

Edited by Phate Shepherd
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1367 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...