[sldev] Mouse on 3D object
Tateru Nino
tateru.nino at gmail.com
Mon Jan 25 23:50:24 PST 2010
There's ray-casting functions in the code that essentially inverts the
process of mapping 3D points within the frustum to 2D screen coordinates
-- that handles object touching, selection and more. I'm not 100% sure
where it is in the code, but virtually every mouse-click goes near it,
from memory.
On 26/01/2010 6:11 PM, Lawson English wrote:
> Ryan McDougall wrote:
>
>> I think he's asking if there is any projection function that would
>> automatically convert screen coordinates to local prim coordinates.
>>
>> Cheers,
>>
>>
>>
> I suspect that the viewer functions that help the LSL touch functions do
> this. Probably the control widgets for builders have much the same
> functionality (if they are not the same st of functions underneath it
> all). The Pupetteering code definitely could track the mouse on the
> avatar and render control widgets but I don't know how accurate it is.
>
> The media plugin SDK has a way of tracking mouse movements along a prim,
> but I'm not sure if its working yet or not.
>
> What he wants to do is certainly doable but I'm not sure how (yet).
>
> Lawson
>
> _______________________________________________
> Policies and (un)subscribe information available here:
> http://wiki.secondlife.com/wiki/SLDev
> Please read the policies before posting to keep unmoderated posting privileges
>
>
--
Tateru Nino
http://dwellonit.taterunino.net/
More information about the SLDev
mailing list