Hello Guest

Author Topic: How does ortho translate to perspective?  (Read 2286 times)

happy123

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
How does ortho translate to perspective?
« on: March 01, 2014, 08:02:32 am »
How does ortho view translate to perspective view? 

I want to use ortho view in the main menu screen on mobile, but then switch to perspective view when I am in the game so I can create 3d shapes.  I am curious how to do so.  I now have the settings so that both ortho camera and perspective camera are showing the objects the same size (see attachments).  This was set through playing around with the settings, but I want to know if there is a specific calculation used so I can set it in the script.

Another question is if I am in perspective view, how can I determine that the object has reach the edge of the screen?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How does ortho translate to perspective?
« Reply #1 on: March 01, 2014, 07:12:59 pm »
Sizes in the the perspective camera is dependent on distance and field of view, I'm not sure how that translates to the perspective camera. Why not simply create 2 cameras, one for the 3d and one for the UI and stuff and not have to worry about resizing anything.

happy123

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: How does ortho translate to perspective?
« Reply #2 on: March 02, 2014, 03:58:15 am »
Sounds like an idea!