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 ryf9059 · Jun 20, 2013 at 05:25 PM · meshrenderingparticlesparticle

Particle rendered behind meshes/billboards?

I have a particle effect using sphere emitter that I want to render in front of some meshes/billboards but there are some problem with the rendering order which is pretty strange: it's rendered behind the mesh in the scene view and also the built executable, but it's rendered in front of the mesh in the game view (the actual game play in unity editor).

I'm using this in a 2D game so everything are on the same Z axis. EDIT: I also tried to adjust the Z value of those object so the particles appears in front of the object, but still no use.

So the funny fact is that it looks all good in my game view with particle rendered in front of the mesh in the unity editor but once I use build and run the render order have all gone wrong again. The particle and the mesh are having the exact same Z location.

What is the strangeness all about? Can I adjust the render order somehow such that it will appear in front or behind a mesh as I see fit?

And furthermore, can I adjust the effect such that if a particle spawns at the same location as the mesh, the particle order will follow the exact physical appearance? That is, some particles in front of and some particles behind the mesh since the particles are emitted from a point to all random directions?

Thanks

Comment
Add comment · 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 whydoidoit · Jun 21, 2013 at 07:52 AM 0
Share

Are you saying that the Z coordinates are exactly the same? Because you will need to make sure that all of the billboard emitted from the sphere are infront of the thing you want them to obscure. Or are you saying none of them are in front, even though you would expect some, emitted from a sphere, to have a Z coordinate which is closer to the camera?

avatar image ryf9059 · Jun 21, 2013 at 07:57 AM 0
Share

I'm making the particle in 2D space, XY plain precisely, so Z axis is the same for all objects. Edit: I even try to adjust the Z coordinates of the particle system so that it's definitely in front of the object but it's still rendered behind it. Again, this only appears in scene view and executable, the editor game view displayed correctly.

avatar image whydoidoit · Jun 21, 2013 at 08:03 AM 0
Share

In 2D you still use Z as it affects rendering order. An orthographic camera just ensures it doesn't have any effect on the size of the object. Two objects with the same Z could be rendered differently.

avatar image ryf9059 · Jun 21, 2013 at 08:05 AM 0
Share

I also tried altering the z value so the particle system appears in front of the object, but it still didn't work.

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.

Follow this Question

Answers Answers and Comments

15 People are following this question.

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

Related Questions

How to make mesh-render mode particles fade out? 2 Answers

Best Method For Best Particles? 1 Answer

Question on Max Particle Size 0 Answers

Unity BUG crash when modify ParticleSystem MinMaxCurve 0 Answers

Particle system won't restart emitting before last particle has died 3 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