Blender Git Commit Log

Git Commits -> Revision 6c60d98

Revision 6c60d98 by Sergey Sharybin (cycles_hair_bvh)
April 21, 2016, 16:28 (GMT)
Cycles: Initial implementation of unaligned BVH builder

The idea is to use unaligned boundbox nodes for hair BVH, which should
in theory improve performance of ray-to-hair intersection.

Only tree building is done currently, still needed to work on packing
and traversal code.

The idea oh builder is the following:

- We calculate SAH of regular split
- Then we calculate alignment orientation for the BVH range, using
first curve from the range to define orientation.
- Then we calculate SAH using alignment from the previous step.
- If SAH calculated for a found orientation is better than regular
orientation we create unaligned node.
- All leaf nodes are unaligned.

There is some code duplication which we can avoid, and some parts are
not really optimized yet.

Commit Details:

Full Hash: 6c60d9864fd76f022e3ed3b58b8f2844dbf76153
Parent Commit: 1ed18b9
Lines Changed: +596, -42

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021