From: Kevin M. <ke...@vr...> - 2002-04-11 02:53:26
|
you'll need to choose modulate or blend (not decal) to make opengl blend with the under laying color of the p[oly... @--@---@---@----@-----@------@------@-----@----@---@---@--@ Kevin Meinert __ _ __ http://www.vrac.iastate.edu/~kevn \ || \| \ / ` Virtual Reality Applications Center \ ||.-'|--\\ Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, ----------------------------------------------------------- On Wed, 10 Apr 2002, Justin Hare wrote: > Actually, if you set the polygon's color using glColor3f(...) you can > significantly change the texture's color at runtime. > > What you could do is make one set of textures in grayscale, then use the > glColor3f(...) calls to set the color it appears when rendered. > > For instance, if you had a white light, you can make the textured polygon > appear blue with the grayscale texture by doing > glColor3f( 0.0, 0.0, 1.0, 1.0 ); > > Is that what you're trying to do? > > I'm thinking that if you have a green-ish texture to start off and do the > same thing, you'll end up with a turquoise texture if you glColor it to > blue. But if you use the grayscale textures, you'll have full control of > the color shade they have when rendered. > > > justin > > ----------------------------------------- > Justin Hare <ja...@vr...> > Virtual Reality Applications Center > Iowa State University, Howe Hall > http://www.vrac.iastate.edu > ----------------------------------------- > > On Wed, 10 Apr 2002, Josh Brown wrote: > > > Date: Wed, 10 Apr 2002 15:23:35 -0500 > > From: Josh Brown <br...@vr...> > > To: game dev club developers <isu...@li...> > > Subject: [isugamedev-devel] changing colors of textures > > > > > > I am working on a simple game that is texturing polygons using mipmapping. > > I have 4 textures drawn they all use 1 color, I need a copy of those > > textures in a different color. Is there a way to make openGL draw the > > texture using a different color? Is there a flag that when I call > > glColor3f(...) sets the color of a texture map. Or am I going to have to > > settle for making a new set of the textures in the different color and > > applying those instead of originals? > > > > Thanks > > Josh > > > > > > _______________________________________________ > > ISUGameDev-devel mailing list > > ISU...@li... > > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > > > > > _______________________________________________ > ISUGameDev-devel mailing list > ISU...@li... > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > |