Excellent, I'm sure I could make use of this!
Here's my unweld function .. no banks but free's the existing and returns the new mesh. Incase you're interested ..
For the points, just Rescale the sprites based on distance to camera should sort your dot size. That's assuming you're using the camera z pos to zoom else scale based on the zoom factor.
I'll keep an eye on this.
Stevie
Here's my unweld function .. no banks but free's the existing and returns the new mesh. Incase you're interested ..
unction MESHunweld( Mesh ) Copy = CreateMesh() ns = CreateSurface( Copy ) For su = 1 To CountSurfaces( Mesh ) s = GetSurface( Mesh , su ) For t = 0 To CountTriangles( s ) - 1 v0 = TriangleVertex( s, t, 0 ) v1 = TriangleVertex( s, t, 1 ) v2 = TriangleVertex( s, t, 2 ) Nv0 = AddVertex( ns , VertexX( s , v0 ) , VertexY( s, v0 ) , VertexZ( s, v0 ) ) Nv1 = AddVertex( ns , VertexX( s , v1 ) , VertexY( s, v1 ) , VertexZ( s, v1 ) ) Nv2 = AddVertex( ns , VertexX( s , v2 ) , VertexY( s, v2 ) , VertexZ( s, v2 ) ) VertexColor ns, Nv0 , VertexRed( s, v0 ) , VertexGreen( s, v0 ) , VertexBlue( s, v0 ) VertexColor ns, Nv1 , VertexRed( s, v1 ) , VertexGreen( s, v1 ) , VertexBlue( s, v1 ) VertexColor ns, Nv2 , VertexRed( s, v2 ) , VertexGreen( s, v2 ) , VertexBlue( s, v2 ) AddTriangle ns , Nv0 , Nv1 , Nv2 Next Next FreeEntity mesh Return Copy End Function
For the points, just Rescale the sprites based on distance to camera should sort your dot size. That's assuming you're using the camera z pos to zoom else scale based on the zoom factor.
I'll keep an eye on this.
Stevie