Game Development Community

Blending Per Tile.

by Matthew Harris · in Torque Game Builder · 11/09/2006 (9:11 pm) · 3 replies

I understand you can blend per layer for the tilemaps. My suggestion is to add a feature to blend per tile. Lets say you have a bunch of bricks but want some of them slightly different colors. Blending per tile would be perfect for this. Of course I guess I can make different color bricks and import them but the final game would be a little smaller :P

#1
03/01/2007 (3:49 pm)
And probably a little slower...
#2
03/02/2007 (12:27 am)
Not only a little slower
As it would have to change blending state over and over again it would have a serious impact on low end cards.

Instead of doing blending per tile, how about multiple layer and put the blended ones on a different layer (1 layer per blend function for example)?
You still could invisible block items on the base layer for example if you need that for path find and similar.
#3
03/02/2007 (1:10 pm)
For Path-Finding, you could also do what I do, and build a custom path layer at run-time, based on custom-data obtained from all the layers in the scene .... using the A* Resource (C++ by Phil Shenk)