Jump to content

View more

Image of the Day

Working on an auto spawn system. #gamedev #indiedev #screenshotsaturday https://t.co/Mm2kfekz7b
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Rendering Intersecting Premultiplied Transparent Planes

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 PhillipHamlyn   Members   

579
Like
0Likes
Like

Posted 07 December 2012 - 05:11 AM

I'm trying to render some low poly trees where the "leaves" are simulated by textured quads set at semi-random angles to each other. My problem is that the textured quads create visual effects where their transparency doesn't correctly depth sort - unsuprising given that they intersect often in 3D space to give an illusion of complexity, which probably gives the depth sorting an issue working out which is actually "in front" of each other . Each textured quad represents a "branch" full of leaves (rather than each leaf being a textured quad).

Can anyone give me a hint how to either deal with this problem, or perhaps point me at a resource describing how to do low-poly trees to get a different solution ?

Thanks
Phillip.

#2 Nik02   Members   

4295
Like
0Likes
Like

Posted 07 December 2012 - 07:17 AM

Have you tried alpha testing and alpha to coverage?

Niko Suni


#3 PhillipHamlyn   Members   

579
Like
0Likes
Like

Posted 07 December 2012 - 09:28 AM

Nik02

Thanks for the reply - thats exactly the hint I needed.

Phillip

#4 C0lumbo   Members   

4356
Like
0Likes
Like

Posted 07 December 2012 - 10:05 AM

Depth peeling is another technique intended to solve this problem. Although I'd recommend you stick with Nik02's suggestions unless you're prepared to invest a lot of extra effort and processing power at the problem to achieve slightly more correct results.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.