Closed GoogleCodeExporter closed 9 years ago
Thanks for the bug report.
For some reason I changed the input values from references to pointer at some
point
(probably after I had tested the code). Fixes are in in R 113.
The functions are exposed in DetourNavMeshBuilder.h and should be used as
follows
(there was a bug in there which made the other direction not to work). The
intention
is to allow them to be used both when creating content as well as when loading.
// Native to foreign.
dtNavMeshDataSwapEndian(navData, navDataSize);
dtNavMeshHeaderSwapEndian(navData, navDataSize);
// Foreign to native.
dtNavMeshHeaderSwapEndian(navData, navDataSize);
dtNavMeshDataSwapEndian(navData, navDataSize);
I don't have any other way to currently test these other than inspecting some
binary
dumps, let me know if there are other problems/wishes.
Original comment by memono...@gmail.com
on 1 Feb 2010 at 10:34
Thanks for the fix, I will let you know if I come across any other endian
problems.
I've still not quite got Detour going on PowerPC. My initial testing was done by
saving a mesh as big endian and loading it (swapping it again) into the sample
app
again on PC.
Original comment by cameron....@gmail.com
on 2 Feb 2010 at 7:35
Original issue reported on code.google.com by
cameron....@gmail.com
on 31 Jan 2010 at 10:30