[sldev] Distribution of drawing/painting (was Mouse on 3D Objects)
Thickbrick Sleaford
thickbrick.sleaford at gmail.com
Wed Jan 27 13:41:24 PST 2010
On Wednesday 27 January 2010 21:20:10 Neil Canham wrote:
> My question is an always has
> been about if this is really going to be part of the plan - capturing
> mouse/keyboard for a media textured prim surface without opening a
> flat 2D window, and if so how will focus be managed?
>
If you look in Snowglobe (starting form 1.2), you can see a partial
implementation of this in newview/llviewermediafocus.(cpp|h) and parts in
newview/lltoolpie.(cpp|h). This is presumably fully implemented in viewer 2.0.
To try it, activate the MediaOnAPrimUI debug setting, and click a media prim.
It handles zooming/moving the camera so that the media face is orthogonal to
the camera, showing some HUD controls around the prim, and capturing keyboard
and mouse events. The version in Snowglobe is not fully working: mouse clicks
won't work and focus management is broken. But hovering your mouse over some
active html content will show that hover events are processed, and if you
click carefully enough, keyboard events will be passed too (so you are able to
browse the web by typing into google and tabbing to the right link.)
--
Thickbrick
More information about the SLDev
mailing list