Jump to content
  • Advertisement
Sign in to follow this  
thejelmega

OpenGL opengl texture problem

This topic is 1911 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

thank you, that is it

also, does anyone know how to do my texture coords seperate from my cube, because the sides are just lines that correspond to a pixel on the side

Edited by thejelmega

Share this post


Link to post
Share on other sites
Advertisement


also, does anyone know how to do my texture coords seperate from my cube, because the sides are just lines that correspond to a pixel on the side

You will need to do separate sets of texture coordinates for each face (and hence, separate vertices).

 

In general, it is very hard to draw a textured cube using less than 24 unique vertices, because each corner vertex will need to be a member of three distinct faces, each with its own UV coordinates.

Share this post


Link to post
Share on other sites

Oh, so you can't give the vertices to draw using elements and the texture coords separately.

and If I use separate vertices, isn't it going to be laggy? 

Edited by thejelmega

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!