opengl texture problem

Started by
12 comments, last by swiftcoder 9 years, 11 months ago

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

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.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

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?

No, need to have matching arrays of each.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement