Update importer
-
Scene & Global Transforms:
- Cleared all
nori_custom properties from the scene on import. - Parsed
<integrator>and<sampler>properties, storing them asnori_scene custom properties. - Improved scene orientation adjustment
- Cleared all
-
Camera & Clipping:
- Added warning for non-"area" emitter types.
- Prioritized XML-defined
nearClipandfarClipfor camera clipping over automatic calculation. - Ensured the imported camera is set as the active scene camera.
-
Materials & BSDFs:
- Refactored
_create_blender_materialfor a streamlined node setup. -
Emitters: Integrated
radianceinto thePrincipled BSDF(if applicable) or combined with anEmissionshader viaAdd Shaderfor other BSDF types. -
Properties: Enhanced parsing to distinguish between known BSDF properties (
albedo,kd,intIOR,extIOR,alpha,diffuseStrength,specularStrength,exponent) and unknown ones (stored asnori_material custom properties). - Added
nori_typecustom property to materials to reflect the BSDF type. -
Microfacet: Used
alpha_to_roughnessconversion forRoughnessinput. -
Diffuse: Explicitly set up as
Principled BSDFwith IOR 1.0. -
Phong: Added support for
<bsdf type="phong">by instantiating thephongnode group and mapping XML properties (albedotokd,diffuseStrengthtopd,specularStrengthtops,exponentton).
- Refactored
Ich weiß nicht genau wie die Phong parameter zu verstehen sind :/