Coder Social home page Coder Social logo

lucasgiffuni / voxel-terrain-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paperprototype/voxel-terrain-system

0.0 0.0 0.0 1.82 MB

The source code for the "Minecraft Voxel Terrain (Unity)" course

Home Page: https://spark3d.herokuapp.com/view/4/section/77

License: MIT License

C# 100.00%

voxel-terrain-system's Introduction

VoxelSystem

Simpleified voxel engine in Unity with companion course! https://github.com/PaperPrototype/Intro-VoxelSystems-in-Unity

Getting started

To get started clone this repo into your machine or download it. In the assets folder you will find some folders each of those are a project / sample. Those include:

  • JobWorld, endless terrain with super fast loading using Jobs.
  • JobChunk, a single chunk that uses Jobs.
  • JobCube, a single Cube made with Jobs.
  • MeshCube, a single Cube not with Jobs.
  • RecycleChunksFollow
    • 1D, a 1D cube based proof of concept chunk recycling system
    • 2D, a 2D (x, z) cube based proof of concept chunk recycling system
  • SmallPlanet, a small planet generator with a planet gravity script and player orientation (only 4 lines of code)

EDIT: A lot has moved around and changed so the above descriptions may not be correct.

You can upen up the scenes in each sample and hit play. Some of them have a gameObject called center, if you move the center's position around the chunks will recycle and redraw to preserve haveing the center gameobject in the center.

These samples are all really straight forward and I've made them as simple as possible. So don't be afraid to just jump right in and open them up in Unity.

EDIT: Small Planet Generation! voxel planet

Remeshing 256 chunks, each frame, using Jobs.

A stress test video. You can copy what I in this video by simply changing the code to redraw the chunks each frame and not checking if the chunk needs redrawn in the chunks draw/complete functions.

https://youtu.be/HvpDE3eM6v4

Watch the video

voxel-terrain-system's People

Contributors

paperprototype 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.