• 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 Backward pieS · Apr 15, 2013 at 03:46 PM · particlesrenderer

Particles always appear on top or behind <- Not what I want

I've got spiral path that a particle system follows from top to bottom. There is a plane with an image of a tree (ie 2D sprite) in the middle, and the spiral flows down and around the tree trunk visual.

My problem is that particles generated behind the tree are still visible in front of it. Or, if I move the path back too far (positive Z), all the particles appear behind the tree (even though part of the path is in front of it).

I have the particles being generated in Wold space on billboards, so I don't understand why those farther away from the (orthographic) camera than the tree are appearing in front of it.

I have the Sort Mode set to "by Distance" and Sorting Fudge at 0, but those refer to inter-particle rendering, not the rest of the world, right?

Any suggestions on how to fix this would be much appreciated!

Comment
Add comment · Show 1
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 Dracorat · Apr 15, 2013 at 06:02 PM 0
Share

I think you have to use meshes for this to work as you expect- but the meshes could be simple two-tri quads and you can texture them with your particle material.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by iwaldrop · Apr 15, 2013 at 05:42 PM

Particle sorting is indeed related to just the particles relative to each other, yes.

There is a bug in unity with the scaling of objects that will cause your particles to appear 'in front' of geometry; heres a forum post about it. I ran into this same problem and recall that changing the scaling did fix the problem. Try playing with the scale to see if it will fix your problem, and if it doesn't please post back here.

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 Backward pieS · Apr 15, 2013 at 11:41 PM 0
Share

Thanks for the link. I tried the suggestions in the thread, but they haven't solved the problem. I'm going to keep reading through it to see if I can glean a solution.

avatar image
0

Answer by sefiroths · Sep 30, 2017 at 08:35 AM

this shader strech my texture...after before


schermata-2017-09-30-alle-103548.png (198.9 kB)
schermata-2017-09-30-alle-103519.png (231.6 kB)
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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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 control speed scale by code 1 Answer

Blast Particle Gets Cut Off 0 Answers

3d mesh glitch in particle system (mesh reduction when sizing down to 0) 1 Answer

Particles deformed and missing on mobile build 0 Answers

How to Make Multiple Particle Textures 2 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