Archived

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

mannam

Rendering sprites without sorting?

Recommended Posts

mannam    122
Hello, From my understanding, I''ve to disable depth test and sort the sprites based on the z distance before rendering them. Is it possible to render them correctly without sorting? Because my model contains sprites and I don''t want to sort all polygons... Thanks.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
You only have to sort the polygons that are in the view frustum, which should not be a huge number. Otherwise you will be spending more time drawing than sorting anyway.

Share this post


Link to post
Share on other sites
Sander    1332
And you don''t need to disable depth testing and sort the polygons if you use alpha testing instead of alpha blending for your sprites.

Geezzz. I really hope that NeHe changes his masking tutorial to include aplha testing as another option. I can''t remember the amount of times i''ve written a similar reply to this one.

Sander Maréchal
[Lone Wolves Game Development][RoboBlast][Articles][GD Emporium][Webdesign][E-mail]


GSACP: GameDev Society Against Crap Posting
To join: Put these lines in your signature and don''t post crap!

Share this post


Link to post
Share on other sites