• 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 /
  • Help Room /
avatar image
0
Question by kornislav · Mar 08, 2016 at 01:41 PM · cameraaxistransparencysorting

Transparency sorting using separate camera

I have a simulated 2D game with a lot of parallax planes that differ in depth that I'm rendering using a perspective camera. I'm sorting these planes orthogonally so the position of the camera doesn't matter, and everything works fine. What I need now is to be able to rotate the camera to a certain degree. However, when I'm not looking straight ahead the transparency sorting no longer works. What I need is for the camera to always sort the transparent planes orthogonally along the Z axis, even if the camera is slightly rotated along the Y axis. Is there anyway to do this in Unity?

The only thing I've found so far is by manually setting the render queue on each plane's material, but that solution does not work in this case. There are far too many planes in the scenes and a lot of the planes share materials with eachother. It would literally take weeks to reorganize everything that way and I do not have that time.

I hope there is a simple solution to this problem, since the technical solution is really simple, I just haven't found a way to do this in Unity.

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

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How can I make the objects that are showing in the secondary camera become transparent? 0 Answers

How to rotate fluently/smoothly? 1 Answer

How does one prevent their Android Build from being transparent? 0 Answers

How do I exclude an axis from 'transform.localPosition'? 1 Answer

Trying to change the "camera.transparencySortAxis" to a new vector3 in runtime. [SOLVED] 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges