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
2014-12-25Cycles: Optimize vector math node without links to single values.Thomas Dinges
2014-12-16Fix T42888: Separate and Combine HSV distorts the hue valueSergey Sharybin
These nodes were assuming sRGB input/output which is for sure wrong for the shader pipeline which works in the linear space. So now conversion to/from linear space happens in these nodes which makes them making sence in the shader context but which might change look and feel of existing scenes.
2014-10-31Fix T42391: HSV correction shader node gives negative valuesSergey Sharybin
This mainly happens when over-saturating already saturated color. After some discussion with Campbell and loads of tests we decided to clamp the result RGB color. As an alternative we might want to clamp corrected HSV values instead, but that would lead to some larger changes in the render results. TODO: The same is to be done for compositor nodes.
2014-10-29Cycles: Optimize math node without links to a single value nodeSergey Sharybin
Pretty straightforward implementation. Just needed to move some functions around to make them available at shader compile time.
2014-10-12Cleanup: Typo fix for Blackbody variable, had different naming in the ↵Thomas Dinges
comments and also in OSL.
2014-10-07Fix T42106: Box image mapping shows black triangles if they point to a ↵Sergey Sharybin
corner and blend is 0 After discussion with cambo here we decided it's better to choose arbitrary side of the box (in this case it's X-axis) and use image from it. That's better than doing a blackness. P.S. This is literally a corner case anyway.
2014-10-03Cleanup: Remove some unused / unreferenced functions for perdiodic perlin noise.Thomas Dinges
2014-10-03Cycles: Remove Westin closure.Thomas Dinges
Was hooked up last year for testing purposes, as we already had some code for it, but the closure itself is not really good nor really useful, so let's remove it.
2014-09-05Cycles: Split caustics option, to allow separate control for Reflection and ↵Thomas Dinges
Refraction caustics. This way artists can only disable/enable refraction or reflection caustics. See Cycles logs for an example: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Cycles Differential revision: https://developer.blender.org/D766
2014-09-03Cleanup: Use function call and delete obsolete comment.Thomas Dinges
2014-08-21Further cleanup for defines:Thomas Dinges
* Merge Texture defines * Remove Normal Map define.
2014-08-21Cleanup: Remove __ANISOTROPIC__ define.Thomas Dinges
That was only needed in the beginning, when we did not had support for tangents. It's time to clean some of the defines up, it's getting a bit too much.
2014-08-02SpellingCampbell Barton
2014-06-22Cycles: improved Beckmann sampling using precomputed dataBrecht Van Lommel
It turns out that the new Beckmann sampling function doesn't work well with Quasi Monte Carlo sampling, mainly near normal incidence where it can be worse than the previous sampler. In the new sampler the random number pattern gets split in two, warped and overlapped, which hurts the stratification, see the visualization in the differential revision. Now we use a precomputed table, which is much better behaved. GGX does not seem to benefit from using a precomputed table. Disadvantage is that this table adds 1MB of memory usage and 0.03s startup time to every render (on my quad core CPU). Differential Revision: https://developer.blender.org/D614
2014-06-20Fix T40692, Checker Texture derivation on very large scales (1k).Thomas Dinges
It might still have a derivation on larger scales (10k or more), but we need some offset to avoid precision issues on unit coordinates.
2014-06-14Cycles: glossy and anisotropic BSDF changesBrecht Van Lommel
* Anisotropic BSDF now supports GGX and Beckmann distributions, Ward has been removed because other distributions are superior. * GGX is now the default distribution for all glossy and anisotropic nodes, since it looks good, has low noise and is fast to evaluate. * Ashikhmin-Shirley is now available in the Glossy BSDF.
2014-06-14Cycles: internal code support for anisotropic Beckmann and GGX reflectionBrecht Van Lommel
Based on: Understanding the Masking-Shadowing Function in Microfacet-Based BRDFs E. Heitz, Research Report 2014
2014-06-14Cycles: Ashikhmin-Shirley anisotropic BSDFKarsten Schwenk
* Ashikhmin-Shirley anisotropic BSDF was added as closure * Anisotropic BSDF node now has two distributions Reviewers: brecht, dingto Differential Revision: https://developer.blender.org/D549
2014-06-14Code cleanup: Avoid duplicate functions for vector combination/separation in ↵Thomas Dinges
SVM. Differential Revision: https://developer.blender.org/D597
2014-06-14Cycles: Add support for uchar4 attributes.Thomas Dinges
* Added support for uchar4 attributes to Cycles' attribute system. * This is used for Vertex Colors now, which saves some memory (4 unsigned characters, instead of 4 floats). * GPU Texture Limit on sm_20 and sm_21 decreased from 95 to 94, because we need a new texture for the uchar4 attributes. This is no problem for sm_30 or newer. Part of my GSoC 2014.
2014-06-13Cycles: Add dedicated nodes to split/combine vectors.Thomas Dinges
This was already possible via the RGB nodes, but that seems weird.
2014-06-13Cycles Refactor: Add SSE Utility code from Embree for cleaner SSE code.Thomas Dinges
This makes the code a bit easier to understand, and might come in handy if we want to reuse more Embree code. Differential Revision: https://developer.blender.org/D482 Code by Brecht, with fixes by Lockal, Sergey and myself.
2014-06-11Fix T40561: cycles refraction node with sharp distribution gives black.Brecht Van Lommel
2014-05-30Cleanup: Remove unused total power Emission code in Cycles, that was never ↵Thomas Dinges
exposed in the UI. Differential Revision: https://developer.blender.org/D562
2014-05-11Quiet warnings with __CUDA_ARCH__ useCampbell Barton
2014-05-11Cycles / CUDA: Increase maximum image textures on GPU.Thomas Dinges
Instead of 95, we can use 145 images now. This only affects Kepler and above (sm30, sm_35 and sm_50). This can be increased further if needed, but let's first test if this does not come with a performance impact. Originally developed during my GSoC 2013.
2014-05-07Nodes: add absolute value operation to all math nodesMatt Heimlich
Reviewed By: dingto, brecht Differential Revision: https://developer.blender.org/D507
2014-05-05Fix T40032: hair BSDF not working correct after primitive type code refactoring.Brecht Van Lommel
2014-05-04Style cleanup: indentation, bracesCampbell Barton
2014-05-04Code cleanup: avoid int/uint mixup in cyclesCampbell Barton
2014-05-03Code cleanup: Add -Werror=float-conversion to CyclesCampbell Barton
2014-04-29Fix for wrong behavior of 'darken' blend mode with factor.Kevin Dietrich
The formula was not consistent across Blender and behaved strangely, now it is a simple linear blend between color1 and min(color1, color2). Reviewed By: brecht Differential Revision: https://developer.blender.org/D489
2014-04-23Fix occasional wrong normal for curves with minimum width.Brecht Van Lommel
This caused a couple of fireflies in koro_final.blend. The wrong normal would cause the shading point to be set as backfacing, which triggered another bug with hair BSDFs on the backface of hair curves. That one is not fixed yet but there's a comment in the code about it now.
2014-04-21Code cleanup: remove old closure sampling code Cycles.Brecht Van Lommel
This was the original code to get things working on old GPUs, but now it is no longer in use and various features in fact depend on this to work correctly to the point that enabling this code is too buggy to be useful.
2014-04-21Cycles: add Transparent Depth output to Light Path node.Carlo Andreacchio
This can for example be useful if you want to manually terminate the path at some point and use a color other than black. Reviewed By: brecht Differential Revision: https://developer.blender.org/D454
2014-04-18Cycles: SVM optimization for mix shaders, to skip more code when the mix weightBrecht Van Lommel
for one of the input shaders is zero. This gives about 5% speedup for koro_final.blend. In general this is important so you can design shaders that run faster for shadows, diffuse bounces, etc, for example by skipping procedural textures or even using a single fixed color.
2014-04-15Fix T39284: clamp cycles volume density to be >= 0, to avoid accidental ↵Brecht Van Lommel
strange shading.
2014-04-03Cycles: SSE optimization for Voronoi cells textureSv. Lockal
Gives 5-6% speedup for Caterpillar_PatazStudio.blend. Reviewed By: brecht, dingto Differential Revision: https://developer.blender.org/D419
2014-04-03Fix T39577: cycles issue mixing anisotropic BSDFs with branched path tracer.Brecht Van Lommel
2014-04-02Cycles: add dedicated UV Map node, easier to find and has convenient auto ↵Kevin Dietrich
complete. Fixes T37954. Reviewed By: brecht, dingto Differential Revision: https://developer.blender.org/D230
2014-03-29Cycles code internals: add support for mesh voxel grid attributes.Brecht Van Lommel
These are internally stored as a 3D image textures, but accessible like e.g. UV coordinates though the attribute node and getattribute(). This is convenient for rendering e.g. smoke objects where data like density is really a property of the mesh, and it avoids having to specify the smoke object in a texture node, instead the material will work with any smoke domain.
2014-03-29Cycles code refactor: replace magic ~0 values in the code with defines.Brecht Van Lommel
2014-03-29Cycles: add support for mesh deformation motion blur.Brecht Van Lommel
2014-03-29Cycles code refactor: changes to make adding new primitive types easier.Brecht Van Lommel
2014-03-13Fix cycles texture interpolation mode closest constant offset on some devicesMartijn Berger
2014-03-08Add support for multiple interpolation modes on cycles image texturesMartijn Berger
All textures are sampled bi-linear currently with the exception of OSL there texture sampling is fixed and set to smart bi-cubic. This patch adds user control to this setting. Added: - bits to DNA / RNA in the form of an enum for supporting multiple interpolations types - changes to the image texture node drawing code ( add enum) - to ImageManager (this needs to know to allocate second texture when interpolation type is different) - to node compiler (pass on interpolation type) - to device tex_alloc this also needs to get the concept of multiple interpolation types - implementation for doing non interpolated lookup for cuda and cpu - implementation where we pass this along to osl ( this makes OSL also do linear untill I add smartcubic to the interface / DNA/ RNA) Reviewers: brecht, dingto Reviewed By: brecht CC: dingto, venomgfx Differential Revision: https://developer.blender.org/D317
2014-02-11Better fix for T38501: blender crashes right after adding image texture toSv. Lockal
material in cycles Buggy MSVC 2008 in 32-bit mode ignores stack align attribute for float3. Now it uses reference to __m128, which is always aligned.
2014-02-10Fix T38501: blender crashes right after adding image texture to materialSv. Lockal
in cycles Also fix very similar problem in half-float SSE conversion.
2014-02-09Code cleanup: Remove Debug closure declaration.Thomas Dinges
2014-02-03Fix T38439: allow IOR in range [0, inf] instead of [1, inf] in Cycles.Brecht Van Lommel
The same can be achieved by flipping normals on the mesh, but it can be convenient to do this in the shader.