Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: texture colors

2 views
Skip to first unread message

Tim Jörgen

unread,
Sep 26, 2004, 4:08:34 PM9/26/04
to
"chytrus" <@o2.pl> schrieb im Newsbeitrag
news:cj47cs$kc6$1...@polsl.gliwice.pl...
> I'm new in OGL and
> I wonder if there is any method for changing colors
> when displaing texture.
>
> The simplest case looks like this:
> Lets say that I'vo got a texture with only few colors (in RGB)
> for ex.:
> (1,0,0), (0,1,1),(0,0,1),(0,1,1),(1,1,0)
> and I want to display this texture (without changing it)
> with another colors for ex. swap (1,0,0) with (0,1,0),
> the rest colors should not change.
>
> Thanks for any clues.
>
> Zbyszek.
>

Hi,

hmm, I dont know how to make this with the OpenGL Api, but lets say your
Texture is in an BMP file. You could just parse the file and change the
colors before you create your Texture. You could even create a knew file, so
that you will just need to open the new file, once you changed the colors.


Cu,
Tim Jörgen


0 new messages