UV Mapping. How can one point appear in multible places?

I am working on dynamically generating a basic cube from code. Everything is working fine, but I don’t seem to be able to wrap (hehe) my head around the concept.

The texture I am trying to wrap is on the left of the example, and the cube is on the right. Since the engine seems to want an equal number of 2d uv points and 3d vertices, how can that be?

Example: http://imgur.com/RTA4RHH

1 Answer

1

The problem is that to properly display your cube it has to have 24 vertices, not 8. Please check this answer from Eric5h5.