Primitives & Surfaces

Blitz3D Forums/Blitz3D Programming/Primitives & Surfaces

_PJ_(Posted 2005) [#1]
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?


Rob Farley(Posted 2005) [#2]
That would be down to the UV mapping.


_PJ_(Posted 2005) [#3]
It must be possible to maipulate UV maps from within code, right?

Something to do with ScaleTexture command is it?


Damien Sturdy(Posted 2005) [#4]
That, and the createsurface, Createvertex (vertice?) and use of VertexTexCoords :D


big10p(Posted 2005) [#5]
A cube comprises six 'unwelded' quads - each is individually UV mapped like so:

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