Possible to detect model loading problems?

Blitz3D Forums/Blitz3D Beginners Area/Possible to detect model loading problems?

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.


1) When attempting to load a 3D model file (.3ds, .x, etc.) with the LoadMesh and LoadAnimMesh commands, is it possible to avoid a fatal error upon a particular file being corrupt or not to Blitz's liking? (eg. was not exported correctly from the 3D Modelling program.)



AFAIK when LoadMesh or LoadAnimMesh returns zero, something went wrong while loading the model (could be that it doesn't exists, or that it is corrupt).