• Advertisement
Sign in to follow this  

constant scale in viewport

This topic is 3568 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
You can try glhConstantSizeMatrixf2 or glhConstantSizeMatrixf from my glhlibrary
glhlibrary

It is intended to be used when you use a perspective projection.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement