Coder Social home page Coder Social logo

binary-greedy-meshing's People

Contributors

cgerikj avatar mgerhardy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

binary-greedy-meshing's Issues

Cloning instructions are wrong.

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

Help on implementing non-cubic chunk sizes

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.

Bunch of compile errors with Clang 10.0.0

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));
                          ^

Missing triangle in cube

Screenshot from 2023-09-08 19-54-34
With a full 62 x 62 cube, the upper right triangle appears to be missing. I have also observed this behavior in procedural mesh generation.

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.