[X3D-Ecosystem] [x3d-public] claude code example: producing a simple X3D scene
Michalis Kamburelis
michalis at castle-engine.io
Sat Feb 28 08:22:47 PST 2026
> given X3D4 close support for glTF physically based rendering (PBR), are upper limits of 1.0 for some rendering fields overly strict, e.g. PointLight intensity?
We had this talk already around X3D 4.0 :)
There are no limits on intensity values in X3D >= 4.0. "PointLight.intensity" is unbounded. It is "SFFloat [in,out] intensity 1 [0,∞)" (in https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/lighting.html#PointLight ) . Same goes for other light sources.
Reasons:
- ( The change is not really strictly related to glTF (though aligning with glTF and looking at their "punctual lights" extension prose helped us uncover this issue). )
- In reality, physical brightness of light is unbounded. This is a "theoretical argument", i.e. "if our stuff approximates reality, then it should be unbounded just like in reality".
- One practical argument is that the limit of intensity to [0,1] in X3D 3.x and VRML never achieved any practical gain. E.g. it _did not_ force the resulting lighting calculation to fit in [0,1] anyway, browsers had to cut the resulting colors anyway if things are too bright (e.g. lit by multiple lights), even when intensity of a single light was guaranteed <= 1.
- And having "intensity" unlimited opens the door for things like HDR. Basically, let renderers decide for themselves how to handle very bright scenes. Maybe one renderer wants to "cut off" colors above (1,1,1), but maybe another renderer calculates them to floating-point buffer and does post-processing tricks to display bright colors (just like human eye does adaptation).
If we have a tool, xsd still claiming there's a limit -- then it was not updated for X3D 4.0 :)
P.S. As for AI usage, I recommend also my docs at https://castle-engine.io/ai and recent thoughts on https://castle-engine.io/wp/2026/02/23/ai-usage-guidelines-and-thoughts-updated-and-test-of-vibe-coding-with-castle-game-engine/ . Basically, as you say: use but be careful.
Regards,
Michalis
More information about the X3D-Ecosystem
mailing list