I have a small tool that I use to convert some mesh files. The mesh files have the normal’s stored in either DEC3N or UDEC3 format. How do I unpack that to three regular floats cpu side?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is explained here:
http://www.khronos.org/registry/gles/extensions/OES/OES_vertex_type_10_10_10_2.txt
So if you have normal in 32-bit variable N with UDEC3 format, then
Most likely you’ll want to unpack also w, and divide xyz with w.