Hersir Posted November 14, 2017 Share Posted November 14, 2017 Hi, I use such method to convert 3d position to 2d position on the screen: return Vector3.Project( position, // my position Matrix.Identity(), scene.getTransformMatrix(), scene.activeCamera.viewport.toGlobal( scene.getEngine(), scene.getEngine().getRenderHeight(), ), ); Works fine until I set scaling for example to: this.engine.setHardwareScalingLevel(0.7); I am doing something wrong? Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 14, 2017 Share Posted November 14, 2017 Does this help - ? Quote Link to comment Share on other sites More sharing options...
Hersir Posted November 14, 2017 Author Share Posted November 14, 2017 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.