Jump to content

How to keep camera fov static irrespective of canvas aspect ratio ?


dsman
 Share

Recommended Posts

So apparently based on device orientation and hence canvas aspect/size ,  the babylon camera cover more or less of scene. 

How do we restrict camera to cover fixed horizontal and vertical fov ? Or say cover fixed portion of the scene regardless of target canvas size/aspect. 

For example, In case of physical camera and screen playback, where the camera lens has fixed fov or coverage. Now if the aspect of target screen is bigger or smaller, either
1 . Fit the max side (left to right or top to bottom) of cameraview (video) to target screen's respective side and show black strip  in other side .  (Just like how some channel broadcast 16:9  movies on 4:3 format by adding black strip on top and bottom ) 
2. Fit the min. side of camera view to the respective side  of screen and other side gets cropped.  (Just like how some channel broadcast 16:9 movies in 4:3 format , left-right cropped)

 

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