🔒 Locked
texture mapping using OpenGL
Advertisement
Original Post
hi there...
I have a problem where I created a 3d object using glBegin(GL_LINES) and using glVertex3f() to specify the points. So, the 3d wireframe is ok. But when I try to put some texture on it, by using glBindTexture, etc, I still get a wireframe model but the wireframe itself are textured! I don''t want a wireframe anymore, I want a solid model (textured of course).
Where am I going wrong?
Xtreme.
actually quite the opposite! I can see that more (unnecessary) lines are drawn with GL_TRIANGLES. but its ok with GL_LINES.
But, when I decide to put a texture on it, the one with GL_TRIANGLES comes out solid while the one with GL_LINES is textured in wireframe only.
Also, how can I divide up the textures in the whole 3d wireframe so that I can have I have say one texture on the body, a different one on the arms, etc... (that is, having multiple textures on the one object?) Currently, this texture is mapping to every single part of the object!
But, when I decide to put a texture on it, the one with GL_TRIANGLES comes out solid while the one with GL_LINES is textured in wireframe only.
Also, how can I divide up the textures in the whole 3d wireframe so that I can have I have say one texture on the body, a different one on the arms, etc... (that is, having multiple textures on the one object?) Currently, this texture is mapping to every single part of the object!
currently this is how I implemented it:
Now, with this, I get one texture mapped to all of the object, how can I divide it up?
|
Now, with this, I get one texture mapped to all of the object, how can I divide it up?
zeedzeek, i don''t want a wireframe model. (i just did that to see if the lines were drawn right).
I want a solid model but since I made this model from one piece (that is, from glvertex3fs) I now want parts of the object to be texture mapped with not just one, but multiple textures.
Is that possible?
I want a solid model but since I made this model from one piece (that is, from glvertex3fs) I now want parts of the object to be texture mapped with not just one, but multiple textures.
Is that possible?
Guys... I never thought about this before, because I''ve never had a reason to try it. Is it possible to bind multiple textures to one polygon by specifying mapping coordinates? As an example, could I map a quad with 4 seperate textures on each "corner"?
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement
