Blender Git Loki

Kaikki Blender Git kommitit.

Page: 4437 / 8462

April 22, 2016, 15:06 (GMT)
Cycles: Proof-of-concept unaligned BVH traversal code

This a commit which breaks regular non-development work broken,
this is due to accumulated TODOs in the code, solving which is
not fully trivial and trying to stub them will lead to some
nasty code. That being said, only final renders are working
stable, perhaps only for hair tho (mixed hair and triangles
could behave flackey).

In any way, the code is mainly here to see how much traversal
steps we can save using oriented bounding boxes in hair BVH,
it is not optimized or vectorized. In fact, it does evaluation
of particular things multiple times. This means only traversal
steps pass could be used to quantify possible improvements.

But that being said some quick tests seems promising. Here is
a camera rays traversal heatmap for suzanne with 8000 hair:

Master: http://www.pasteall.org/pic/show.php?id=102281
Branch: http://www.pasteall.org/pic/show.php?id=102282

Btw, only regular BVH was modified to support OBB.

Now we need to work on vectorization and QBVH support to see
if we can beat performance of AABB by a measurable matter.
April 22, 2016, 14:48 (GMT)
Fix T48223: 3D View not refresh after changing Blending mode in NLA.

This fixes a lot of things in NLA RNA update handling (which basically did not update anything previously).

There are more update issues with this editor though...
April 22, 2016, 13:23 (GMT)
Fix (unreported) crash when listing available fmodifier types.

Some types are defined but not yet implemented...
April 22, 2016, 12:39 (GMT)
Fix T48230: Home key when only one keyframe makes the DopeSheet acting weird.

Simply apply same minimal range as in graph editor when we get a zero one from keyframes.
April 22, 2016, 11:34 (GMT)
Fix curve snap to surface w/ offset & taper

Adjusting the pressure wasn't re-adjusting the offset.
April 22, 2016, 10:02 (GMT)
BLF: use float vector passing color args
April 22, 2016, 09:46 (GMT)
Fix T48236: OpenVDB smoke cache glitches out with smokeless flames.

Issue was that before writing to disk grids are clipped against the
density field's tree to optimize for memory/disk space, which in the
case of simulations with no density field results in all grids having
empty trees.

For now avoid clipping against empty grids, but perhaps in the future it
can be interresting to have some UI parameters to let the user choose
the grid used for clipping.
April 22, 2016, 09:34 (GMT)
Merge branch 'master' into cycles_hair_bvh
April 22, 2016, 08:59 (GMT)
Silence some annoying warnings when doing full build with strict flags

This mainly touches extern libraries and few debug-only places in intern.

Some summary:

- External libraries are not strict at all about missing declarations,
so we can rather safely remove such warning together with other strict
flags.

- Bullet has some static functions which are not used.
Those were commented out.

- Carve now has some unused debug-only functions commented out as well.
While we're on the way of getting rid of Carve, it makes sense to make
things a bit cleaner for the time being.

- In LZMA we have some parts disabled which gives some set but unused
variables which is rather correct.

- Elbeem had quite some variables set and never used because their usage
is inside of debug-only code which is commented out.

Note about patching upstream libraries: surely one might say that we
have to make local patchset against this, but own experience says it
only gives extra work trying to merge such tweaks to a new upstream
version and usually it's just faster to re-apply such fixes again after
bundling new upstream library.
April 22, 2016, 08:55 (GMT)
Cycles: Reduce verbosity of logging

Mainly makes logging less verbose when doing progressive sampling in viewport.

Such kind of verbosity is not really possible to be filtered out with `grep`
so let's reshuffle few lines of code.
April 22, 2016, 08:14 (GMT)
NDof device: Check for socket exists before connecting to spnavd

This allows us to get rid of annoying and misleading error printed to the console
about being unable to connect to something.
April 22, 2016, 06:38 (GMT)
Transform Snap: optionally cache the BVH tree

Use the SnapObjectContext to store the bvh tree for reuse.
April 22, 2016, 06:36 (GMT)
Transform Snap: initial snap context refactor

This introduces a snap-context that can be re-used for casting rays into the scene
(by operators such as walk-mode, ruler and transform code).

This can be used to cache data between calls too.
April 22, 2016, 02:22 (GMT)
Cleanup: warnings (double promote, string format)
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.
April 21, 2016, 13:41 (GMT)
Merge branch 'master' into cycles_hair_bvh
April 21, 2016, 10:16 (GMT)
Fix T48212: Typos in bpy enum props examples.
April 21, 2016, 09:24 (GMT)
Moved function declarations for modifier stack eval into BKE_modifier_calc.h.
April 21, 2016, 08:44 (GMT)
Update install_deps.sh for ArchLinux.

The script is updated for ArchLinux, since all dependencies are included in Arch's official repositories.

I've made a few changes, such as enabling OCIO and OSD without requiring locally installed lib-path, and a fix to ''get_package_version_ARCH()' so it ignores package epoch (as in the case of ffmpeg).

I intend to look at OpenVDB next.

Reviewers: mont29

Differential Revision: https://developer.blender.org/D1901
April 21, 2016, 08:06 (GMT)
Avoid shadowing 'mask' function parameter by a local variable.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021