Hi Everyone,
I am currently writing a mesh viewer for a commercial game and i have worked out the file format ok but i am having trouble getting the normal’s out of it. I know it is using a packed format for the normal’s/tangent’s/binormal’s.
The data for each normal is packed into 32bits. So i assume they are doing something like that is described Here
I have tried everything mentioned there to unpack the data but to no avail.
Here is an example of one triangle, vertex position followed by the packed normal in hex.
X: 0.6887617 Y: 0.8091009 Z: -0.1088498
A5 FB B2 FC
X: 0.7176331 Y: 0.8863871 Z: -0.2892583
FE 2B 00 FC
X: 0.7230608 Y: 0.8863865 Z: -0.1173188
FE 2B 00 FC
Any help deciphering this would be greatly appreciated.
Thanks