2D Toolkit Forum

2D Toolkit => Support => Topic started by: happy123 on March 01, 2014, 08:02:32 am

Title: How does ortho translate to perspective?
Post by: happy123 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?
Title: Re: How does ortho translate to perspective?
Post by: unikronsoftware 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.
Title: Re: How does ortho translate to perspective?
Post by: happy123 on March 02, 2014, 03:58:15 am
Sounds like an idea!