Surfaces?

Blitz3D Forums/Blitz3D Programming/Surfaces?

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.

You add polygons to a surface with AddVertex() and AddTriangle()

Yes, it's possible to go through an existing mesh and add it manually to a new surface, then add another and another. For that you'd need to go through all the surfaces of the existing mesh with CountSurfaces() and GetSurface() then go through the triangles with CountTriangles() and use TriangleVertex() to grab the vertices which make up the triangles. You can then get the vertexpositions with VertexX() VertexY() and VertexZ()

It's not as complicated as it sounds, and if you check out SSwift's AddMeshToSurface() function in the code archives, it's a good example to show how to do this.

http://www.blitzbasic.com/codearcs/codearcs.php?code=575