From: Josh B. <br...@vr...> - 2002-04-11 02:47:17
|
I think the fastest way to do what I want to do is to draw the object using primitives in OpenGL and store it into a display list. This of course only works if you can change the color of an object that is in the display list, is there a way to do that? If not I'll just store all objects of all different colors in display lists and have a look up function for the correct object for what I need to draw. On Wed, 10 Apr 2002, Kevin Meinert wrote: > > or you could disable textures for those elements... or since you are > loading the image, you could iterate over the pixels and set the colors > yourself... > > if all you need is a single solid color, just make a 4x4 image, and set > all 8 pixels to your color. > > you may want to test performance for all these cases... > > @--@---@---@----@-----@------@------@-----@----@---@---@--@ > Kevin Meinert __ _ __ > http://www.vrac.iastate.edu/~kevn \ || \| \ / ` > Virtual Reality Applications Center \ ||.-'|--\\ > Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, > ----------------------------------------------------------- > > On Wed, 10 Apr 2002, Josh Brown wrote: > > > > > 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 > |