Surface/vertex error with B3d loader

Blitz3D Forums/Blitz3D Bug Reports/Surface/vertex error with B3d loader

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.

jfk

I'm using the test on a single surface mesh so there's no problem with getting the surfaces mixed up. If you run the test on any mesh you'll find that the xyz values stored in the .b3d are not what's listed when you examine the surface. It seems to transpose values for two adjacent vertices at irregular intervals. This can be extremely frustrating if you are trying to use mesh transformation/animation or vertex manipulation and the wrong bits are affected.

Here's a sample from a previous vertex_debug.txt I did. It's from the second part that shows the vertices assigned to a bone (first identifier) and the .b3d stored values (first three values) and the surface values (last three values):-

bone_Lupperarm
114 -0.509136 0.566088 -0.037949
-0.509136 0.566088 -0.037949

115 -0.475962 0.512421 0.052254
-0.755178 0.49754 0.029134

122 -0.509131 0.446608 -0.037958
-0.509131 0.446608 -0.037958

123 -0.470354 0.5 -0.086906
-0.767302 0.497315 -0.047245


Beaker

Mea culpa. I stand rightfully admonished and will now always use the codebox tags.

Cheers

GrumpyOldMan