Git Product home page Git Product logo

controllablelandscape's Introduction

Controllable Procedural Generation of Landscapes

This is the main repo for the ACM MM24 paper "Controllable Procedural Generation of Landscapes".

The Unity client repo: https://github.com/omegafantasy/ControllableLandscape_UnityClient

Environment

Python 3.8 (not tested with other Python versions, but it should be OK as long as the dependencies are alright)

Install the dependencies: pip install -r requirements.txt

An OpenAI API key is required to enable LLM queries. Put it in the .env file.

Structure

Codes are mainly in main.py and pcg.py.

sys_msg_en.py lists the prompts for LLM queries.

data/data.json stores some information about the used landscape models. (Please also refer to the Unity client repo)

The generation results will be stored in outputs/ .

Landscape Generation

Basic usage: python main.py

Possible arguments:

  • -q The generation will use LLM queries. When not adding this, the generation use the default parameters and does not need LLM.
  • -t [description text] The user input.
  • -n [number of scenes] The number of scenes to generate. By default, the program only generate one scene at a time.
  • -s [the random seed] Specify it if needed.
  • -c [checkpoint name] A checkpoint stores a part of the generation result. (You can actually ignore this)

The direct outputs will be stored in outputs/. Move them to the Unity client repo and you can finally see the landscape scenes in Unity. (Please refer to the Unity client repo)

Others

If you encounter some bugs, please create an issue.

controllablelandscape's People

Contributors

omegafantasy avatar

Stargazers

 avatar 小魁少爷 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.