GithubHelp home page GithubHelp logo

aljullu / threejs-procedural-building-generator Goto Github PK

View Code? Open in Web Editor NEW
37.0 4.0 13.0 8.12 MB

Procedural Building Generator using three.js

License: MIT License

JavaScript 98.95% CSS 0.49% HTML 0.56%
threejs building-generator procedural-generation

threejs-procedural-building-generator's People

Contributors

aljullu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

threejs-procedural-building-generator's Issues

License ?

Hello, under what license is this project released under ? Thank-you.

Roadmap

Big features

  • Make Nordic-style roofs.
  • Gardens.
  • Procedural decorative elements.
  • Procedural textures.
  • Generate a polygon tree from a random shape. That would allow taking a map and generating a building for each plant.

Current features improvements

  • Roof textures rotation.
  • Improve camera
  • FloorGeometry's insertRoofElements should be more intelligent and generate random positions based on the bounding box, so collisions against the border are less usual.
  • Load meshes in parallel.
  • Unnecessary polygons rendered when floors are smaller than the previous one, since all roof is rendered but only a small part is visible.
  • FloorGeometrys should have strict rotations (0, 45, 90 degrees...) instead of any value.
  • Make demo work in all modern browsers.

Code style

  • Add tests.
  • functions.js should be merged into BuildingUtils.js.
  • createBuildingGeometry function in Building.js is huge. Split it in smaller functions.
  • Replace id selectors with class selectors in style.css.
  • texturePath -> atlasIndex relation should be saved in Atlas instead of Building.
  • Investigate why all meshes must be rotated.

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.