datatatatata

This commit is contained in:
CDaut 2024-08-15 23:11:26 +02:00
parent 351e90b541
commit 096679b347
Signed by: clara
GPG key ID: 223391B52FAD4463
1458 changed files with 1038826 additions and 77 deletions

View file

@ -344,17 +344,21 @@ void HelloVulkan::createTextureImages(const VkCommandBuffer& cmdBuf, tinygltf::M
void HelloVulkan::createPointsetImage(const VkCommandBuffer& cmdBuf)
{
//load pointset instead of generating it
std::vector<vec2> points(m_size.height * m_size.width, vec2(0.f));
//generate blue noise points
const int npoints = 262144;
/*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("pointset_262144.txt", pointset);
*/
//load huge pointset
auto pointset = utk::read_text_pointset<long double>("pointset_262144.txt")[0];
//iterate pointset and fill texture
for(int i = 0; i < pointset.Npts(); ++i)