- Home /
Camera 2D RPG in perspective
Hi,
I'm trying to make an old style rpg game in 2D. And I have problems with the camera. I know I can use the orthographic camera, but I want to use the perspective camera. The question is, is there any way to simulate the effect of an orthographic camera but still use the perspective camera?
Maybe using matrix cameras? I do not know what exactly is, but I read something looking information.
Any help is welcome.
I'm realy confused about wha you want. Orthaganic or whatever it's called (lol) is the best way I would do 2d, u can get 3d animations in the 2d camera. Could u make a picture or a screen shot to help me understand what your looking for?
You can use two cameras in conjunction with layermasks if you are trying to do what I think you are trying to do, maybe wrong though. One camera set to Ortho set to display only certain layers. One camera set to "Perspective" and again set to only display the other certain layers. Look at your depth setting to adjust which camera draws over the other. If this does not do what you need then post a little more info about your game and what you are trying to do so we can understand better what it is you need.
In Orthographic does not work point light, only directional light works.
But if I work on perspective, I do not get the old style RPG effect, so I need to convert a perspective camera into an orthographic camera. To make it look same and also use shadows.
An example of what I mean:
Do you need your shadows to move, if not bake your scene and set your camera to Ortho. Also as far as I know you don't get real time shadows with a point light regardless of your camera setup(maybe wrong, but I just did a test in one of my scenes and it worked like this), so you would need to use a directional light anyway.
(Edit : you can change your camera render setting to"deferred lighting" rather than "forward", which may allow point light shadows, not got great results yet though from trying.... ???)
(Edit 2 : I can't get any shadows cast on a terrain from a rock except for using directional lights with forward rendering. $$anonymous$$aybe I'm not doing something right, I would be interested to hear from other people about this, thanks in advance to anyone who can shed some light on this subject...sorry ;D)
Why dont you want to use an orthographic camora.
have you tried to lock the camora fasing the sid you want. the Question is unclear