Primitives & Surfaces

Blitz3D Forums/Blitz3D Programming/Primitives & Surfaces

A Primitive cube has 1 surface, right?

So how come applying a texture doesn't 'wrap' around the whole cube, but is repeated across each face of the cube?

That would be down to the UV mapping.

It must be possible to maipulate UV maps from within code, right?

Something to do with ScaleTexture command is it?

That, and the createsurface, Createvertex (vertice?) and use of VertexTexCoords :D

A cube comprises six 'unwelded' quads - each is individually UV mapped like so:

0      U      1
   ___________
  |           |
  |           |
V |           |
  |           |
  |           |
1 |___________|