Comments (2)
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.
I'm look for a voxel engine to replace my gameobject-based block building system
from hertzvox-2.
Related Issues (4)
- Memory issues HOT 1
- Block shapes HOT 6
- Collisions Bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hertzvox-2.