Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Volume Raycasting #41

Open
3 tasks
CaffeineViking opened this issue Jan 25, 2019 · 0 comments
Open
3 tasks

Optimize Volume Raycasting #41

CaffeineViking opened this issue Jan 25, 2019 · 0 comments
Assignees
Labels
Priority: Future Work Project: Renderer Issues relating to the core hair renderer itself. Type: Feature Something new and shiny is being requested. Type: Optimize Suggestion to optimize an specific algorithm.

Comments

@CaffeineViking
Copy link
Owner

CaffeineViking commented Jan 25, 2019

Right now we have a constant step-size when raycasting (still somewhat reasonable since we jump one texel at a time), but a better solution would be to use the min-max volume (or something like that) to make "big strides" until something interesting happens (i.e. there is density there). This optimization is called Heirarchical Spatial Enumeration and can be seen over here. We already make use of Adaptive Termination but not to the same extent as they do. So yeah, right now we are constant-size-stepping through the volume at max resolution independent of the LoD. Also, doing so leads to noisy results at large distances, so we should be using a low resolution volume anyway (which means we need to modify the voxelization resolution, maybe by finding the best inverse projected size of a pixel -> voxel, and finding the resolution from there somehow).

Here is the short list of optimizations:

  • Find the Voxelization Resolution
  • Heirarchical Spatial Enumeration
  • Expand on Adaptive Termination
@CaffeineViking CaffeineViking added Type: Feature Something new and shiny is being requested. Project: Renderer Issues relating to the core hair renderer itself. Priority: Medium Type: Optimize Suggestion to optimize an specific algorithm. labels Jan 25, 2019
@CaffeineViking CaffeineViking self-assigned this Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Future Work Project: Renderer Issues relating to the core hair renderer itself. Type: Feature Something new and shiny is being requested. Type: Optimize Suggestion to optimize an specific algorithm.
Projects
None yet
Development

No branches or pull requests

1 participant