Complicated Problem with canvases and cameras

BlitzMax Modules Forums/MiniB3D/Complicated Problem with canvases and cameras

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.

oh... I made a custom mesh... that has the triangles like a line...
Here is the code
Function CreateGrid:Tmesh(sgx:Int,sgy:Int,sx:Float,sy:Float)
	Local mesh:Tmesh = CreateMesh()
	Local surf:TSurface = mesh.CreateSurface()
	Local i:Int,vcount:Int=-1
	
	
	For i = 0 To sgx
		surf.AddVertex(-sgx*sx/2,0,i-sgy*sy/2)
		surf.AddVertex(sgx-sgx*sx/2,0,i-sgy*sy/2)
		vcount = vcount + 2
		surf.addtriangle(vcount-1,vcount,vcount-1)
	Next
	
	For i = 0 To sgy
		surf.addvertex(i-sgx*sx/2,0,-sgy*sy/2)
		surf.addvertex(i-sgy*sx/2,0,sgy-sgy*sy/2)
		vcount = vcount + 2
		surf.addtriangle(vcount-1,vcount,vcount-1)
	Next
	ScaleEntity mesh,sx,0,sy
	mesh.updatebuffer()
	MoveEntity mesh,1,0,1
	
	Return mesh
End Function