Closed Aeva closed 9 years ago
http://mgrl.midnightsisters.org/demos/location_picking/ demonstrates location picking, but the performance is bad. going to open up a separate issue for how to optimize this. also, it looks ugly :/
The location picking demo is probably fine for now. I've since added some optimizations to mgrl and changed the background color to make it look a little better. Going to move on from it now.
Added a distortion demo for picking, though the feature seems to be broken. Need to investigate :P
The simplified object and location picking API (issue #95) is now in master, but no demos use it yet.
For this issue, create several simple feature demos:
[x] one of the above demos but with a sine wave distortion applied to everything
To activate mouse events:
The skip____ props are set true by default as an optimization.
Additionally, the compositing graph can be accessed and modified via graph.picking.compositing_root so if there is some kind of screen space distortion, this can be reflected in how mouse picking works, too, at the expense of some extra rendering overhead.
Also, if you want to have multiple callbacks associated with an event, you can do something like so:
If you want to mute an event, set it to null.