Using the new vertex manipulator for texture splatting?
-
3DModelerMan
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Using the new vertex manipulator for texture splatting?
Is it possible to do that with the new vertex manipulator? Or what other way could I do software texture splatting.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
-
Lonesome Ducky
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
If you want to do that without shaders you can use EMT_TRANSPARENT_VERTEX_ALPHA material. You need to draw polygon one time for each texture you blend. Let say you have square tile which have three textures in three corners. First set texture 1 to material and set vertices to proper alpha. Call draw on that square. Next set texture 2, change vertex alpha and draw. Repeat for texture 3. You have just blended 3 textures on your tile.
This method might be even faster than shaders since it use fixed pipeline rendering and have benefit of all standard features like fog and lighting which could be changed in real time.
This method might be even faster than shaders since it use fixed pipeline rendering and have benefit of all standard features like fog and lighting which could be changed in real time.