3D models are not visible in web browser, but its visible in play editor viewer. Any one help me to resolve the issue.
Take a look in the console during web launch with right click → inspect → console as post the errors here. You may need to specify which files to export. . See Resource Options on this page.
I tried to export specify file, but its also look same. Also I checked the console, mesh is not loaded. I am missing any thing.
Console browser, I cant see anything related to model. did i miss anything? also I followed same procedure mentioned in the documentation
Are you on Windows or macOS?
Mac OS
I am running macOS as well
which macOS version, sequoia? then expect missing textures
are you turned on VRAM Compression for Desktop and Mobile?
Any specific setting you are using to Web export
No not really.
@hallucination suggested these settings on my Models not visible in web browser thread (screenshot below)
I have found a workaround which is to upload and publish the compressed game export to my itch.io account and use their Game Embed method to embed the published game on a page.
I found my games displayed after I turned on VRAM compression in the Project Settings / Rendering / Textures /
(Screenshot)
Hey friend, what do you mean by “compressed game export”? Would that be the .zip generated by the “Export PCK/ZIP…” button in the export dialog? Because that one generates a .zip file without an index.html inside of it, which makes it incompatible with itch.io.
I’m having the same issue, and have tried almost everything mentioned by you so far: uploaded it to Itch (didn’t embed it because I’m trying to publish it on Itch itself), changed the export settings (compress texture for both platforms on, PWA threads and cross origins off), and VRAM compression. It still shows a gray screen when the game loads, but all my 2D interfaces load on top of it, and the print()
does log as expected on console, when I cause keyboard input events.
Only, in my case, I have more than one thousand mesh instances in the project.
Hi @guiyudi,
The one problem I didn’t have was uploading the .ZIP ‘game export’ to itch.io
I can’t remember the steps I followed but this worked for me to publish a game on itch.
Thank you for the reply.
I’ll keep investigating.
Hi @guiyudi,
I went back to find the instructions and realised some of what I said might be misleading.
I exported my game to a folder from Godot using the HTML5 template, this generates an HTML file inside the folder, when this is complete you ZIP the whole folder and upload it to itch.io. It will contain an HTML file when unpacked on itch.
Getting Started page here - see the first two HTML and ZIP sections
Once your game is uploaded and you can see it on itch.io, go to your account dashboard, click on the game’s name, click on ‘Edit Project’ then ‘Distribute’ and in the left hand menu you should see ‘Embed’ (screenshot below) with instructions on how to link your game on itch to a page on your web site.