RenolY2 / SuperBMD

A library to import and export various 3D model formats into the Binary Model (BMD) format. (Nintendo GC/Wii)
37 stars 10 forks source link

Fix rounding errors in the binary reader/writer in the `GameFormatReader` library. #47

Closed cristian64 closed 1 year ago

cristian64 commented 1 year ago

float and double were being used to temporarily store floating-point values that had yet to be converted to the correct endianness. This conversion was lossy.

The rounding errors were very noticeable in some of the stock courses in Mario Kart: Double Dash!!. For instance:

image