english Sivu saatavilla vain englanninkielisenä.

Blender Git Statistics -> Branches -> viewport_bvh_select

"Viewport_bvh_select" branch

Total commits : 11
Total committers : 1
First Commit : August 25, 2016
Latest Commit : September 8, 2016


Commits by Date

DateNumber of Commits
September 8, 20161
September 7, 20160
September 6, 20160
September 5, 20160
September 4, 20160
September 3, 20160
September 2, 20160
September 1, 20160
August 31, 20160
August 30, 20160
August 29, 20160
August 28, 20164
August 27, 20162
August 26, 20160
August 25, 20164

Committers

AuthorNumber of Commits
Julian Eisel11

Popular Files

FilenameTotal Edits
object.c6
view3d_bvh.c5
BKE_object.h4
BKE_lamp.h2
drawobject.c2
camera.c2
BKE_speaker.h2
speaker.c2
lamp.c2
BKE_camera.h2

Latest commits Feed

September 8, 2016, 10:16 (GMT)
Merge branch 'master' into viewport_bvh_select
August 28, 2016, 13:59 (GMT)
Add/use BKE_object_boundbox_to_worldspace
August 28, 2016, 13:27 (GMT)
Merge branch 'master' into viewport_bvh_select
August 28, 2016, 02:21 (GMT)
Avoid allocating bounding boxes
August 28, 2016, 01:40 (GMT)
Support selecting empties using new BVH selection

Adding support for all empty draw types was a bit more involved, but things work now ;)
August 27, 2016, 21:59 (GMT)
Support selecting speakers using new BVH selection
August 27, 2016, 21:34 (GMT)
Support selecting lamps using new BVH selection
August 25, 2016, 22:24 (GMT)
Correct license header
August 25, 2016, 15:46 (GMT)
Merge branch 'master' into viewport_bvh_select
August 25, 2016, 15:45 (GMT)
Fix crash on undo and file read
August 25, 2016, 15:21 (GMT)
Initial BVH based object mode selection

As part of the viewport project, we wanted to switch from OpenGL based to BVH based selection (see https://wiki.blender.org/index.php/Dev:2.8/Viewport#Discussion_Items). This should increase performance and make selection drawing and hence driver independent. (OpenGL selection was always an issue with buggy drivers.)

This commit adds initial functions for building and visualizing an object BVH (AABB) using the multi-threaded BLI_bvhtree and uses it for object mode selecting. Only basic selection works now, not taking care for movie clip editor selection syncing or so. One idea was to keep the actual BVH part a bit separate from selection, so that it can be reused e.g. for culling out objects out of view frustum before drawing.
Quite some speedup is already visible, but it's not fair to compare to previous selection, since we're only doing bounding box intesection checks currently. Detailed geometry intersection checks are not done yet, neither are overlapping objects handled.

One issue I faced was that some object types (cameras, lamps, speakers) are basically infinite small points with no visible bounding box. I added some functions to get the visual bounding box for those, but only implemented it for cameras so far.

Main TODOs I can see (random order):
* Selection should behave just like current OpenGL based selection.
* Lasso, Circle & Box select.
* The BVH tree is currently recreated on every redraw, more reasonable updating needs to be checked on. It's unsure if it's better to commonly recreate the entire tree or if we can use some more advanced caching and updating. The BLI_bvhtree isn't really flexible when it comes to updating (e.g. you can't insert objects after initial creating), so maybe adding a different BVH type will be needed.
* Do more detailed geometry intersection checks. OpenSubdiv needs some special attention here, since its geometry only lives on the GPU (AFAIK). It should be possible to send geometry patches from GPU to CPU so we can create AABBs for BVH ray casting.
* Better handling for overlapping geometry.
* BVH based selection for other modes (edit mode, pose mode, etc). I'd like to make the edit mode BVH lookups efficient enough to allow performant pre-selection highlighting.
* Allow selecting lamps and speakers (not possible currently).

MiikaHweb - Blender Git Statistics v1.06
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021