Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by PatataFrita · Oct 18, 2014 at 05:50 AM · camera2drpgorthographicperspective

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.

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sethhalocat · Oct 18, 2014 at 06:05 AM 0
Share

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?

avatar image MrSoad · Oct 18, 2014 at 09:41 AM 0
Share

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.

avatar image PatataFrita · Oct 18, 2014 at 10:25 AM 0
Share

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:

http://www.youtube.com/watch?v=Fhy9Rd9$$anonymous$$Ndc

avatar image MrSoad · Oct 18, 2014 at 10:33 AM 0
Share

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)

avatar image EggQuiz857 · Oct 18, 2014 at 04:38 PM 0
Share

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

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by PatataFrita · Oct 20, 2014 at 12:07 PM

Any idea?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Making a camera semi-orthographic 2 Answers

Dynamic shadows in orthographic camera. 2 Answers

2D Camera Question: Pixel Perfect W/O Cutting Bottom Edges 1 Answer

Set camera to specify x,y in pixels? 2d 0 Answers

2D Orthographic matching proportions to screen resolution 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges