Making different sized textured walls

Blitz3D Forums/Blitz3D Programming/Making different sized textured walls

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.

[edit] oops

Use copymesh and manually amend the uv's of the new wall. For example ...

Say you want the wall to be 3 x the xscale and therefore the texture to be repeated 3 times

MESHuv( WALLmesh , 3, 1 )

Should work providing you don't use the clamp U & V flags when loading the texture.

Stevie

Function MESHuv( mesh , scaleu#, scalev# )
   s = getsurface( mesh , 1 )
  for v = 0 to countvertices(s)-1
     vertextexcoords s, v, vertexu( s, v ) * ScaleU , vertexv( s, v ) * ScaleV
  next

end function


Stevie