constant scale in viewport
How do i make a object of constant size (in viewport) independent of view parameters like distance from camera and fov? For example like the transform gizmo in 3DSMax or Lightwave.
I have managed to make it 'almost' independent based on camera distance:
scale_xyz = some_constant / distance_from_camera.
But how would i do it with fov?
Sounds like you want an orthographic view, where the objects shown don't decrease in size the further away from the camera they get. Google "glOrtho", and give that a go
You can try glhConstantSizeMatrixf2 or glhConstantSizeMatrixf from my glhlibrary
glhlibrary
It is intended to be used when you use a perspective projection.
glhlibrary
It is intended to be used when you use a perspective projection.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement