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 25, 2014 at 03:32 PM · camera2dshadowsorthographic

Dynamic shadows in orthographic camera.

Hello,

I'm trying to use shadows with orthographic camera. I can only see shadows with directional lighting, not with points light. (I have enabled "deferred lighting" for see shadows with points light).

I want to get an effect like this video:

https://www.youtube.com/watch?v=Fhy9Rd9KNdc

I was researching and creator of the game was asking to create the shadows, he uses camera with projection matrix. Look at this post:

http://elysianshadows.com/phpBB3/viewtopic.php?f=6&t=8728&p=87921

There are several problems. I have no idea how he has done that, and how should I work with cameras matrix in Unity. Nor do I know if this is possible in Unity, because he uses OpenGL (I think).

Anyone would think an easier way to get it? Or another way? Or you can help me to understand what they have done to achieve this?

Thank you.

PS. I need to do this before I finish the month free trial of Unity Pro. Accomplish this will be what decides if I buy Unity or not. Because I need to know if this is possible in Unity, or if I can do it.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by AlwaysSunny · Oct 25, 2014 at 03:32 PM

Point lights get no shadows in orthographic. Just found that out myself, actually. I didn't fully grasp the explanations, but here's a thread with some discussion on this:

http://forum.unity3d.com/threads/deferred-lightning-impossible-on-orthographic-camera.117884/

Your proposed workaround is possible in principle. Pretty sure I've seen it done in Unity. Heck, I did it with XNA, so it's sure do-able. Incidentally, Unity Pro allows direct use of (some? all major?) OpenGL commands.

Note the really, really, stupidly clever suggestion proposed in the linked thread: Use a very, very distant perspective camera with a tiny, tiny viewing angle to imitate an ortho camera

Comment
Add comment · Show 1 · 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
avatar image PatataFrita · Oct 25, 2014 at 06:03 PM 0
Share

Note the really, really, stupidly clever suggestion proposed in the linked thread: Use a very, very distant perspective camera with a tiny, tiny viewing angle to imitate an ortho camera

Hmmm, I've been doing a lot of testing and it could really work.

Thank you very much!

avatar image
2

Answer by TeraTech · Jan 20, 2016 at 03:07 AM

Put your Ortho camera really close to your objects. Then set the Clipping Plane to a low number, like 50. Your will see your shadows.

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

Orthographic camera movement clamping 1 Answer

Making a camera semi-orthographic 2 Answers

parallax scrolling using orthographic camera 1 Answer

Dynamic Orthagraphic Camera Zoom 1 Answer

Resizing orthographic camera to fit 2d sprite on screen 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