Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libawd] invalid content data type float float32 and float64 #55

Open
GoogleCodeExporter opened this issue Jan 5, 2016 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

Steps to reproduce the issue:

1. create an AWDTriGeom with a vertex buffer attached (in float32 or float64)
2.write the scene to a file
3.analyse the block corresponding to the Sub-geometry, specifically the vertex 
buffer part
4. notice that the content data type of the vertex buffer is 7 for float32 and 
8 for float64

The content data type should be 11 for float32 and 12 for float64, according to 
the specification document. I'm using the head revision, on a 64 bit windows OS.

Additional informations : in the file awd_types.h, the enum AWD_field_type 
declares the following values :
- AWD_FIELD_FLOAT32 : 7
- AWD_FIELD_FLOAT64 : 8
- AWD_FIELD_MTX3x2 : 44
- AWD_FIELD_MTX3x3 : 45
- AWD_FIELD_MTX4x3 : 46
- AWD_FIELD_MTX4x4 : 47

Changing those values to the ones specified in the document solved the problem.

Original issue reported on code.google.com by bousquet...@gmail.com on 26 Mar 2013 at 11:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant