Brian Radojcic wrote:

Hi Rafa,
Thanks for the info. However I was refering to a light's direction parameter from the lib3ds. Do you know how I can get that value?

*//*

oops sorry :-)

well, i have no idea how it is resolved in lib3ds, but if this information is not directly available, then it is hidden inside light's matrix. So i'm guessing that you need to get light's matrix, then clear(zeroe) it's translation component, and transform a normal v(0,0,1) through this modified matrix. Resulting vector will be lights orientation in world space.

Hope this helps.
greets
Rafał



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
lib3ds-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lib3ds-devel

Reply via email to