Re: Drawing Textures and Primitives.
- From: fungus <umailMY@xxxxxxxxxxxxxxx>
- Date: Wed, 14 Jun 2006 02:03:24 +0200
joekeen@xxxxxxxxx wrote:
I can draw images from my texture and then draw all the primitives I
want. However if I draw my primitives first I can't see any texture
data that is draw after that. The function that draws from the texture
to the screen first does the glEnable(GL_TEXTURE_2D) call, draws from
the texture, and at the end of the function does the
glDisable(GL_TEXTURE_2D) call. The primitives just do the normal draw
calls.
Is there anything obvious I'm missing in this? Can anyone point me at
some examples that do what I'm trying?
I'm guessing it's because the wrong texture coordinates
are getting into the pipeline.
Are you using vertex arrays in your primitives? If you
are then make sure you disable the texture coordinate
arrays when you're finished.
--
<\___/>
/ O O \
\_____/ FTB. For email, remove my socks.
In science it often happens that scientists say, 'You know
that's a really good argument; my position is mistaken,'
and then they actually change their minds and you never
hear that old view from them again. They really do it.
It doesn't happen as often as it should, because scientists
are human and change is sometimes painful. But it happens
every day. I cannot recall the last time something like
that happened in politics or religion.
- Carl Sagan, 1987 CSICOP keynote address
.
- Follow-Ups:
- Re: Drawing Textures and Primitives.
- From: joekeen
- Re: Drawing Textures and Primitives.
- References:
- Drawing Textures and Primitives.
- From: joekeen
- Drawing Textures and Primitives.
- Prev by Date: Drawing Textures and Primitives.
- Next by Date: uv coordinates???
- Previous by thread: Drawing Textures and Primitives.
- Next by thread: Re: Drawing Textures and Primitives.
- Index(es):
Relevant Pages
|
Loading