Texturing a Mesh? How?

Blitz3D Forums/Blitz3D Programming/Texturing a Mesh? How?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hey, sorry. I see you aren't setting the UV co-ords when your adding a vertex. This must be done so the texture is layed out properly.

v0=AddVertex sideSurface,-1,-1,-1,0,1           
v1=AddVertex sideSurface, 1,-1,-1,1,1 
v2=AddVertex sideSurface, 1,-1, 1,1,0 
v3=AddVertex sideSurface,-1,-1, 1,0,0

  AddTriangle sideSurface,v0,v1,v2             
  AddTriangle sideSurface,v0,v2,v3


try that :)