charliejay
09-22-2003, 04:30 AM
Hi folks,
What I want to do is to draw a bitmap that identifies a section of a plane to texture and have OpenGL texture it just as though it were a polygon for which I had set texture coordinates.
Obviously, the bitmap is a 2D structure, but you should, as I understand it, be able to control the texture matrix directly to have the texture appear in the appropriate perspective.
I've tried doing this, and I have managed to draw a bitmap where the texture affects the colour, but I've had no success whatsoever in controlling the effect.
Has anyone succeeded in doing this?
And will OpenGL actually do it, in the way I describe above?
charliejay
What I want to do is to draw a bitmap that identifies a section of a plane to texture and have OpenGL texture it just as though it were a polygon for which I had set texture coordinates.
Obviously, the bitmap is a 2D structure, but you should, as I understand it, be able to control the texture matrix directly to have the texture appear in the appropriate perspective.
I've tried doing this, and I have managed to draw a bitmap where the texture affects the colour, but I've had no success whatsoever in controlling the effect.
Has anyone succeeded in doing this?
And will OpenGL actually do it, in the way I describe above?
charliejay