Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
mka's avatar
mka
Explorer
11 years ago

Re mouse picking

The program I have developed for the Rift (which uses OpenGL) needs the ability to pick objects
with the mouse. What one needs is a map M which maps pixel coordinates (x,y) on the Window or
monitor screen to pixel coordinates (x',y') in the texture buffer (pRenderTargetTexture of
renderDevice). In DK 1 with client distortion rendering, I defined this mapping M myself using the
information we were given about the distortion map. However, the recommended approach
for DK 2 is to let the SDK do the distortion rather than do client distortion rendering. If the distortion
is going to be hidden in the SDK, then it seems to me that the SDK should also supply the map M.

My question therefore is: Does the Oculus development team have plans to do this for the SDK?
(I am not aware of the map M being available currently.)

At the moment I will write the map M for DK 2 myself on the assumption that the mathematics
for the distortion has not changed. But who knows what kind of distortion maps will be used in
future SDK's and it would therefore be inconsistent to recommend SDK distortion rendering while
expecting developers to write the map M themselves.

Hopefully, there is someone from the Oculus development team that can answer this question!

14 Replies