Hey there! I have programmed an P3D Simulation and need to display some objects in the size I have initialized them so they appear to stay the same size even if I move my camera away from them. I think there is somewhere a hint() for that but I can not find it. It would be great if you could help me!
1 Like
Sounds like you mean a orthogonal (orthographic) projection?
Ortho()
But that will affect how everything looks, not just some objects.
1 Like
In Peasycam look at beginHUD()
Or see 9 in this list
1 Like
Thank you raron and Chrisir for your reply!
Sadly ortho()
isn’t working in my sketch because every rotation of my camera gets ignored and a everything else is based on this rotation.
And the hint(DISABLE_DEPTH_TEST)
is the basis of my UI and does not work with the objects.
I’ve solved the problem by scaling the objects with scale()
depending on the distance between camera and object. So this problem is solved.
3 Likes