779662aff7
Fix #33641 : cycles self intersection artifacts with motion blur and one of the
...
X/Y/Z coordinates close to 0.
2012-12-23 12:52:10 +00:00
80d22a3f12
Cycles OSL: handle new getattribute constant folding with renderstate NULL check,
...
and fix #33654 , distance to line segment function is not implemented but compiled
anyway, now it should give a compile error.
2012-12-22 15:15:11 +00:00
12117a8187
Fix cycles aliasing warnings caused by motion blur transforms.
2012-12-21 10:26:48 +00:00
abd3c87663
Cycles: reduce memory usage of instanced objects by about 40%, as long as the
...
motion vector pass is not enabled.
2012-12-20 19:26:57 +00:00
54729df020
Cycles OSL: diffuse_toon and specular_toon closures. These are toon shaders with
...
a size parameter between 0.0 and 1.0 that gives a angle of reflection between
0° and 90°, and a smooth parameter that gives and angle over which a smooth
transition from full to no reflection happens.
These work with global illumination and do importance sampling of the area within
the angle. Note that unlike most other BSDF's these are not energy conserving in
general, in particular if their weight is 1.0 and size > 2/3 (or 60°) they will
add more energy in each bounce.
Diffuse: http://www.pasteall.org/pic/show.php?id=42119
Specular: http://www.pasteall.org/pic/show.php?id=42120
2012-12-19 21:17:16 +00:00
ab2c273b12
Added GPL header to sconscripts!
...
Also changed shebang to '#!/usr/bin/env python', this is more portable across unixes...
2012-12-17 08:01:43 +00:00
176292067e
Cycles OSL: small optimization to geometry node, tangent output still was
...
not properly optimized out in some cases.
For reference, setting this will give detailed information about OSL shaders:
export OSL_OPTIONS="statistics:level=1,debug=1,llvm_debug=1"
2012-12-16 09:37:32 +00:00
caf2324d56
Fix cycles build error with OSL disabled.
2012-12-15 20:43:25 +00:00
06888b7beb
Cycles OSL minor optimizations: recycle shading context, don't do memory
...
allocations for trace data, avoid some virtual function calls. Only helps
a few percentages.
2012-12-15 10:18:42 +00:00
5616c7a058
Cycles: disable scaling up of ray differentials after diffuse/glossy bounce, this
...
isn't working well for OSL texture filtering and wasn't very helpful to begin
with, a better solution should be possible.
2012-12-12 14:43:07 +00:00
3945979f2b
Fix #33486 : cycles CPU image textures were offset wrong by half a pixel compared
...
to OpenGL/CUDA/OSL rendering.
2012-12-12 09:17:21 +00:00
c40030a36c
replace BLI_array_declare with BLI_array_staticdeclare() and BLI_array_alloca() for smaller arrays.
2012-12-12 02:48:03 +00:00
188718a3d5
OSL Shader Files:
...
* Simplify default color values, where each component was the same.
* Initialize closures as Null Closure, rather than assigning an existing closure, gets overwritten anyways.
2012-12-11 16:06:03 +00:00
8d4bd2cf3b
Cycles OSL: add diffuse_ramp closure in addition to phong_ramp.
2012-12-11 14:39:41 +00:00
43c04eefe3
Cycles: RGB and Vector Curves nodes now supported, with the limitation that the
...
range must be left to the default (0..1 and -1..1).
2012-12-11 14:39:37 +00:00
919311a654
Fix cycles OSL + AO enabled in world settings not working correct.
2012-12-10 12:56:56 +00:00
c20292f624
Fix mapping node min/max not working OSL.
2012-12-06 09:13:57 +00:00
38dcce2da2
FIX: OSL mix shader clamps 2nd color component to 3rd one.
...
Previously the OSL Mix shader node was clamping the 2nd color component (green) to the 3rd color component (blue). Now every component is clamped on its own.
2012-12-04 08:40:24 +00:00
a9d889cba4
Fix #33405 : preview render getting stuck in a particular .blend file, ObjectKey
...
operator< had wrong brackets, changed it now to be more clear.
Fix #33404 : crash GPU rendering with OSL option still enabled. There was a check
to disable OSL in this case, but it shouldn't have modified scene->params because
this is used for comparison in scene->modified().
2012-12-04 07:48:09 +00:00
c0078a9879
osl style cleanup and update man-page.
2012-12-04 03:18:08 +00:00
dbd44e3bf5
Fix scons not installing closure/ directory for runtime compiles of CUDA kernel.
2012-12-03 16:51:05 +00:00
4a9c522125
quiet float -> double conversion warnings and do some osl style edits.
2012-12-03 13:58:08 +00:00
41f98978e3
Fix cycles issue when NaN is used for RGB ramp, can access array out of bounds then.
...
OSL noise() function is generating NaN's in certain cases, fix for that goes to our
OSL branch.
Also add missing minimum weight and max closure checks to OSL, forgot to add these
when fixing another bug.
2012-12-03 12:21:44 +00:00
b8d822eb35
Fix performance issue in OSL geometry node, compiler fails to optimize out the
...
tangent computation, tweaked the code so this works.
2012-12-02 08:25:40 +00:00
9865ee7637
Fix another cycles SVM issue with closures, was not using correct sample weight
...
leading to some extra noise compared to a few revisions ago.
2012-12-01 22:00:25 +00:00
7c0a0bae79
Fix #33375 : OSL geom:trianglevertices gave wrong coordinates for static BVH.
...
Also some simple OSL optimization, passing thread data pointer directly instead
of via thread local storage, and creating ustrings for attribute lookup.
2012-12-01 19:15:05 +00:00
75cce01a61
Fix #33364 : cycles tile rendering artifacts.
2012-11-30 18:55:04 +00:00
ceedd5bd35
Fix cycles CUDA sm 1.3 build with 32 bit compiler, tweaked voronoi
...
and brick code so that it can be uninlined.
2012-11-30 07:27:17 +00:00
e7f594b0df
Fix #33347 : cycles OSL crash connecting string to vector socket.
2012-11-30 06:10:16 +00:00
f1745706ad
Fix cycles motion blur + OSL + object texture coordinates issue.
2012-11-29 16:11:37 +00:00
0d6976ad0c
Fix #32900 : object motion blur not working on the GPU. To make this work I disabled motion
...
blurring of scale animation, probably not a big loss in practice since it's not so common
to animate this, can be added back later.
2012-11-29 00:43:50 +00:00
4c13633582
Fix #33334 : missing glossy label for OSL phong ramp caused assert.
2012-11-28 16:42:32 +00:00
ceed3ef640
Fix #32907 : failure rendering a complex node setup, hitting fixed max number
...
of closures limit. Optimized the code now so it can handle more.
Change SVM mix/add closure handling, now we transform the node graph so that
the mix weights are fed into the closure nodes directly.
2012-11-26 21:59:41 +00:00
58ee2bdfc0
Fix: cycles light sampling crash, happens on rare occasions due to float
...
rounding errors.
2012-11-26 11:05:22 +00:00
2a9b5e8f81
Fix #33267 : cycles math node power gave different results for CPU and GPU. The
...
GPU variants do not support pow(-1, 2), it doesn't check for even exponents, do
manually now.
2012-11-23 17:39:41 +00:00
c25cfd3044
Fix cycles AO issue, still was missing AO pass for black/non-diffuse objects.
2012-11-23 13:41:25 +00:00
a72c03bc1c
Fix cycles OSL wrong reflection texture coordinate.
2012-11-22 22:24:34 +00:00
f4297c2ec5
Cycles: disable anisotropic BSDF on CUDA sm 1.x, to try to get it building again.
2012-11-22 16:08:18 +00:00
cdcab16d12
Style cleanup: mixed tabs/spaces were used for indentation in osl_closures.h
2012-11-21 13:45:37 +00:00
b118512448
Cycles: solve -Wmissing-declarations for osl kernel
2012-11-21 13:41:47 +00:00
a9c601ceff
Fix #33257 : cycles camera clipping did not work through transparent objects.
2012-11-21 13:22:24 +00:00
3a67122aef
Fix #33256 : cycles Z pass for orthographic camera was not right, now is more
...
useful for e.g. fog in compositing.
2012-11-21 13:00:57 +00:00
fd619cd7f1
Fix #33177 : OSL render difference with missing textures and HSV nodes.
2012-11-20 17:40:21 +00:00
ab1b5af08d
Fix cycles OSL missing support for texture mapping paramaters found in texture
...
properties tab.
2012-11-20 17:40:10 +00:00
68e9fdeb81
code cleanup: comment unused members of bmesh operator slots and some osl style edits.
2012-11-20 14:31:58 +00:00
f92359cc29
Fix [ #33239 ] Cycles OSL : Environment Texture Rotation Incorrect:
...
* Projection mappings were not implemented yet.
2012-11-20 14:18:56 +00:00
abce6309e3
Scons: better fix for OSL compiler path, so it also works on OS X.
2012-11-19 15:50:28 +00:00
312abf8cb2
SCons: make OSL linking work on windows, and fix OSL compiler path issue to
...
properly expand to absolute path.
2012-11-19 14:54:35 +00:00
3b570440e4
OSX/scons: refine oslc compile workaround
2012-11-19 11:46:55 +00:00
70b6e2717a
Windows / OSL:
...
* Scons cleanup, to avoid redeclaration of /EHsc. Linking still fails.
2012-11-18 15:02:09 +00:00