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
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -111,6 +111,6 @@ struct GltfShadeMaterial
|
|||
int pbrBaseColorTexture;
|
||||
};
|
||||
|
||||
#define WINDOWSIZE 600
|
||||
#define WINDOWSIZE 256
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue