Hello!
I need some help!
So basically, having an integer array of cube ids with the size of 16^3 and static method, which returns triangle vertices based on location given by array iterator. Feeding vbo with that data I get this mess:
http://img339.imageshack.us/img339/107/20130106211807.png
Nothing fancy but hereās a problem Iām struggling withā¦
That chunk of cubes could also be rendered like this, providing that ids are the same:
http://img844.imageshack.us/img844/3886/20130106212005.png
Getting rid of cubes that are completely surrounded would be easy, but I still have a lot of verticies left that donāt have to be stored in memory. I need someoneās help on algorithm that would āmergeā verticies that share the same properties and kept triangle topology. (after trying it just got far too complex)