Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Light direction bug / additional rotation?

0 REPLIES 0
Reply
Message 1 of 1
rif_jochm
219 Views, 0 Replies

Light direction bug / additional rotation?

Accessing the "direction" property of a light object seems to give me strange results:

I made a test cell with a cube and a single fixed (i.e. not camera-relative) directional light, and no ambient light.

 

Case 1: I set the lighting so that it shines along the Z-Axis in the negative direction (the "top" of the cube is illuminated)

if i access the direction property of that light, it gives me "0, -1, 0" instead of "0, 0, -1"

 

Case 2: I set the lighting so that it shines along the Y-Axis in the negative direction (one side of the cube is illuminated)

if i access the direction property of that light, it gives me "0, 0, 1" instead of "0, -1, 0"

 

Looks like the results use another coordinate system or some additional rotations. Since this is not documented in the API, i assume this is a bug or a misunderstanding on my side. Please enlighten me 🙂

 

edit: Win7 64bit, Inventor 2012

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report