Sign in to follow this  

Alpha Test with Water and Trees

This topic is 2005 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

Hello again!

Now my problem is rendering trees.

[img]http://img84.imageshack.us/img84/7564/95720190.jpg[/img]



I tryed this:

[url="http://blogs.msdn.com/b/shawnhar/archive/2009/02/18/depth-sorting-alpha-blended-objects.aspx"]http://blogs.msdn.com/b/shawnhar/archive/2009/02/18/depth-sorting-alpha-blended-objects.aspx[/url]

And It was nice, but water must be the last thing to draw...

I dont't know what to do... I am completely stuck in this problem.

Share this post


Link to post
Share on other sites
you need a deep list so you draw your objects from back to front, including the water.

water is normally last due to transparency, but since you have trees that have an alpha in them, then I will just consider trees and water all together, and draw water before trees if you are over ground, and trees before water if you are below water. Edited by winsrp

Share this post


Link to post
Share on other sites

This topic is 2005 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this