generate some pointsets
This commit is contained in:
parent
2852bf13d6
commit
30e44742bd
4 changed files with 81923 additions and 3 deletions
|
|
@ -348,13 +348,13 @@ void HelloVulkan::createPointsetImage(const VkCommandBuffer& cmdBuf)
|
||||||
|
|
||||||
|
|
||||||
//generate blue noise points
|
//generate blue noise points
|
||||||
const int npoints = 16384; //points.size() / NCHANNELS;
|
const int npoints = 262144;
|
||||||
utk::CustomHeckSampler sampler(0.606f, 8.f, 0.5);
|
utk::CustomHeckSampler sampler(0.606f, 8.f, 0.5);
|
||||||
auto pointset = utk::Pointset<float>{};
|
auto pointset = utk::Pointset<float>{};
|
||||||
std::cout << std::endl << "generating " << npoints << " blue noise points…" << std::endl;
|
std::cout << std::endl << "generating " << npoints << " blue noise points…" << std::endl;
|
||||||
sampler.generateSamples(pointset, npoints);
|
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
|
//iterate pointset and fill texture
|
||||||
for(int i = 0; i < pointset.Npts(); ++i)
|
for(int i = 0; i < pointset.Npts(); ++i)
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,6 @@ struct GltfShadeMaterial
|
||||||
int pbrBaseColorTexture;
|
int pbrBaseColorTexture;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define WINDOWSIZE 600
|
#define WINDOWSIZE 256
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
65536
utk_experiments/result_data/biig_pointset_65536.txt
Normal file
65536
utk_experiments/result_data/biig_pointset_65536.txt
Normal file
File diff suppressed because it is too large
Load diff
16384
utk_experiments/result_data/pointset_16384.txt
Normal file
16384
utk_experiments/result_data/pointset_16384.txt
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue