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
2013-06-12Fix #35665: more CUDA issues with recent kernel changes, tested on sm_20, sm_21Brecht Van Lommel
and sm_30 cards, so hopefully it should all work now. Also includes some warnings fixes related to nvcc compiler arguments, should make no difference otherwise.
2013-06-11Cycles / Wavelength to RGB node:Thomas Dinges
* Added a node to convert wavelength (in nanometers, from 380nm to 780nm) to RGB values. This can be useful to match real world colors easier. * Code cleanup: ** Moved color functions (xyz and hsv) into dedicated utility files. ** Remove svm_lerp(), use interp() instead. Documentation: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Wavelength Example render: http://www.pasteall.org/pic/show.php?id=53202 This is part of my GSoC 2013. (revisions 57322, 57326, 57335 and 57367 from soc-2013-dingto).
2013-06-11Cycles: ray visibility panel is now also available for the world, works same asBrecht Van Lommel
meshes and lamps. The light path node already made this possible but it's a bit faster to render this way and convenient.
2013-06-11Fix cycles backwards compatibility for specular_toon shader this actually needsBrecht Van Lommel
to be done in cycles itself to keep compatibility for bytecode too. Also fix broken button to compile OSL from the text editors, this got broken after recent change to disable editing of library linked nodes.
2013-06-10Attempt to fix #35665: disable correlated multi jitter sampling on the GPU ↵Brecht Van Lommel
for now, seems to be giving issues with CUDA 4.2 but I can't figure out why exactly.
2013-06-10Fix cycles OSL backwards compatibility for specular_toon, it got renamed to ↵Brecht Van Lommel
glossy_toon but we can keep the old name working too.
2013-06-10Cycles / Wavelength to RGB node:Thomas Dinges
* Added a node to convert wavelength (in nanometer, from 380nm to 780nm) to RGB values. This can be useful to match real world colors easier. Example render: http://www.pasteall.org/pic/show.php?id=53202 ToDo: * Move some functions into an util file, maybe a common util_color.h or so. * Test GPU, unfortunately sm_21 doesn't work for me yet.
2013-06-09Fix #35665: cycles CUDA crash after recent changes. This works around a compilerBrecht Van Lommel
bug in CUDA 4.2 (solved in 5.5) with typedef'd function parameters.
2013-06-09Cycles:Thomas Dinges
* Use float_to_int() functions in a few more places.
2013-06-08Cycles: invert mist pass so that 0 is nearby and 1 is far away. This is theBrecht Van Lommel
opposite of Blender Internal but it makes more sense I think.
2013-06-08Cycles / OpenCL:Thomas Dinges
* Fix for recent commits, ceilf is not available in OpenCL.
2013-06-08Cycles: window texture coordinates now work with orthographic cameras, thisBrecht Van Lommel
was an old issue since the first version.
2013-06-07Cycles: ray visibility options now work for lamps and mesh lights, with and ↵Brecht Van Lommel
without multiple importance sampling, so you can disable them for diffuse/glossy/transmission. The Light Path node here is still weak and does not give this info. To make that work we'd need to evaluate the shader multiple times which is slow and we can't detect well enough when it is actually needed.
2013-06-07Cycles: experimental correlated multi-jittered sampling pattern that can be usedBrecht Van Lommel
instead of sobol. So far one doesn't seem to be consistently better or worse than the other for the same number of samples but more testing is needed. The random number generator itself is slower than sobol for most number of samples, except 16, 64, 256, .. because they can be computed faster. This can probably be optimized, but we can do that when/if this actually turns out to be useful. Paper this implementation is based on: http://graphics.pixar.com/library/MultiJitteredSampling/ Also includes some refactoring of RNG code, fixing a Sobol correlation issue with the first BSDF and < 16 samples, skipping some unneeded RNG calls and using a simpler unit square to unit disk function.
2013-06-07Code cleanup: avoid some warnings due to implicit uint/int/float/double ↵Brecht Van Lommel
conversion.
2013-06-07Cycles: mist pass added, with start/depth/falloff control. If the pass isBrecht Van Lommel
enabled in a render layer a Mist Pass panel will be shown in the world properties.
2013-06-04Cycles:Thomas Dinges
* Revert r57203 (len() renaming) There seems to be a problem with nVidia OpenCL after this and I haven't figured out the real cause yet. Better to selectively enable native length() later, after figuring out what's wrong. This fixes [#35612].
2013-06-04Fix #35614: cycles objects on mask layer in render layers were writing passesBrecht Van Lommel
such as motion/uv/normal but they should have been excluded from them.
2013-06-03Cycles / Math functions:Thomas Dinges
* Rename some math functions: len -> length len_squared -> length_squared normalize_len -> normalize_length * This way OpenCL uses its inbuilt length() function, rather than our own. The other two functions have been renamed for consistency. * Tested CPU, CUDA and OpenCL compile, should be no functional changes.
2013-06-02Code cleanup / Cycles:Thomas Dinges
* Avoid 2 int castings in hair code and fix some comments.
2013-06-01Fix for #35591:Thomas Dinges
* Cycles Mix closure could render strange effects, when the user entered a value out of the 0...1 range. This was already clamped for OSL, clamp for SVM as well.
2013-05-30Cycles:Thomas Dinges
* Move some hair width related code into a dedicated branch. * Don't calculate time/lens RNG when Motion Blur or Depth of Field are disabled
2013-05-28Cycles OpenCL: disable requirement of enabling Experimental, environment ↵Brecht Van Lommel
varibale already adds an extra step. Also list all features for OpenCL AMD to make testing easier.
2013-05-28Cycles: normal maps are now backwards compatible again after recent fix, withBrecht Van Lommel
a separate Blender Object/World Space that is compatible with Blender render baking and uses the YZ flipping convention.
2013-05-27Fix #35505: cycles object space normal mapping did not match blender internal.Brecht Van Lommel
Now it uses the same (strange) YZ flipping convention.
2013-05-27Cycles / OpenCL:Thomas Dinges
* Use advanced shading for nvidia as well, works fine on my Geforce 540M with sm_21. I tested the files from regression suite.
2013-05-27Cycles OpenCL: patch #35514 by Doug GaleBrecht Van Lommel
* Support using devices from all OpenCL platforms, so that you can use e.g. both Intel and NVidia OpenCL implementations if you have them installed. * Fix compile error due to missing fmodf after recent math node change. * Enable advanced shading for Intel OpenCL. * CYCLES_OPENCL_DEBUG environment variable for generating debug symbols so you can debug with gdb. This crashes the compiler with Intel OpenCL on Linux though. To make this work the preprocessed kernel source code is written out, as gdb needs this. * Show OpenCL compiler warnings even if the build succeeded. * Some small fixes to initialize cdDevice to NULL, add missing NULL check when creating buffer and add missing space at end of build options for Apple OpenCL. * Fix crash with multi device + opencl, now e.g. CPU + GPU render should work. I did a few tweaks to the code and also: * Fix viewport render failing sometimes with Apple CPU OpenCL, was not taking workgroup size limits into account properly. * Add compile error when advanced shading in the Blender binary and OpenCL kernel are not in sync.
2013-05-27Cycles / Passes:Thomas Dinges
* Some closures (Toon, Diffuse Ramp) were not assigned to a CLOSURE_IS_* define, which made them invisible on render passes. * Westin closures had wrong type, Sheen is Diffuse, Backscatter is Glossy.
2013-05-27Cycles / Fresnel:Thomas Dinges
* Avoid redundant assignment and use correct Normal for Ray Differentials.
2013-05-27Cycles / Hair:Thomas Dinges
* Fix a condition in the hair BVH code.
2013-05-26Cycles / OSL:Thomas Dinges
* Rename fresnel_dielectric() to fresnel_dielectric_cos() to match SVM, easier when searching code. * Also remove an old code comment in bsdf_reflection.h from Cycles branch days.
2013-05-25Cycles / Wireframe node:Thomas Dinges
* Make sure we have valid geometry data, fixes a crash with Lamp objects. Reported by lichtwerk in IRC, thanks!
2013-05-23Cycles / Toon BSDF:Thomas Dinges
* Added a toon bsdf node to Cycles. This was already available as OSL only closure, but is now available inside the SVM backed as well, for CPU and GPU rendering. * There are 2 variations available, diffuse and glossy toon, selectable via a menu inside the node. Documentation: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Toon Example render & blend file: http://www.pasteall.org/pic/show.php?id=51970 http://www.pasteall.org/blend/21579
2013-05-21Code cleanup / Cycles:Thomas Dinges
* Use M_2PI_F in more places and do multiplication instead of division in gradient texture.
2013-05-21Code cleanup / Cycles:Thomas Dinges
* Re-use already defined Westin closure class.
2013-05-21Fix compiler warnings with westin OSL code.Brecht Van Lommel
2013-05-20Cycles / Wireframe node:Thomas Dinges
* Added a wireframe node (Input category) to get access to Mesh wireframe data. The thickness can be controlled via a "Size" parameter, and is available in world units (default) and screen pixel size. * Only the triangulated mesh is available now, quads is for later. Documentation: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Wireframe Render and Example file: http://www.pasteall.org/pic/show.php?id=51731 http://www.pasteall.org/blend/21510
2013-05-20Math Node:Thomas Dinges
* Added a Modulo operation to the math node, available in Compositor, Shader and Texture Nodes.
2013-05-20Code Cleanup / Cycles:Thomas Dinges
* Remove an unused parameter from Checker texture and correct a typo in license header.
2013-05-19Cycles:Thomas Dinges
* Fix OSL compilation for scene_intersect(), when __Hair__ was disabled.
2013-05-18Cycles / OSL:Thomas Dinges
* Added Westin Sheen and Westin Backscatter closures for testing, useful for Cloth like effects. Only available via OSL, added an example OSL shader to the Templates (Text Editor).
2013-05-18Code cleanup / Cycles:Thomas Dinges
* Simplify shaperadius() function a bit to avoid castings. * Style cleanup 1.f -> 1.0f, to follow rest of Cycles code.
2013-05-16Cycles / BSSRDF:Thomas Dinges
* Avoid one max() call for the bssrdf radius, the if condition already checks for values < BSSRDF_MIN_RADIUS.
2013-05-16code cleanup: double promotion warnings.Campbell Barton
2013-05-16* This is embarrassing...Thomas Dinges
2013-05-16Cycles:Thomas Dinges
* Revert part of r56832, if code gets more complicated, it's better to keep it more logical here.
2013-05-16Code cleanup / Cycles:Thomas Dinges
* Some simplification of closure code (Velvet and Toon).
2013-05-15Fix cycles CUDA error with world multiple importance sampling, after recent ↵Brecht Van Lommel
OpenCL fixes.
2013-05-15Cycles:Thomas Dinges
* Code cleanup, remove unused "resolution" variable from the DeviceTask class, was never used.
2013-05-14Cycles :Thomas Dinges
* Use is_zero(a) rather than dot(a, a) == 0, saves some calculations.