LoadMesh b3d

Archives Forums/Blitz3D Bug Reports/LoadMesh b3d

H. T. U.(Posted 2007) [#1]
Last month, the code "LoadMesh("building.b3d")" worked just fine. However, this code no longer returns a file handle. How do we fix it?!

GfK(Posted 2007) [#2]
This isn't a Blitz3D bug.

If LoadMesh is returning 0, it pretty much means it couldn't find the model to load.

H. T. U.(Posted 2007) [#3]
That's what I assumed, but the model does exist in the correct file, and it does contain the needed data.

jfk EO-11110(Posted 2007) [#4]
make sure to test it with a file that works on every machine. Maybe your B3D file isn0t totally perfect. Maybe you have replaced your hardware/driver/compiler version. In some rare cases a B3D file may work on one machine and won't work on another machine. If somthing's wrong with it and it cannot be loaded successfully then blitz will also return zero.

A surface with more than 33000 triangles may work on some systems only. (Use a max of signed 16 bit values for tris and verts)

H. T. U.(Posted 2007) [#5]
I finally found the problem. Somehow, I got an old version of B3d that couldn't use the file. Even the EntityRadius only took the x_radius#!

Ross C(Posted 2007) [#6]