generate some pointsets

This commit is contained in:
CDaut 2024-07-13 03:06:09 +02:00
parent 2852bf13d6
commit 30e44742bd
Signed by: clara
GPG key ID: 223391B52FAD4463
4 changed files with 81923 additions and 3 deletions

View file

@ -348,13 +348,13 @@ void HelloVulkan::createPointsetImage(const VkCommandBuffer& cmdBuf)
//generate blue noise points
const int npoints = 16384; //points.size() / NCHANNELS;
const int npoints = 262144;
utk::CustomHeckSampler sampler(0.606f, 8.f, 0.5);
auto pointset = utk::Pointset<float>{};
std::cout << std::endl << "generating " << npoints << " blue noise points…" << std::endl;
sampler.generateSamples(pointset, npoints);
utk::write_text_pointset("biig_pointset.txt", pointset);
utk::write_text_pointset("pointset_262144.txt", pointset);
//iterate pointset and fill texture
for(int i = 0; i < pointset.Npts(); ++i)

View file

@ -111,6 +111,6 @@ struct GltfShadeMaterial
int pbrBaseColorTexture;
};
#define WINDOWSIZE 600
#define WINDOWSIZE 256
#endif