facebookresearch / habitat-sim

A flexible, high-performance 3D simulator for Embodied AI research.
https://aihabitat.org/
MIT License
2.45k stars 404 forks source link

WebGL demo not working #2387

Open srama2512 opened 2 months ago

srama2512 commented 2 months ago

Habitat-Sim version

v0.3.1 (latest main branch)

❓ Questions and Help

I'm trying to use the WebGL support for habitat-sim. The WebGL demo is not working though. Here are screenshots of the webpage and the console log.

image image

Logs from the terminal:

Serving HTTP on 127.0.0.1 port 8001 (http://127.0.0.1:8001/) ...
127.0.0.1 - - [07/May/2024 19:03:20] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:03:29] code 404, message File not found
127.0.0.1 - - [07/May/2024 19:03:29] "GET /bundle.js?e067fe9835855dd36181 HTTP/1.1" 404 -
127.0.0.1 - - [07/May/2024 19:03:29] code 404, message File not found
127.0.0.1 - - [07/May/2024 19:03:29] "GET /hsim_bindings.js HTTP/1.1" 404 -
127.0.0.1 - - [07/May/2024 19:03:56] "GET /build_js/ HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:03:58] "GET /build_js/esp/ HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:03:59] "GET /build_js/esp/bindings_js/ HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:01] "GET /build_js/esp/bindings_js/bindings.html HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:01] "GET /build_js/esp/bindings_js/WebApplication.css HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:01] "GET /build_js/esp/bindings_js/hsim_bindings.js HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:01] "GET /build_js/esp/bindings_js/WindowlessEmscriptenApplication.js HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:01] "GET /build_js/esp/bindings_js/bundle.js?e067fe9835855dd36181 HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:01] "GET /build_js/esp/bindings_js/hsim_bindings.wasm HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:03] "GET /build_js/esp/bindings_js/data/default.physics_config.json HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:03] "GET /build_js/esp/bindings_js/skokloster-castle.glb HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:03] "GET /build_js/esp/bindings_js/skokloster-castle.navmesh HTTP/1.1" 200 -
127.0.0.1 - - [07/May/2024 19:04:08] "GET /build_js/esp/bindings_js/bundle.js.map HTTP/1.1" 200 -

I followed instructions from DETAILS.md to compile habitat-sim with build_js.sh. Am I missing something else?

python setup.py install --headless
./build_js.sh