Unfortunately, it seems to have some funky normals. When I check mesh->HasNormals(), true is returned. If I read the first vertex's normal from the first mesh, I get 23656.4,34282.3,-41445.4. That seems more like a vertex position than a normal. Indeed, that's not the only vertex with an odd normal. These are a sampling from just after ReadFile() is called (with no aiProcess parameters). The first three entries are the vertex coordinates (x,y,z) and the next three are the normal (nx,ny,nz).
I've tried using aiProcess_FindInvalidData, which finds nothing, and aiProcess_ValidateDataStructure which gets stuck on an animation error (which is weird because I don't think this scene actually contains any animation).
Is there another LightWave Scene sample somewhere which is known to work that I might try in place of my ISS model?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the test-folder you can find a bundlke of test files. LWS should be included as well. Have you check you file with a modelling tool like blender to check if it's ok?
If ynot: just let me know: I will open an issue report for it.
Kimmi
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to read an LWS of the International Space Station from NASA:
http://nasa3d.arc.nasa.gov/detail/iss-hi-res
Unfortunately, it seems to have some funky normals. When I check
mesh->HasNormals(), true is returned. If I read the first vertex's normal from the first mesh, I get 23656.4,34282.3,-41445.4. That seems more like a vertex position than a normal. Indeed, that's not the only vertex with an odd normal. These are a sampling from just afterReadFile()is called (with no aiProcess parameters). The first three entries are the vertex coordinates (x,y,z) and the next three are the normal (nx,ny,nz).Adding vertex 0: 0,0,64.3781 23656.4,34282.3,-41445.4
Adding vertex 1: -563.624,311.099,-0 23656.4,34282.3,-41445.4
Adding vertex 2: -31.1099,-56.3624,0 23656.4,34282.3,-41445.4
Adding vertex 3: -31.1099,-56.3624,0 23656.4,34282.3,41445.4
Adding vertex 4: -563.624,311.099,-0 23656.4,34282.3,41445.4
Adding vertex 5: 0,0,-64.3781 23656.4,34282.3,41445.4
Adding vertex 6: 0,0,-64.3781 -16399.4,-38287.9,41445.4
Adding vertex 7: -563.624,311.099,-0 -16399.4,-38287.9,41445.4
Adding vertex 8: 31.1099,56.3624,0 -16399.4,-38287.9,41445.4
Adding vertex 9: 31.1099,56.3624,0 -16399.4,-38287.9,-41445.4
Adding vertex 10: -563.624,311.099,-0 -16399.4,-38287.9,-41445.4
I've tried using
aiProcess_FindInvalidData, which finds nothing, andaiProcess_ValidateDataStructurewhich gets stuck on an animation error (which is weird because I don't think this scene actually contains any animation).Is there another LightWave Scene sample somewhere which is known to work that I might try in place of my ISS model?
In the test-folder you can find a bundlke of test files. LWS should be included as well. Have you check you file with a modelling tool like blender to check if it's ok?
If ynot: just let me know: I will open an issue report for it.
Kimmi