Hi,
is there a way for an object to find out whether it is seeen by an avie in a given moment?
I'd like to build soemthing like an automated "What you see here is a foobar" announcement.
Ty
C.
These forums are CLOSED. Please visit the new forums HERE
Does this Avie look at my object? |
|
Clinton Stravinsky
Registered User
Join date: 12 Sep 2004
Posts: 33
|
04-15-2005 01:53
Hi,
is there a way for an object to find out whether it is seeen by an avie in a given moment? I'd like to build soemthing like an automated "What you see here is a foobar" announcement. Ty C. |
Jeffrey Gomez
Cubed™
![]() Join date: 11 Jun 2004
Posts: 3,522
|
04-15-2005 07:38
Only in mouselook. You can detect an avatar's position and rotation, and since it's fixed to the camera in mouselook, it works.
However, you can't do this for normal third-person. Nothing can (yet) detect the free camera - sorry. Your best bet is to use touch. That'll make things simple: http://secondlife.com/badgeo/wakka.php?wakka=touch_start However, if you simply must lag a sim with this, you can use sensor functions: http://secondlife.com/badgeo/wakka.php?wakka=llSensor http://secondlife.com/badgeo/wakka.php?wakka=llSensorRepeat http://secondlife.com/badgeo/wakka.php?wakka=sensor http://secondlife.com/badgeo/wakka.php?wakka=no_sensor http://secondlife.com/badgeo/wakka.php?wakka=llDetectedPos http://secondlife.com/badgeo/wakka.php?wakka=llDetectedRot _____________________
---
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
04-15-2005 08:47
I assume your example is not what you want it for... If it is I don't see why you don't use hovertext...
But I can't think of anyway to do it for a free camera. |
Clinton Stravinsky
Registered User
Join date: 12 Sep 2004
Posts: 33
|
Thank you
04-16-2005 02:56
I had suspected that.
Hovertext wouldn't be suitable since the text is quite elaborate. I think i'll stick to the "touch" solution. Original idea was sort of a Star Trek Computerinterface. Just saying "Computer! What's this?" would have been nice. Thank you |
Jeffrey Gomez
Cubed™
![]() Join date: 11 Jun 2004
Posts: 3,522
|
04-16-2005 12:15
Original idea was sort of a Star Trek Computerinterface. Just saying "Computer! What's this?" would have been nice. http://secondlife.com/badgeo/wakka.php?wakka=listen http://secondlife.com/badgeo/wakka.php?wakka=llListen http://secondlife.com/badgeo/wakka.php?wakka=llSubStringIndex ![]() _____________________
---
|
Clinton Stravinsky
Registered User
Join date: 12 Sep 2004
Posts: 33
|
Yeah but...
04-17-2005 04:17
I know how to make an object listen; alas without knowing what is in the avie's line of sight, the "this" part is the hard one.
Thank you again, C. |
lmho Impfondo
Registered User
Join date: 7 Apr 2005
Posts: 31
|
04-17-2005 11:03
This is an interesting thing you suggested. There is an option in the debug menu that shows you where avatars are looking. When you focus your camera on something, a small cross appears on the target. I'm sure they (lindens) could take that and run with it! This would open a few new ideas in the scripting world.
|
Jeffrey Gomez
Cubed™
![]() Join date: 11 Jun 2004
Posts: 3,522
|
04-17-2005 12:04
Debug -> Character -> Show Look At.
This is very interesting to me, because... while it's not *extremely* accurate, it shows that more information than I expected is broadcast to the server and clients. Hmm.... ![]() _____________________
---
|
Frans Charming
You only need one Frans
![]() Join date: 28 Jan 2005
Posts: 1,847
|
04-17-2005 12:57
MetaAdverse seem to suggest that they can do something like this.
from their faq: What is an Impression? MetaAdverse defines an impression as a single view of an advertiser's campaign on a publisher's sign by an avatar in Second Life who is within range and facing towards the sign for fifteen (15) or more seconds. Range is based on the size and format of the sign and campaign. http://www.metaadverse.com/faq.php Edit: O, wait. They are just looking at the rotation of your avator, i think. Not where your camera is pointed. |