[x3d-public] Should Material.diffuseColor be updated to 1.0 1.0 1.0? & Should normalTexture be removed from UnlitMaterial?
microaaron at pku.edu.cn
microaaron at pku.edu.cn
Mon Sep 22 14:27:48 PDT 2025
Thanks for your answer. I have two more issues.
1.The Unlit lighting model formula has changed in v4.0/4.1: fragmentColor = applyFog(mixTexture(applyColorPerVertex(emissiveParameter), emissiveTextureParameter)). This differs from the definition in v3.3. However, the default value of Material.diffuseColor remains 0.8 0.8 0.8, which may results in a darkened diffuseTexture.
2.normalTexture should be useless for UnlitMaterial. Should it be removed from UnlitMaterial?
-----Original Messages-----
From:"Holger Seelig" <holger.seelig at yahoo.de>
Send time:Wednesday, 10/09/2025 02:35:10
To: X3D <x3d-public at web3d.org>
Cc: microaaron at pku.edu.cn
Subject: Re: [x3d-public] Should the emissiveColor field be defined in X3DOneSidedMaterialNode?
In the latest version of the spec (4.1), the base class X3DOneSidedMaterialNode does not include the field emissiveColor in this class. It is first defined In derived classes of this base class with indeed different and deliberately other values.
X3DOneSidedMaterialNode (Draft):
https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/shape.html#X3DOneSidedMaterialNode
Best regards,
Holger
—
Holger Seelig
Leipzig, Germany
holger.seelig at yahoo.de
https://create3000.github.io/x_ite/
https://patreon.com/X_ITE
Am 09.09.2025 um 19:36 schrieb microaaron via x3d-public <x3d-public at web3d.org>:
There are contradictions in the V4.0 specification.
12.3.4 X3DOneSidedMaterialNode says "The emissiveColor field is defined in implementing nodes".
But 12.4.10 UnlitMaterial says "This node inherits the emissiveColor field from the X3DOneSidedMaterialNode ancestor, but the default value of this field changes: only for UnlitMaterial, the default emissiveColor is 1 1 1 (white), instead of 0 0 0 (black, default of X3DOneSidedMaterialNode.emissiveColor)".
Should the emissiveColor field be defined in X3DOneSidedMaterialNode and default to black?
_______________________________________________
x3d-public mailing list
x3d-public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250923/c23cb243/attachment.html>
More information about the x3d-public
mailing list