Code Monkey home page Code Monkey logo

godotmonovoxel's Introduction

GodotMonoVoxel

This is my attempt at making a voxel engine using C# and Godot game engine.

Libraries used:

Usage

VoxelVolume basicVoxel = new VoxelVolume(new NoisePopulator(),128,1024,1024,64,0.25f);

VoxelVolume takes in an implementation of IVoxelDataPopulate, volume height, volume length, volume width, chunk size, and voxel size.

  • The main voxel code can be found under src/goxlap
    • voxelworld.cs the entry point to the voxel engine, contains the VoxelVolume, IVoxelDataPopulate along with the implementations of the interface
    • chunkmanager.cs contains the ChunkManager class
      • ChunkManager basic loading of populated voxel chunks
      • ChunkStruct voxel chunk data structure that contains a volume offset, voxel data, compressed voxel data
    • blockMesher.cs contains the block meshing code
    • chunk.cs depricated
    • voxelUtils.cs contains the enum for the voxel types (I need to refactor to use this throughout the code)

Planned Features (updated as I go)

  • Threaded voxel chunk generation
  • Some way to batch the voxel chunks using MeshInstance
  • Camera location based chunk loading
  • Greedy meshing for block mesher
    • Preliminary implementation done, need to speed up mesh generation
  • Other voxel mesher algorithm (marching cubes, dual contouring)
  • Voxel chunk collision based on the type of mesher used
    • i.e. block mesher would use box colliders

godotmonovoxel's People

Contributors

the-brickster avatar

Stargazers

 avatar

Watchers

 avatar

godotmonovoxel's Issues

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.