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.

So we now have...

  side = CreateMesh() 					

  sideTexture = LoadTexture("c:\blitz\bright.bmp")
    	
  sideSurface = CreateSurface(side)
  
  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

  EntityTexture(side, sideTexture)


Unfortunately it still doesn't work!!! Arhhh! Surely this should be easy...