bezo97 / IFSRenderer

3D IFS fractal renderer and editor
https://ifsrenderer.z97.io/
GNU General Public License v3.0
51 stars 7 forks source link

Point cloud export (.ply) #40

Open sp1fos2 opened 2 weeks ago

sp1fos2 commented 2 weeks ago

I want to see an "Export as PLY (point cloud) feature in iFSRenderer

bezo97 commented 2 weeks ago

I wish this was feasible! Problem is that billions of points are generated each second, many are duplicates. We can't possibly fit that huge point cloud into memory and I'm not sure how it could be simplified. Also, currently we don't keep the points in memory, they're written to the histogram and then thrown away for the same reasons.
Sadly I don't see a straightforward way to implement this, but lets leave this issue open for discussion.

wrightwriter commented 2 weeks ago

I wish this was feasible! Problem is that billions of points are generated each second, many are duplicates. We can't possibly fit that huge point cloud into memory and I'm not sure how it could be simplified. Also, currently we don't keep the points in memory, they're written to the histogram and then thrown away for the same reasons. Sadly I don't see a straightforward way to implement this, but lets leave this issue open for discussion.

You could build a octree which detects if cell has too many particles. If the cell has too many particles - you increment brightness instead of adding more of them.