holybyte
23-01-2004, 05:56 PM
please help!
What i need most to use sprites in Opengl is that a special transparent color is hidden and the rest is drawn on screen with color values as in the source texture. How can that be done ? What i don't need is transparency for all pixels or alpha, i want simply to hide a color.
Can somebody explain how to get this result with BLENDING. Or what would be the best way around ? I have read a tutorial on www.delphigl.de that shows how trees are displayed, making one color transparent through using a second monochrome texture with the needed alpha values. Maybe i have to use this way.. :?:
What i need most to use sprites in Opengl is that a special transparent color is hidden and the rest is drawn on screen with color values as in the source texture. How can that be done ? What i don't need is transparency for all pixels or alpha, i want simply to hide a color.
Can somebody explain how to get this result with BLENDING. Or what would be the best way around ? I have read a tutorial on www.delphigl.de that shows how trees are displayed, making one color transparent through using a second monochrome texture with the needed alpha values. Maybe i have to use this way.. :?: