Archived

This topic is now archived and is closed to further replies.

Point Sprites always underwater?

This topic is 5983 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 draw a whole bunch of point sprites, with the Z-buffer disabled (like all the tuts say you should). I am also drawing a patch of water with 50% transparency. No-matter where the sprites are in 3d space, they are blended with the water, making it look like they are always underwater. If Have tried beginscene ... DrawSprites DrawWater ... endscene and BeginScene ... DrawWater DrawSprites ... EndScene and in either case, I get the same results. If make the water totally opaque, then it looks fine but... I don''t want opaque water. The sprites are standard Point Sprites, drawn with variable alpha and the water is just a big rectangle textured with a .dds texture. ''Doing the impossible is kind of fun'' - Walt Disney

Share this post


Link to post
Share on other sites
Doh!

Thanks FunkyMunky, that''s pretty much exactly what''s happening! They both use similar renderstates (being transparent and whatnot), but the sprites... ugh.

Cheers,

''Doing the impossible is kind of fun'' - Walt Disney

Share this post


Link to post
Share on other sites