create3000 / x_ite

X_ITE X3D Browser, view and manipulate X3D, VRML, glTF and other 3D sources in HTML.
https://create3000.github.io/x_ite/
Other
67 stars 15 forks source link

animated directional light off ? #178

Closed andreasplesch closed 3 months ago

andreasplesch commented 3 months ago

https://create3000.github.io/x_ite/playground/?url=https://gist.githubusercontent.com/andreasplesch/6776aad92cdc069138634985a8a8d00a/raw/11d687753f6134baba1dcca2f7abae7ef2a7b565/rotatingDirLight.x3d

should show a periodic change in lighting (simulating day/night cycles).

But only the headlight is used.

Perhaps I am overlooking something simple.

https://gist.github.com/andreasplesch/6776aad92cdc069138634985a8a8d00a has the commented x3d.

create3000 commented 3 months ago

The global field of a DirectionalLight node is default false since X3D version 3.2. Since no X3D version is specified in the file, the latest version is assumed. As the DirectionalLight nodes are in a Transform node, they only illuminate this content, i.e. nothing, as there is no content.

andreasplesch commented 3 months ago

Thanks ! I missed that. Let me close this.