Jump to content

calculate camera position to fit mesh size


lhx880619
 Share

Recommended Posts

3 hours ago, lhx880619 said:

@JohnK sorry to bother you again, would you pls give me some advise about this problem?

Sorry but this is something I have never dealt with and also on my laptop, tablet and mobile the mesh is in the centre, so no problem!.

On this occasion I can be of no help.

 

Link to comment
Share on other sites

@JohnK yes, the mesh is in the center, but my purpose is to see the whole mesh. on my mobile phone, you can't see the whole mesh. but pc you can see the whole mesh. 

so i think the position.y of camera is something related to the fov of the camera?

to see the whole mesh from top, i shoud get the max size of x,z

and camera.y=max/ tan(fov/2) 

not this

S70605-204115.thumb.jpg.a49ada4b2308a4473f3e822c2e0de00b.jpg

 

but should be like this

S70605-20364428.thumb.jpg.64f929543c0e0968891c4d184ce0039e.jpg

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...