mouse capture in viewport

Apr 3, 2013 at 9:43 PM
Edited Apr 4, 2013 at 1:55 AM
I'm trying to show the x,y,z position of the mouse within the helix3d viewport. I was wondering if there are any examples or samples, that show how to do this?

I'm building a 3D level editor, with a 3D grid, used for positioning objects. When the mouse moves through the grid, I want transparent planes to light up each side of the cube which the mouse is over, within the grid.

So far I have the X & Y mouse coordinates of the HelixViewport3D. I forget how to get the z coords. It's Camera lookat direction multiplied by something.. Arg, can't remember. Help!

Apr 15, 2013 at 10:22 AM
See the CurrentPosition property in the HelixViewport3D control.
Or use the Viewport3DHelper.Point2DToRay3D function. You can then find the intersection of the Ray3D and a Plane3D.
See also the "VoxelDemo" in the "ExampleBrowser".