Having some problems trying to get 3D coords for the mouse. Hey, what else is new, seem to be tons of posts about that.
Anyway, I created a transparent plane to capture the mouse events. There are two problems: First, I want to get these coordinates every time the mouse moves, but onMouseMove doesn't seem to fire. Based on what I read in the forums, that seems to be a function of it only being processed during rendering. Kinda makes it hard for my app. I do lots of background work of various kinds and don't really want to burn the cpu to continuously render if I can be using it for other tasks, so I only render when something actually changes. Would be nice to find a way to get the mouse moves in that case. Second, I am temporarily using mouse downs, which do seem to get processed regardless of rendering. But, the scene coordinates are just not right. I am using an Orthogonal lens for this app (aha!). I wanted to use 2 lenses for my different views, but that's another story I won't get into. Anyway, looks to me like the code in View3D to figure out the scene coordinates uses the wrong perspective info. It is hard coded to use the same style as PerspectiveLens, which differs from OrthogonalLens? Seems like it ought to make a call on the lenses getPerspective or some such to deal with this. Cheers, BW