Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


weird spontaneous texture

This topic is 5842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I finally got texture to tile on the walls of my game world, but the tiles don''t look quite right...can someone please help me? I don''t know how to screencap on Unix so here''s my lame ASCII rendition of what a wall looks like. ------ |\ | | \ | | \ | | \| ------ You are looking straight/head-on at the wall face(so it looks like a rectangle). The brick texture is supposed to be tiled neatly across the entire wall, but what happens is that the tiling only works on the part of the wall above the diagonal. The part of the wall below the diagonal is mapped with a warped, stripy version of the brick texture that looks kind of like the bricks are melting and dripping down towards the ground, which looks kinda cool but isn''t exactly the look I''m going for. I''m almost 100% my textures are loading properly, so I''m thinking it has something to do with my vertex array. I''m using glTexCoordPointer() and DrawElement() to draw the wall. The points are oriented counter-clockwise, and the texture coordinates I''m passing to glTexCoordPointer are [0,0,0,10,10,10,0,10]. The textures are correctly set to GL_REPEAT. Please help!

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!