Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-12Merge branch 'master' into depsgraph_refactordepsgraph_refactorSergey Sharybin
2015-05-11Freestyle: Fix for assertion failure in viewport preview.Tamito Kajiyama
An assertion to check if `re->clipsta` < 0 (added as part of addressing T36009 in rBrB795034c17d76bef2a15e576ac9c70ae2268a823b) was failing when Freestyle viewport preview rendering takes place in the camera view with an orthographic camera (in this case, the user-defined clipping range is used without changes, so that `re->clipsta` is positive). The `re->clipsta` property has a negative value only when the 3D viewport is in an orthographic view but not in the camera view. It seems that this viewport setting cannot be identified from rendering settings accessible from Freestyle. Now a negative `re->clipsta` value is directly checked instead, without relying on other render flags.
2015-05-11Cycles: check for F16C support with __cpuid, as we do for BMI and BMI2Sv. Lockal
2015-05-11Depsgraph: Make source closer to masterSergey Sharybin
There were some unwanted changes, probably caused by not really correct merge conflict resolving. And also reverted whole bunch of changes related on global enabling of C++11 with MINGW. We don't use C++11 by default now, so Blender should still be compilable.
2015-05-11Collada Exporter: sanitize a bit lnor export.Bastien Montagne
In case `BKE_mesh_calc_normals_split()` would fail, exporter would read uninitialized random mem... Should not happen, but better be safe than sorry.
2015-05-11Clearing preview image shall also unset 'user edited' flag!Bastien Montagne
2015-05-11Merge branch 'master' into depsgraph_refactorSergey Sharybin
2015-05-11Revert "Depsgraph: Rename SPaceType->new to SpaceType->alloc"Sergey Sharybin
Use alternative and less intrusive approach for dealing with "new" keyword. This reverts commit c13455e3328c60fae2deecd7a9d8f0d827715f32.
2015-05-11Cycles: Get rid of one more OpenGL matrix manipulation/push/pop.Antony Riakiotakis
2015-05-11Expose PreviewImage & custom icons to py API.Bastien Montagne
This commit mainly: * Exposes PreviewImage struct in RNA, including ways for user to set images data. * Adds a new kind of PreviewImage, using a file path and IMB_thumb to get image. * Adds a new kind of custom icon using PreviewImage, unrelated to ID previews system. * Adds a python API (utils.previews) to allow python scripts to access those custom previews/icons. Note that loading image from files' thumbnails is done when needed (deferred loading), not when defining the custom preview/icon. WARNING: for release addons who would want to use this, please keep it to a strict minimum, really needed level. We do not want our UI to explode under hundreds of different flashy icons! For more info, see also the release notes of Blender 2.75 (http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/Addons) and the example/templates featured with Blender. Patch by Campbell (ideasman42), Inês (brita) and Bastien (mont29). Differential Revision: https://developer.blender.org/D1255
2015-05-11Cycles: use vertex buffers when possible to draw tiles on the screen.Antony Riakiotakis
Not terribly necessary in this case, since we are just drawing a quad, but makes blender overall more GL 3.x core ready.
2015-05-11Merge branch 'master' into depsgraph_refactorSergey Sharybin
Conflicts: source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp
2015-05-11Keep valgrind happy by using tight vec3 packing instead of lax vec4 withAntony Riakiotakis
an unused coordinate missing.
2015-05-11Cycles OpenGL: Don't use full matrix transform when we can just useAntony Riakiotakis
simple addition.
2015-05-11UI: initial support for UI editing selected itemsCampbell Barton
Add basic support (holding Alt) to edit all selected objects/bones/sequences.
2015-05-11GHash: avoid redundant castsCampbell Barton
2015-05-11GHash: use const keys when only used for lookupsCampbell Barton
2015-05-11Outliner: postpone rebuilding the treeCampbell Barton
On existing Blender could rebuild tree many times (on freeing each ID). Use a flag instead of immediately rebuilding.
2015-05-11Outliner: cleanup flag was never clearedCampbell Barton
Was running cleanup on every draw.
2015-05-11GHash: Add BLI_ghash_ensure_p_ex to copy the keyCampbell Barton
Needed in cases where the memory from each key is owned by the GHash.
2015-05-10Cycles: And yet another compilation fix after half-float commit for clang.Sv. Lockal
Suggested by Brecht, tested with gcc > 4.4 and Clang
2015-05-10Cycles: fix compilation on 32-bit Windows for half-floatsSv. Lockal
Reported by IRC user HG1.
2015-05-10Fix T44633: image cache broken for movies and sequences.Brecht Van Lommel
After multiview, it was continuously unloading/loading image buffers from the cache due to mismatch in cache insert and lookup keys.
2015-05-10Cycles: Add -mf16c for previous commit for SconsSv. Lockal
Thanks to Dingto for noticing!
2015-05-10BGE : Fix crash during physics mesh update.Porteries Tristan
Currently we can't update the physics mesh of an added rigid body. The cause is that that we need to update all shapes to say that the mesh was changed, for static object we don't do that previously because we use a odd way to reallocate memory at the same place. So now when a mesh is changed we iterate all physics controllers which use the same shape info and recreate its shape with the correct mesh. example file : {F168100} Reviewers: scorpion81, sergof, hg1, sybren, moguri, agoose77 Reviewed By: moguri, agoose77 Subscribers: sybren Differential Revision: https://developer.blender.org/D1269
2015-05-10Cycles: Use native float->half conversion instructions for Haswell CPUs.Sv. Lockal
This makes OCIO viewport color correction a little bit faster (about -0.5s for 100 samples) Also set max half float value to 65504.0 to conform with IEEE 754.
2015-05-10Cycles: Correction to opencl whitelist checkSergey Sharybin
Was using platform as a device id accidentally.
2015-05-10BGE: Cleanup constraints documentationThomas Szepe
* Fixing Python example. Behavior has changed with Blender 2.74 * Adding missing return type * Fixing typo simbolic * Fixing note for upper/lower limit * Adding link to constraints constants
2015-05-10Cycles: Fix tiny greying out inconsistency for Volume settings.Thomas Dinges
2015-05-10Cycles: Do not show Branched Path integrator for OpenCL.Thomas Dinges
Branched Path is not supported, neither in the Split nor Megakernel.
2015-05-10fix T44648: Collada finding bone chains during import crashes when no bones ↵Gaia Clary
are there
2015-05-10Fix T44644 Missing thread-protection (spinlock) of image in new multiview code.Bastien Montagne
Many thanks to Sergey, for practically giving the solution! Note that it may also fix T44345, depends whether there are other missing protections/locks or not...
2015-05-10UI: consistent naming for operator propsCampbell Barton
2015-05-10UI: move sharp/smooth out of vertex menuCampbell Barton
Was confusing to have shade smooth/soft in both edge & vertex menu named differently. This is an edge-flag, so keep in the edge-menu, use vertex option when in vertex mode.
2015-05-10BGE: Fix T43822 Videotexture does not use sky color for off-screenJorge Bernal
rendering Make scene background color as default for render-to-texture instead of current blue color (0, 0, 255). It is very useful for mirrors setups. Reviewers: moguri, ben2610, sybren, panzergame, hg1 Reviewed By: panzergame, hg1, moguri Subscribers: mpan3 Differential Revision: https://developer.blender.org/D1287
2015-05-09Cycles: Fix typo in global space version of normal transformSergey Sharybin
It was using direction transform, which is obviously wrong.
2015-05-09Cycles: Only whitelist AMD GPU devices in the OpenCL sectionSergey Sharybin
Only those ones are priority for now, all the rest are still testable if CYCLES_OPENCL_TEST or CYCLES_OPENCL_SPLIT_KERNEL_TEST environment variables are set.
2015-05-09Fix T38335: incorrect triangle index in raycast with more than 2 quadsPorteries Tristan
eb81153896 broke the fix for T38335, and this fix was incomplete, now we iterate by triangles and polys in the same while block.
2015-05-09Cycles: Workaround for AMD compiler crashing building the split kernelSergey Sharybin
It's a but in compiler but it's nice to have working kernel for until that bug is fixed.
2015-05-09Cycles: OpenCL kernel splitGeorge Kyriazis
This commit contains all the work related on the AMD megakernel split work which was mainly done by Varun Sundar, George Kyriazis and Lenny Wang, plus some help from Sergey Sharybin, Martijn Berger, Thomas Dinges and likely someone else which we're forgetting to mention. Currently only AMD cards are enabled for the new split kernel, but it is possible to force split opencl kernel to be used by setting the following environment variable: CYCLES_OPENCL_SPLIT_KERNEL_TEST=1. Not all the features are supported yet, and that being said no motion blur, camera blur, SSS and volumetrics for now. Also transparent shadows are disabled on AMD device because of some compiler bug. This kernel is also only implements regular path tracing and supporting branched one will take a bit. Branched path tracing is exposed to the interface still, which is a bit misleading and will be hidden there soon. More feature will be enabled once they're ported to the split kernel and tested. Neither regular CPU nor CUDA has any difference, they're generating the same exact code, which means no regressions/improvements there. Based on the research paper: https://research.nvidia.com/sites/default/files/publications/laine2013hpg_paper.pdf Here's the documentation: https://docs.google.com/document/d/1LuXW-CV-sVJkQaEGZlMJ86jZ8FmoPfecaMdR-oiWbUY/edit Design discussion of the patch: https://developer.blender.org/T44197 Differential Revision: https://developer.blender.org/D1200
2015-05-09Cycles: Communicate number of closures and nodes feature set to the deviceSergey Sharybin
This way device can actually make a decision of how it can optimize the kernel in order to make it most efficient.
2015-05-09Cycles: Initial work towards selective nodes support compilationSergey Sharybin
The goal is to be able to compile kernel with nodes which are actually needed to render current scene, hence improving performance of the kernel, The idea is: - Have few node groups, starting with a group which contains nodes are used really often, and then couple of groups which will be extension of this one. - Have feature-based nodes disabling, so it's possible to disable nodes related to features which are not used with the currently used nodes group. This commit only lays down needed routines for this approach, actual split will happen later after gathering statistics from bunch of production scenes.
2015-05-09Cycles: Add utility function to count maximum number of closures used by sessionSergey Sharybin
This will be used by split kernel in order to compile most optimal kernel. Maximum number of closures is actually being cached in the session, so viewport rendering will not trigger kernel re-loading when number of closures goes down.
2015-05-09Cycles: Add utility function to graph to query number of closures used in itSergey Sharybin
Currently unused but will be needed soon for the split kernel work.
2015-05-09Cycles: Pass requested tile size to the device via device taskSergey Sharybin
This is currently unused but crucial for things like calculating amount of device memory required to deal with the tasks. Maybe not really best place to store it, but consider it good enough for now.
2015-05-09Cycles: Change the way how we pass requested capabilities to the deviceSergey Sharybin
Previously we only had experimental flag passed to device's load_kernel() which was all fine. But since we're gonna to have some extra parameters passed there it makes sense to wrap them into a single struct, which will make it easier to pass stuff around.
2015-05-09Cycles: Presumably correct workaround for addrspace in camera motion blurSergey Sharybin
2015-05-09Cycles: Add CPU compat headers to some of the OSL implementation filesSergey Sharybin
This header was already included into some of the implementation files already, and this change is needed for some upcoming changes in the way how kernel_types.h works.
2015-05-09Cycles: Set default closure values to some of the nodesSergey Sharybin
Previously it was only set at compilation time which is all fine but does not let us to check which closure the node corresponds to prior to the compilation.
2015-05-09Freestyle: Partial fix for a crash with Save Buffers option enabled.Tamito Kajiyama
Prevents null pointer references in the case of the Save Buffers option enabled. This is a regression likely due to rBd5f1b9c22233.