Jump to content

The camera position according to the scale of the mesh


Dad72
 Share

Recommended Posts

Hello,

 

How to keep the camera or to a position sufficiently away so that an object is completely visible by its scale.

Some very large object that makes the camera is found on the inside of the object and I would like to reposition the camera so that the object is seen entirely.

 

How to do ? This is for a mesh explorer (a mesh viewer)

 

Thanks for your help.

Link to comment
Share on other sites

Ortho is not fixed position / direction.  It is not even really a camera.  It is a mode.

cam.mode = BABYLON.Camera.ORTHOGRAPHIC_CAMERA;

I tried a playground with an ArcRotateCamera & ortho turned on.  The camera was set way back.  I do not know why, but it did rotate.  Maybe if you can find how to ortho is working here you might make it work.

 

Playground, ortho commented out

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...