[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: OpenGL texturing



Francesco Orsenigo wrote:

1) Draw the texture with transparent parts where the unit colours
  are needed.  Draw each unit twice - once in it's "unit colour"
  and then again in white with the texture applied to it. Wherever
  there are holes in the texture, your unit colours show through.
  No textures to download or modify in realtime!  One set of textures
  does for all the players.

I'll try this with some lights to change the colors...
You don't need lights to do that - just use glColor3f or something.

---------------------------- Steve Baker -------------------------
HomeEmail: <sjbaker1@airmail.net>    WorkEmail: <sjbaker@link.com>
HomePage : http://www.sjbaker.org
Projects : http://plib.sf.net    http://tuxaqfh.sf.net
           http://tuxkart.sf.net http://prettypoly.sf.net
-----BEGIN GEEK CODE BLOCK-----
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
-----END GEEK CODE BLOCK-----