[opensource-dev] Detecting mouse over sky or water
Lockwood, Nick
nlockwoo at indiana.edu
Wed Mar 3 19:24:23 PST 2010
Thanks for the tip Jason. Which class are you referring to when you say "touch picking code?"
-----Original Message-----
From: Gigs [mailto:gigstaggart at gmail.com]
Sent: Wednesday, March 03, 2010 2:27 PM
To: Lockwood, Nick
Cc: opensource-dev at lists.secondlife.com
Subject: Re: [opensource-dev] Detecting mouse over sky or water
IIRC the touch picking code can tell you if you touched water sky or
terrain. I don't think it's well abstracted though and may need to be
moved into a new class.
-Jason
Lockwood, Nick wrote:
> I'm working on a project to track what object is currently rendered at
> the current mouse screen coordinate. There was a recent thread I found
> (http://www.mail-archive.com/sldev@lists.secondlife.com/msg04380.html)
> that highlights the cursorIntersect function in the LLViewerWindow
> class. That is exactly what I've been using, and it seems to be working
> just fine. The only problem is that I can't seem to capture sky, clouds,
> or water. The function just returns with a null value when I'm hovering
> over any of those objects. I tried changing the depth parameter, but
> that hasn't helped. I also double checked the gObjectList array, and
> there are, in fact, sky and water pcodes in there. Does anyone know of
> any reason why I can't retrieve those objects then?
>
>
>
> Thanks!
>
> Nick
>
>
>
> P.S. As a follow-up to this challenge, I am also looking to log whether
> the mouse is hovering over a dialog box (i.e., inventory, map, chat
> window, etc.). I tried using the cursorIntersectIcon function, but that
> doesn't seem to be giving me what I want. Any guidance on that would be
> great too!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Policies and (un)subscribe information available here:
> http://wiki.secondlife.com/wiki/OpenSource-Dev
> Please read the policies before posting to keep unmoderated posting privileges
More information about the opensource-dev
mailing list