Sparse-Voxel-Octree-Raycasting icon indicating copy to clipboard operation
Sparse-Voxel-Octree-Raycasting copied to clipboard

Render problem

Open yuchengzhong opened this issue 8 years ago • 5 comments

Hello I have read your source code and I think it's a very good job. but I found some problem during rendering. when I move my view port to some certain location,there will be some remnant traces on the screen. may i ask you how to to solve this problem●ˍ●? thxXD

yuchengzhong avatar Apr 24 '16 14:04 yuchengzhong

The reason is that the algorithm has a buffer to cache pixels (position/color) for exploiting frame-to-frame coherence. The size of the octree is 2048 or 4096. If you go outside, then the position will be set to pos % (2048,2048,248) which means that the position in the octree changes, but the cached positions are only modified a bit, so artifacts will remain

sp4cerat avatar Apr 24 '16 14:04 sp4cerat

●0●thanks for answering my question however,i just move my viewport close to one of the model,not ouside....

yuchengzhong avatar Apr 25 '16 14:04 yuchengzhong

ok, that can be either because of concurrent zbuffer writes (if its remaining pixels). The noise when getting close is due to the imperfect reprojection, there are always gaps between reprojected pixels

sp4cerat avatar Apr 25 '16 14:04 sp4cerat

ok.thanks for your patient answering agaInXD how can i improve this imperfect thing?

yuchengzhong avatar Apr 25 '16 15:04 yuchengzhong

for the permanent pixels you can use atomic operations. the other noise is hard to solve. alternatively you can disable re-projection, which solves both problems but is half the speed or less

sp4cerat avatar Apr 25 '16 15:04 sp4cerat