www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: AGP on September 26, 2018, 05:35:15 am

Title: Orthographic Camera
Post by: AGP on September 26, 2018, 05:35:15 am
Is it at all possible to extend the Camera instance to create an orthographic camera?
Title: Re: Orthographic Camera
Post by: EgonOlsen on September 26, 2018, 09:49:43 am
No. An orthographic camera support would require drastic changes to the whole culling, clipping, reprojection and blitting code.
Title: Re: Orthographic Camera
Post by: AGP on September 27, 2018, 07:27:14 am
I expect either FrameBuffer or World is responsible for doing these things, but which is it?
Title: Re: Orthographic Camera
Post by: EgonOlsen on September 27, 2018, 08:17:56 am
Actually both plus the renderers contain some related code as well. It's a huge undertaking to change this, which is why I never bothered. You can move the camera far away and use a very tiny fov. That kinda gives you an orthographic projection, but of course it's not feasible in all situations.