Maniphest T25209

X3D export results in invalid value for specular color
Closed, Resolved

Assigned To
Campbell Barton (campbellbarton)
Authored By
John Coady (jdc)
Dec 13 2010, 10:59 PM
Tags
  • Import/Export
  • BF Blender
Subscribers
Campbell Barton (campbellbarton)
John Coady (jdc)

Description

I took the amyrose model from the Blender Model Repository and loaded it into Blender version 2.5.5 r32738. Then I performed Export to X3D to produce amyrose.x3d file. I loaded this file into an X3D Player and the X3D player complained that the specular color value was out of range. A valid value for specular color in X3D is between 0 and 1 . The Export to X3D from blender gave a value above 1.0 on line 65 in the amyrose.x3d file.

<Material DEF="MA_Zloto" diffuseColor="1.0 0.8 0.2" specularColor="1.602 1.442 0.002" emissiveColor="0.0 0.0 0.0"
ambientIntensity="0.333" shininess="0.527" transparency="0.0" />

I am running blender on a Windows XP machine.

Attached are the amyrose.blend file and the amyrose.x3d file produced by Export to X3D from blender.




Event Timeline

John Coady (jdc) edited a custom field.Dec 13 2010, 10:59 PM
John Coady (jdc) attached 1 file(s): F14428: amyrose.blend.
John Coady (jdc) attached 1 file(s): F14429: amyrose.x3d.
Campbell Barton (campbellbarton) added a comment.Dec 14 2010, 6:46 AM

fixed r33651

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Dec 14 2010, 6:46 AM