Giter Site home page Giter Site logo

Comments (2)

Hertzole avatar Hertzole commented on August 22, 2024 1

Hi!
Yeah, the documentation is really lacking for this project. I'll do my best to help you get started, but please keep in mind that development on this project has ceased and I probably won't update it any further!

Here is the whole project with the example included. I'll be basing most of my help on this.

To generate a world, you'll need a game object with the VoxelWorld script attached. Then on the same object, you'll need a script that generates a world. There's a HertzVoxExampleWorld script in the example that generates a flat world.
To make your own world generator, you'll need a script that implements the IVoxGeneration interface. Then you'll need to implement the BuildChunk method that must return a Unity job.

Your player/camera should have the VoxelLoader script attached to make chunks load around the player. You can place other VoxelLoader scripts in your scene to keep chunks loaded around that object.

Then, lastly, to place down voxels, you first need to get your block with Block myBlock = BlockProvider.GetBlock("block_name"); and then you can use that block to set a voxel with Voxels.SetBlock(new int3(12, 12, 12), myBlock);.

I hope this helps you!

from hertzvox-2.

lucidium4 avatar lucidium4 commented on August 22, 2024

I'm look for a voxel engine to replace my gameobject-based block building system

from hertzvox-2.

Related Issues (4)

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.