cgerikj / binary-greedy-meshing Goto Github PK
View Code? Open in Web Editor NEWDemo: https://www.youtube.com/watch?v=LxfDmF0HxSg
License: MIT License
Demo: https://www.youtube.com/watch?v=LxfDmF0HxSg
License: MIT License
Hi, amazing algorithm! Truly lightspeed-fast.
Do you have any tips on how to refactor the CS_P/CS_P2/CS_P3 variables to allow for chunks of mismatched width/height?
I'm familiar with other greedy meshing systems that allow for dynamic chunk sizes, by switching to the axis' dimension being worked on in such a way:
for (int Axis = 0; Axis < 3; ++Axis) {
int Axis1 = (Axis + 1) % 3;
int Axis2 = (Axis + 2) % 3;
int Size0 = Size[Axis];
int Size1 = Size[Axis1];
int Size2 = Size[Axis2];
for (int j = 0; j < Size2; ++j) { ... }
And to get the block values as a linear array:
int GetID() { return Z * Size.X * Size.Y + Y * Size.X + X; }
However your code is especially abstract, so I have difficulties seeing where to properly reformat without breaking everything.
In file included from /home/mgerhardy/dev/binary-greedy-meshing/libraries/FastNoiseSIMD/FastNoiseSIMD/FastNoiseSIMD_sse41.cpp:40:
/home/mgerhardy/dev/binary-greedy-meshing/libraries/FastNoiseSIMD/FastNoiseSIMD/FastNoiseSIMD_internal.cpp:1507:13: error: always_inline function '_mm_mullo_epi32' requires target feature 'sse4.1', but would be inlined into function 'FillWhiteNoiseSet' that is compiled without support for 'sse4.1'
SIMDi x = SIMDi_MUL(SIMDi_SET(xStart), SIMDi_NUM(xPrime));
^
Thanks for this!
Your README.md
needs updating though to use the https URL when cloning and not ssh:
git clone https://github.com/cgerikj/binary-greedy-meshing --recursive
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.