nbarkhina / N64Wasm

A web based N64 Emulator
https://www.neilb.net/n64wasm/
MIT License
606 stars 116 forks source link

Firefox issue #30

Open MarcTremblay1981 opened 1 year ago

MarcTremblay1981 commented 1 year ago

Hi, is this supposed to work on this page? https://www.neilb.net/n64wasm

I'm getting this when I browse and/or drag and drop "Super Mario 64 (U) [!].v64" onto that page?

asddas

nbarkhina commented 1 year ago

Interesting - what browser are you using? I've only tested in Chrome and Edge so those should work.

MarcTremblay1981 commented 1 year ago

Just regular Firefox, latest stable version... at the time of writing this: 114.0.2 (64-bit) (under Windows 7)

I've downloaded the GitHub ZIP and deployed it to my localhost WAMP and it works fine when run from localhost. Not sure why it doesn't work on your demo page, but at least it works elsewhere. Perhaps an issue with SSL? My localhost does not have SSL.

BTW, congratulations on making this. I'm quite impressed that it runs almost full framerate on a web page in WASM. That's quite amazing. :+1:

ONE REQUEST FOR YOU! Do you think you could get cheap USB controllers to work with your WASM app? They work directly with Project64.exe without installing any driver or anything, but they are not recognized at all on this WASM app.

nbarkhina commented 1 year ago

I was able to reproduce the issue you are referring to, it looks like on Firefox they block Webgl for some reason. You have to go to about:config and search for"webgl.force-enabled" and set it to true. Then it started working for me (See screenshot below). For your other question, it's basically whatever controller the browser is able to recognize. it uses standard web gamepad API's, so if the browser doesn't see it (cheap or not) it won't work.

image