Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#25270] X3D Export generates incorrect location for Lamp
Date:
2010-12-17 18:05
Priority:
3
State:
Closed
Submitted by:
John Coady (
jdc
)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Import/Export
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
X3D Export generates incorrect location for Lamp
Detailed description
The location of the PointLight in the file produced by Export to X3D of the default scene does not match Location in the blender scene. To reproduce the problem, start up blender, and just perform an Export to X3D operation of the default scene. The location of the Lamp in blender is ( 4.076, 1.005, 5.904) but the location of the corresponding PointLight in the X3D file is given as (4.076 4.828 -3.544) . Since in an X3D scene it uses a right handed coordinate system with +X axis to the right, +Y axis is up and +Z axis coming out of the screen, I expected the lamp location to be (4.076, 5.904, -1.005) . This is what Export to X3D produced for the PointLight object.
<PointLight DEF="Lamp" ambientIntensity="0.0" color="1.0 1.0 1.0" intensity="0.571" radius="29.9999828339" location="4.076 4.828 -3.544" />
Followup
Message
Date
: 2010-12-17 19:40
Sender
:
Campbell Barton
wow. this should have been found earlier, was using degrees instead of radians for rotation matrix, everything was rotated wrong.
fixed r33752.
Also fixed camera viewport rotation.
Attached Files:
No Files Currently Attached
Changes:
Field
Old Value
Date
By
status_id
Open
2010-12-17 19:40
campbellbarton
close_date
None
2010-12-17 19:40
campbellbarton
assigned_to
none
2010-12-17 19:40
campbellbarton
Status
New
2010-12-17 19:40
campbellbarton