You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears as though a 3D scene won't render in an HTML5 export, unless it has at least one DirectionLight3D, one OmniLight3D and one SpotLight3D.
This doesn't affect a 3D scene running with the 'opengl3' driver on the desktop (having only a DirectionalLight3D is enough) - the problem happens only when exported to HTML5.
I can't get 2D to render on HTML5 at all (even though, again, it renders fine with the 'opengl3' driver on my desktop).
Steps to reproduce
Create a new project
Go to "Project settings..." and turn on "Advanced Settings"
In "Rendering" -> "Driver" set the "Driver Name" to "opengl3"
Restart the editor
Create a new scene with a Node3D as the root
Add a MeshInstance3D with a Cube mesh
Add a DirectionalLight3D
Add a Camera3D that is pointing at the Cube
Save the scene, run the project, and use the current scene as the main scene when prompted
Verify that you can see the cube when running on the desktop!
Export the game to HTML5
Use the "Run exported HTML the system's default browser" button in the upper-right (the one that looks like the HTML5 logo, but the normal run button)
You'll only see the clear color in the web browser - no cube!
Go back to the Godot editor
Add an OmniLight3D
Add a SpotLight3D
Use the "Run exported HTML the system's default browser" button again
This project include all 3 lights, so it should actually work! However, if you delete any one of the lights, and export again, it won't render the cube.
The text was updated successfully, but these errors were encountered:
Godot version
v4.0.alpha.custom_build [ad24789]
System information
Chrome, GLES3
Issue description
It appears as though a 3D scene won't render in an HTML5 export, unless it has at least one DirectionLight3D, one OmniLight3D and one SpotLight3D.
This doesn't affect a 3D scene running with the 'opengl3' driver on the desktop (having only a DirectionalLight3D is enough) - the problem happens only when exported to HTML5.
I can't get 2D to render on HTML5 at all (even though, again, it renders fine with the 'opengl3' driver on my desktop).
Steps to reproduce
Minimal reproduction project
g4-html5-test.zip
This project include all 3 lights, so it should actually work! However, if you delete any one of the lights, and export again, it won't render the cube.
The text was updated successfully, but these errors were encountered: