Mesh/surface limit (JFK, one 4 u i think)

Blitz3D Forums/Blitz3D Programming/Mesh/surface limit (JFK, one 4 u i think)

Ok, we established the safe tri limit for a surf was 33000 (does that mean 99000 verts unwelded????)

Whats the single mesh limit? i tried adding more than 2 surfaces with 20000 tris each and it renders blank after the third(the whole mesh that is!), but no mav.


Graphics3D 640,480,0,2


cam=CreateCamera ()
MoveEntity cam,5,0,-10

m=CreateMesh()

sn=10

SeedRnd MilliSecs ()
Dim surf(110)
For a=1 To 20
	surf(a)=CreateSurface (m)
	tris=0
	Repeat
	
	
		v1=AddVertex (surf(a),Rnd(1)*a,Rnd(1),0)
		v2=AddVertex (surf(a),Rnd(1)*a,Rnd(1),0)
	
		v3=AddVertex (surf(a),Rnd(1)*a,Rnd(1),0)
		tri=AddTriangle(surf(a),v1,v2,v3)
		
	
		tris=tris+1
	
		verts=verts+3
	Until tris>10000
	DebugLog CountVertices(surf(a))
 	RenderWorld
Next



	DebugLog (a-1)+"   "+verts
WaitKey