Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#32843] AFTER 2.65 - Collada Spotlight angle animation is in radians not degrees

Date:
2012-10-11 01:28
Priority:
3
State:
Closed
Submitted by:
Clinton Reese (clintonman)
Assigned to:
Gaia Clary (gaiaclary)
Category:
Import/Export
Status:
Todo / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
AFTER 2.65 - Collada Spotlight angle animation is in radians not degrees
Detailed description
Windows 7 64bit
Blender 2.64.0 release 64bit version
GeForce GT 230M

Blender is exporting and importing spot light angle as radians, but it should be in degrees.

default scene
open light properties
convert to spot light
right click Size: under spot shape set 75 degrees and insert a keyframe
move time to 60
set Size 30 degrees
right click insert keyframe
file - export - collada
selection only

dae file light set to 30 degrees in the scene section = the value with the blender scene at frame 60
animation values show as 1.308997 0.523599
1.308997 rad -> 75 degrees
0.523599 rad -> 30 degrees

when the dae file is read back into blender the radians are converted back to degrees

Followup

Message
  • Date: 2012-12-04 00:28
  • Sender: Bastien Montagne
  • Pff… Another stupid one…
    For some reason, spotsize angle is still stored as degrees in blender's internal data (whereas it should be as radians, as any other angle now). So basically, as COLLADA seems to expect degrees, the exporter should do RAD2DEG conversion systematically.
    The funny stuff is that animation is handled through “pure” RNA, hence in radians!

    Anyway, it’s not trivial change (would need a version bump & loader adapting func), so guess it’s post-2.65 now.
  • Date: 2012-12-05 20:39
  • Sender: Gaia Clary
  • Is this something that changed from 2.64 to 2.65 ? We fixed a similar issue for the Camera fov for 2.64. The whole topic of materials and lighting is yet to be reviewed and hopefully completed. That is also on my investigation list :)
  • Date: 2013-02-19 01:31
  • Sender: Thomas Dinges
  • What is the status of this?
  • Date: 2013-02-19 10:12
  • Sender: Gaia Clary
  • I guess it could be quickly fixed (hacked) but since at the moment the collada exports for material&light only work reasonably in conjunction with the blender collada importer, i do not see where such a "fix" would help anything in that case.

    What i mean is: When i use Maya for testing, i see serious compatibility issues with the material&light related exports from Blender. I would prefer to rewrite the export&import of materials&light. But that can not be done in one afternoon...

    So IMHO this report should be moved to TODO ( as part of a rewrite of the light/material transfer )
 

Attached Files:

Name Date Download
spotColladaTest.blend 2012-10-11 01:28 Download
spotColladaTest.dae 2012-10-11 01:28 Download

Changes:

Field Old Value Date By
status_idOpen2013-02-19 12:08gaiaclary
close_dateNone2013-02-19 12:08gaiaclary
StatusInvestigate2013-02-19 12:08gaiaclary
summaryCollada Spotlight angle animation is in radians not degrees2012-12-04 00:28mont29
assigned_tonone2012-10-11 02:38campbellbarton
StatusNew2012-10-11 02:38campbellbarton
File Added22357: spotColladaTest.dae2012-10-11 01:28clintonman
File Added22358: spotColladaTest.blend2012-10-11 01:28clintonman