Skip to content
@fantasy-world-generator

Fantasy World Generator

The organization for a Team in the hackathon "Junction 2023"

Fantasy world generator is a proof of concept for the WebGpu API introduced on some browsers, that will slowly replace the webgl one.

The context

The project was done for the challenge "veikkaus" of Junction2023

The purpose

Altough a relative new API, supported (as of now, 12/11/2023) only by some browsers, it will extensibly used in the future. It's a new API, that solves many problems that WebGL has and that has more functionalities and a much greater access to the GPU power.

The purpose was experimenting with it and being a team of three people that did not know anything about WebGL or these type of libraries, we are very satisfied with our result.

The project

Our proof of concept generates random worlds, composed of islands and the sea. It consists in only an html file, with all the JS and WSGL code included there. It is remarkable the usage of the Perlin algorithm directly in the WSGL code for performance reasons, by still keeping the result non-deterministic. A problem we faced was exatcly the difficulty in realizing random numbers (e.g. with a seed), that we solved by generating the number with Math.random() on JS and binding that var in the WSGL code.

The demo

Our demo is available at https://fantasy-world-generator.euber.dev

A video presentation is available at https://youtu.be/g6MUypJ0fCc

Popular repositories Loading

  1. fantasy-world-generator fantasy-world-generator Public

    A fantasy world generator with webgpu

    HTML 1

  2. .github .github Public

Repositories

Showing 2 of 2 repositories
  • .github Public
    fantasy-world-generator/.github’s past year of commit activity
    0 0 0 0 Updated Dec 18, 2023
  • fantasy-world-generator Public

    A fantasy world generator with webgpu

    fantasy-world-generator/fantasy-world-generator’s past year of commit activity
    HTML 1 0 0 0 Updated Nov 12, 2023

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…