 |
|  |
 |
|  |
 |
|  |
 |
|
targon
|
|
Dolgoprudny, Moscow region
Nov 2002 time: 08:25
|
|
quote: Originally posted by Vultur
Put one common color to each unit (like transparency color of sprites), than it's possible to implement in the game a function that change that color into the player's one.
Player logo... sound interesting. I think it's possible to paste a texture with a logo on a specified part of the unit.
|
I still can't grok that did you mean, Vultur. There are several possible solutions:
1) Colorkey texture. Really bad; we need either have a copy of all textures for each player (at least 2 for any battle) with changed colors or tweak colors each frame.
2) Two textures. Normal texture + color/logo texture. Use separate primitive sets and separate UV maps (the later element may use really simple map, just rectangle (0,0)-(1,1)).
3) Multitexturing. Good, but it may require either additional texturing units or excessive passes for legacy 3D cards.
4) Pixel shaders. Even better, but still not standard and needs fallback solution.
|
|
|  |
 |
|
targon
|
|
Dolgoprudny, Moscow region
Nov 2002 time: 08:25
|
|
Another possibility is to draw some parts of model without any texturing at all. It's a safe bet, in fact. glDisable(GL_TEXTURE2D) and go-go-go.
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:25. Apolyton Time is 00:25. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|