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
2
Question by N1nja · May 21, 2010 at 08:05 PM · shaderztestzwrite

ZTest, and ZWrite Problem rendering a Cluster of Quads

Well, The problem should be a simple one, and hopefully someone can help me fix it( because, I am having issues here sadly. )

I have a group of billboard particles, I decide I want to render them all, when I notice particles farther from the camera are over-lapping particles which are closer to the camera..

Well, obviously this has something to do in the order that they're drawn right? Guess not, I have sorted my Quad data, based on distance from the Main Camera, though, it doesn't seem to have any effect.

So, my next decision was to enable the ZWrite, where I assumed that since the Quads are being ordered based on distance to camera, and rendered in that order, that since particles were being draw behind the closer particles, I wouldn't get any weird problems.

Wrong again! Oh, this is sad, the Quads are being properly rendered, but since their Blend is set to SrcAlpha OneMinusSrcAlpha there are these little cracks of background color(to the scene) on the edge of each quad, where I was hoping there wouldn't be any issues, I instead just keep walking into another one.

I'm running out of options (frantically tried a bunch of different blending techniques)

Interested in getting this problem solved, if anyone recognizes the situation, and has a proper solution, be sure to let me know!

bump, still need help with this

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
2
Best Answer

Answer by Eric5h5 · May 21, 2010 at 08:59 PM

Try reversing the order in which they're drawn.

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 N1nja · May 21, 2010 at 11:35 PM 0
Share

I tried this, didn't work. =[

avatar image
1

Answer by Tetrad · Jun 05, 2010 at 07:31 PM

Try changing the queue in which your quads are drawn? Maybe something like Transparent+1.

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

No one has followed this question yet.

Related Questions

How to have sorting order/layers used when Z depth is the same? 1 Answer

Can Unity Indie Use ZTest and ZWrite Shader Functions? 1 Answer

Z Fighting Help - How to get bias for ZTest only, not ZWrite 0 Answers

shader causes triangles to dissapear in U4 (worked in U3) 0 Answers

Drawing objects based only on layer order with no overdraw 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