Save Mesh

Blitz3D Forums/Blitz3D Programming/Save Mesh

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.

Hi Yavin. I posted the SaveB3D Example from the Code Archives. It worked well with several test meshes. It should at least print some warnings to the screen, when textures are not defined or texture-files are not found.

Did you try to display the result of AddMesh onscreen? Did this look right? Or was it white as well?

Please note: the Example SaveB3D expects everything to be in the same folder: .bb program, mesh file and textures.

One important trick to make AddMesh work as desired is you should not use "Entity-Commands" before you add them together. Instead use "Mesh-Commands". Examples given:

Use PaintMesh instead of EntityTexture
LoadBrush instead of LoadTexture
PositionMesh instead of PositionEntity
...

Then also make sure the handle you are trying to save is a mesh, and not some kind of parent pivot or something.