Inventor Customization

Reply
Contributor
rif_jochm
Posts: 12
Registered: ‎07-20-2010
Message 1 of 1 (87 Views)

Light direction bug / additional rotation?

87 Views, 0 Replies
11-17-2011 09:01 AM

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube