Page MenuHome

.WRL imports without material fix
Needs RevisionPublic

Authored by Adam (adammak) on May 11 2020, 11:05 PM.

Details

Summary

Small changes fixing material import from .wrl files

Diff Detail

Event Timeline

Adam (adammak) requested review of this revision.May 11 2020, 11:05 PM
Adam (adammak) created this revision.
Philipp Oeser (lichtwerk) added inline comments.
io_scene_x3d/import_x3d.py
1296

why was this changed?

2705

codestyle: please add spaces

diff_color = diff_color + [1]
2715

looks like these properties are not supported anymore?
If this fixes an error (or just doesnt make sense anymore), really remove this [not just comment out] and explain this in the Diff summary

2720

same as above

Removing old, unsupported properties from material creation

Since before it was return # XXX For now... I see no problem with this change.
But for review it might be good to explain why 'emissiveColor' and 'shininess' cannot be implemented. And why 'transparency' was commented.

Bastien Montagne (mont29) requested changes to this revision.May 27 2020, 6:18 PM
Bastien Montagne (mont29) added inline comments.
io_scene_x3d/import_x3d.py
2705

This is useless, this property is totally unused by current renderers.

2707–2710

Those should be commented out, with comment that we do not support those for now.

2712–2713

This should be kept, we have specular_intensity

2714–2719

Commented out with comments about why, as above

This revision now requires changes to proceed.May 27 2020, 6:18 PM