norman784 / gaiku

3d agnostic framework (game engine) terrain engine
40 stars 1 forks source link

Chunkify and winter cleanup #11

Closed norman784 closed 3 years ago

norman784 commented 3 years ago

Notable changes:

norman784 commented 3 years ago

@QuantumEntangledAndy want you check this PR and see how it affects your project? Also comments are welcome.

QuantumEntangledAndy commented 3 years ago

This seems to have reverted my changes on the voxel baker, was this intentional? I believe that this will stop the shading and the texturing from working.

Not sure how the Chunkify trait will effect my project though, the interesting parts all happen in the baking.

norman784 commented 3 years ago

This seems to have reverted my changes on the voxel baker, was this intentional?

Was not, I will check it out what happened.

Not sure how the Chunkify trait will effect my project though, the interesting parts all happen in the baking.

Cool

QuantumEntangledAndy commented 3 years ago

So it occurs to me that with a traited chunk I can plug my noise function's get method straight into the output of the traits get method. Since this noise function is continuous and defined over all of space the neighbors part of your code elsewhere can be completely skipped if the baker just polls the value outside the size of the chunk.

Using a noise function also mostly makes set irrelevant since it cannot actually be changed like that. Perhaps set and get should be in different traits?

norman784 commented 3 years ago

Can you open a PR with your suggestion?

edit: this PR is closed, so you might check the #13, has the same changes but isn't messed up