7d064a8 feat: use world map generated from WFC
~luyu pushed to ~luyu/comp5411-rendering-project git
We generate a large-scale with wave function collapse and visualize the map with WebGL. The main challenge is how to generate efficiently and visualize large-scale scene without exhausting too many resources. We respond the challenge with two measures. First, we choose Rust as the programming language and compiled to WebAssembly, which executes faster than JavaScript. Second, we generate the scene on-the-fly, keep scenes with multiple-level of detail, and only render the necessary parts of the scene.
To debug the project, just reproduce following steps.
yarn
.yarn serve
.To build the project, run yarn build
. This will generate optimized WebAssembly binaries and assets. Thus, the application is more performant.
If you have trouble with steps above. The project is also accessible online at https://example.com.