Skip to content

An example of Voxel chunk greedy meshing in multiple threads with an ECS. Uses LWJGL3, GLFW, OpenGL, SlickUtils3

License

Notifications You must be signed in to change notification settings

knaxel/Voxel-Engine-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voxel Chunk Greedy Meshing Example with ECS

example is 6x6x6 chunks that are 16x16x16 voxels (mesh is aware of other chunks):

test

Features :

Usage

Its an Eclipse project.

  • Download Eclipse if you dont have it (for Java developers)
  • Download the Dependencies below
  • Import the project folder into eclipse ( this repo folder)
  • Right Click Project > Properties > Java Build Path
    • Setup LWJGL3 paths in a library by replacing the LWJGL3 if its missing
    • drag n drop slick-utils3 and command-lang3 into "lib/" folder or adjust path urself.

Controls

  • w -> move fowards
  • s -> move backwards
  • left_shift -> speed up
  • e -> toggle wireframe mesh
  • escape -> close

Dependencies

Note

I am not working on this anymore, wont be. It's a garbage way of doing things IMO. Flaws :

  • "slow"
    • too many meshes
    • too many single blocks in memory, generalize the voxel data and not just the mesh, especially air....
    • greedy meshing.... slow. Sorry, I said it. Still might use it unless I get smarter.
    • OpenGL (depr. macOs)
  • ugly texture repeat because no softening on atlas mapping
  • Didn't follow ECS all the way through and made objects.

About

An example of Voxel chunk greedy meshing in multiple threads with an ECS. Uses LWJGL3, GLFW, OpenGL, SlickUtils3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published