[opensource-dev] Return drawable/object at mouse point

2011-07-26 Thread Lockwood, Nick
I'm writing some code for a research project to log the object at a
particular point on the screen (using mouse coordinates). So far I've
made use of the LLViewerWindow::cursorIntersect function which seems to
work pretty well. However, I can't seem to capture certain things like
the sky, clouds, water, etc. 

 

Is there a way that I can capture everything being rendered in the
scene? I was hoping it is possible to capture a particular drawable
being displayed at a given point. Then, I should be able to get the
object associated with that drawable as well as the render type. I just
haven't figured out an easy way to do that yet. Are there any functions
I'm missing, or does anyone have a suggestion as to how I can capture
these data? 

 

Thanks!

Nick

 

 

___
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

[opensource-dev] Detecting mouse over sky or water

2010-03-03 Thread Lockwood, Nick
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/sl...@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

Re: [opensource-dev] Detecting mouse over sky or water

2010-03-03 Thread Lockwood, Nick
Thanks for the tip Jason. Which class are you referring to when you say "touch 
picking code?"


-Original Message-
From: Gigs [mailto:gigstagg...@gmail.com] 
Sent: Wednesday, March 03, 2010 2:27 PM
To: Lockwood, Nick
Cc: opensource-dev@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/sl...@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

___
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