Announcement

Collapse
No announcement yet.

3D Chessboard same screen size independent of aspect ratio?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Blue669 You need to make your camera distance a function of the screen size. There will a relationship you can calculate using something like:

    I didn't actually make the calculation because I don't really know your setup , but you're going to need to change the camera distance based on screen size.

    Attached Files

    Leave a comment:


  • 3D Chessboard same screen size independent of aspect ratio?

    Hello!

    I'm currently making a game with something like a 3d chessboard (top down view) in the middle of the screen and UI elements around it.
    All UI elements are anchored on center to stay aligned with the chessboard.

    Now I've noticed that with different aspect ratio, the chessboard is getting too close or too far away from the camera, making the UI elements not line up anymore.

    Does anyone know a trick to align the 3d chessboard with the screen that keeps aspect ratio in mind so the object size stays the same?

    Thanks so much in advance!
Working...
X