• 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
Question by Deive_Ex · Jan 06, 2015 at 07:54 PM · particlesparticlesystemexplosion

Particles behind/in front of other particles

So, I'm learning how to make particles with shuriken and I've been having quite some progress. I tried to make an "Wind Waker-like explosion", and for me it looks pretty good, but this is ruining it all:

alt text

Here's my problem: in the 1st picture, the orange smoke was supposed to be BEHIND the brown smoke, and in the 2nd one, part of the brown smoke was supposed to be behind the orange one, but it's either completly in front or completely behind, depending of the camera angle...

The explosion looks like this:

alt text

The brown smoke act like an "impact wave" so, as I said, part of it was supposed to be in front of the orange, while the rest should be behind. I'm using the "Particles/Alpha Blended" shader for the smoke material, because it's one of the few that shows the smoke the way it is in the image (the only other that I found was "Sprite/Default", but the same thing happens).

So, how can I fix this?

1.png (97.4 kB)
3.png (79.4 kB)
Comment

People who like this

0 Show 4
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 smoggach · Jan 06, 2015 at 08:11 PM 0
Share

Try using one as a sub-emitter of the other.

avatar image Deive_Ex · Jan 06, 2015 at 08:53 PM 0
Share

Didn't work... :/

avatar image Go2ready · May 10, 2015 at 11:44 AM 0
Share

did you solve this problem? I have similar issues while I cant find any help with it :(

avatar image SEMOGraphics · Jul 07, 2015 at 12:59 AM 0
Share

alt text

I also have the same ordering issue ... any soluton?

order-issue.png (53.8 kB)

1 Reply

  • Sort: 
avatar image

Answer by Anxo · Jan 06, 2015 at 08:47 PM

Change particle render layer via code.

http://answers.unity3d.com/questions/577288/particle-system-rendering-behind-sprites.html

Comment

People who like this

0 Show 5 · 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 Deive_Ex · Jan 06, 2015 at 09:16 PM 0
Share

This is for sorting layers, Sorting Layers only appears in 2D mode, right? This project is 3D.

avatar image smoggach · Jan 06, 2015 at 09:25 PM 0
Share

Sorting layers are actually applied to everything. If a sprite or particle is on the Default sorting layer then it's Z coordinate will be taken into consideration when drawing.

Particle Renderers have a sorting layer and order too but it's not exposed to the inspector, you have to write a script for that. I don't think this issue has anything to do with the sorting order though. It's more likely that the problem has to do with the Material and how you're using it. Your particle systems may also have Static Batching enabled.

avatar image Deive_Ex · Jan 06, 2015 at 10:39 PM 0
Share

@smoggach How do I disable the static batch? And how can I check if the problem is the material?

avatar image smoggach · Jan 06, 2015 at 10:46 PM 0
Share

In the very top right of the inspector there is a little checkbox labelled "Static" If it's ticked then unity will try to static batch this object.

Perhaps try Mobile/Particles/Alpha Blended. You might also try using the same material for both systems or different one.

The issue may also be the camera layers. Are both of these systems on the same camera layer? (the combo box just below the static checkbox). They should be on the same layer.

avatar image Deive_Ex · Jan 07, 2015 at 02:32 AM 0
Share

@smoggach The static checkbox was already disabled, so I tried activating it, but nothing changed. I also tried the mobile shader, but again, nothing changed. And yes, they're on the same layer (they're both on the "Default" layer).

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Is it possible to make a particle system solid??? 2 Answers

2d explosion Particle effect hard to make 1 Answer

Spawned Particle System in game looks different from prefab 2 Answers

Explosion Using Particle System 0 Answers


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