• Advertisement
Sign in to follow this  

Billboard grass rendering-visual bug

This topic is 765 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have some issues with grass rendering. I generate each grass bush as small grid and save with random rotation. Probably couse this rotation:

 

2unycm9.jpg

 

 

 

 

How can i fix this? I tried same with small boxes, same result.

Share this post


Link to post
Share on other sites
Advertisement

My guess is that you are doing one-bit alpha on the grass, and that the grass texture is mipmapped. The mipmap downsampling is producing results that make your 1-bit alphas disappear in the higher mip levels.

In the past I have fixed this with distance field alpha instead of a 1-bit interpreted alpha channel. As long as you are using a 1 bit alpha you can adjust your threshold to make the further mips 'thinner' or 'thicker'. Both versions tend to look bad! A thinner threshold will make grass disappear like you are seeing.

Here's the paper. http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf

 

You use that technique but for grass instead of text. A distance field is much more tolerant of the mip downsampling.

Edited by DementedCarrot

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement