ENH: VRMLImporter/Exporter improper handling of ambient and specular
The exporter was doing several things incorrectly.
- Creating a directional light by default. This is removed.
- Only setting emissive color if there are no normals or no scalar colors or no polygons. This restriction is removed. All actor properties will define an emissive color.
The importer was doing several things incorrectly.
- The specular power needed a scale of 127 to convert shininess.
- The specular factor was not set.
Here is the bad export/import:
versus the fixed export/import:
Edited by Bill Lorensen