You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just checked against various .awd sample files. The spec says the 4x4 matrix
should be 128 bytes long, but I have yet to find a file where this is the case.
128 bytes suggests that each float is 8 bytes long and thus a double. Problem
is that in the sample files the matrix allocates only 48 bytes, which would
work for floats (last row is dropped, so we actually have a 3x4 matrix).
Also I guess it wouldn't hurt to add a small note for matrices that the last
row is omitted because it is always [0, 0, 0, 1]. Took me 2 hours to figure
that out :/
What's wrong here? The spec or the official sample files?
Attached a sample file of a simple cube exported with prefab 3D.
Original issue reported on code.google.com by pr...@ibbgdv.de on 8 Aug 2012 at 9:46
The spec would be incorrect (or well, work in progress) here. There is a flag
in the block headers that indicate whether matrices should be "wide" (doubles)
or not (floats) but you're right that they should never be 16 entries long.
Thanks for reporting!
Original comment by bengtric...@gmail.com on 8 Aug 2012 at 9:50
Original issue reported on code.google.com by
pr...@ibbgdv.de
on 8 Aug 2012 at 9:46Attachments:
The text was updated successfully, but these errors were encountered: