close
Skip to content

Change BVH Creation algorithm #1007

@trevordblack

Description

@trevordblack

At present, the text outlines the algorithm for creating a BVH structure:

1. randomly choose an axis
2. sort the primitives (using std::sort)
3. put half in each subtree

We should consider replacing--either outright, or in a revision chapter--random axis choice with using the axis with the longest extent.

This appears to be the first "good-enough" solution that you find in the literature, once you go beyond random axis.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions