Does anyone know how to convert pixel to 3D space? I was planing to position a sprite dynamically.
Hello Kurochan,
You can use the Viewport.Unproject method for that.
The view and projection matrices can be extracted from the camera.
Use Matrix.Identity for the world matrix.
For the source vector, use the coordinate of the pixel in your window for XY and the depth of your object in the scene normalized between Viewport.MaxDepth and Viewport.MinDepth.
Thanks. Ive gotten tired of this engine. android doesnt work so well. Its the main reason I want to try this out. Ill just go with unreal for now.
I think this game engine is on the right track to be come very useful.
I cant even make the sample work on android. Its the reason I wanted to use this. Did you run the sample on android?
Sorry for the inconvenience. Android support is actually not trivial due to the variety of hardware. We had known issues on specific hardware with version 1.1. Those have been fixed in 1.2. If you still experience problems, we would be happy to hear about it. : )