d46480377c
Cycles / Orthographic Camera:
...
* Avoid one unneeded division by 1.0f and save one variable assignment.
2013-05-12 17:14:01 +00:00
7636aeffe1
Cycles / Math:
...
* Add M_2PI_F and M_4PI_F constants and use them inside the codebase.
2013-05-12 14:13:29 +00:00
7b707fff56
correct assert for driver evaluation,
...
also add asserts for listbase functions when the list is NULL, and use noreturn attribute for jpeg_error.
2013-05-12 05:54:33 +00:00
f35a9328e0
Fix for previous fix, not sure it will cause issues in practice but better be
...
sure to avoid invalid memory access.
2013-05-11 12:21:33 +00:00
a919b0e4c3
Fix #35265 : on OS X, pressing system shortcuts such as cmd+M or cmd+` would both
...
insert text in the text editor and do the associated operation like minimizing the
window or switching windows.
The code was always doing both without trying to ensure only one is done. Now we
integrate a bit better with the event handling and pass the event to NSApp, which
then decides to handle the event itself or pass it on to the window, from where
we then send it back to be handled.
2013-05-11 10:15:27 +00:00
561cf26c2f
Fix #35306 : cycles normal mapping not working with flat shading.
2013-05-11 09:31:58 +00:00
4ae201e105
Cycles / Closures:
...
* Avoid some unnecessary re-declarations of closure data and simplify *_setup() functions a bit.
2013-05-10 22:41:24 +00:00
eaa6479ae3
Cycles: bump node changes to add a Distance input that controls the overall displacement
...
distance, and an Invert option to invert the bump effect.
2013-05-10 16:57:17 +00:00
8e9b6daa8e
Fix for recent bugfix with anisotropic node crash, could do invalid memory access.
2013-05-10 15:10:54 +00:00
31e39e9b0e
Cycles: add Use Surfaces and Use Hair option to render layers, to disable rendering
...
of hair and surfaces, similar to blender internal options.
2013-05-10 13:34:49 +00:00
96a11219f6
Code cleanup / Cycles:
...
* Change some more if / else if conditions to switch / case.
* Avoid an unneeded variable casting in phong_ramp closure.
2013-05-10 12:51:30 +00:00
34d7392297
Fix #35282 : cycles color ramp set to constant interpolation did not work well.
2013-05-10 11:44:24 +00:00
e46551246c
Fix #35272 : cycles GPU crash with anisotropic shader in group node.
...
Problem was that due to group proxy node the anisotropic node did not detect
early enough that it needs generated texture coordinate data to generate the
tangent. Now the proxy nodes are removed earlier.
2013-05-10 11:31:57 +00:00
522eeaa6a0
Cycles / OpenCL:
...
* Remove old comment for sm_13 cards and really check for OpenCL 1.1.
2013-05-09 16:16:41 +00:00
168bcfb46b
Cycles OpenCL: fix other build issues when enabling more features.
2013-05-09 15:28:38 +00:00
ba55f2da64
Cycles:
...
* Change some if / else if conditions to switch / case.
2013-05-09 15:20:00 +00:00
602a7f77c6
Cycles / Filter functions:
...
* Avoid some variable castings here to save some calculations.
2013-05-09 14:37:32 +00:00
13bcf0c104
Cycles:
...
* Remove unused film_response table code.
2013-05-09 14:21:36 +00:00
ce40e7fe27
Cycles / OSL:
...
* Remove custom template from r52885, not needed anymore as OSL 1.3 is a requirement and we do not use a custom branch anymore.
2013-05-09 14:13:43 +00:00
d0ffbeec73
Cycles OpenCL: a few fixes to get things compiling after kernel changes,
...
for Apple OpenCL on OS X 10.8 and simple AO render.
Also environment variable CYCLES_OPENCL_TEST can now be set to CPU, GPU,
ACCELERATOR, DEFAULT or ALL values to test particuler devices.
2013-05-09 14:05:40 +00:00
d236b4d60f
Cycles bump node: change the Strength value to work better, previously it would
...
give results that were either too weak or too strong, this makes it give more
predictable results. The downside is that it breaks backwards compatibility but
the previous behavior was almost broken.
2013-05-09 14:05:37 +00:00
01dc4b034f
Cycles / Tile Rendering:
...
* Code refactor of tile ordering to simplify the code and avoid some branching.
* Changed the Center method, so it really follows center -> corners, instead of the BI method, which was confusing sometimes.
2013-05-08 19:49:09 +00:00
360a86d658
Attempt to fix OS X build with 10.6 SDK, was not working due to recent fullscreen bug fixes.
2013-05-08 19:37:36 +00:00
872a8ed1bf
Cycles / Hair rendering:
...
* Enable hair rendering on the GPU.
Patch by Stuart Broadfoot, with small tweaks by me, to only enable it on sm_20 and above.
2013-05-08 17:33:25 +00:00
3e763d7e4d
Fix #35246 : cycles has no simple way to combine bump and normal mapping. Now
...
the Bump node has a Normal input, so you can chain it after a Normal Map node.
Note that normal mapping always has to be done first because it is tied to the
particular mesh surface and tangents.
2013-05-08 13:23:13 +00:00
7d4eee2b18
add option to disable guardedalloc, helps for debugging memory errors
...
since guardedalloc confuses them.
The option cases a warning on build, since its ownly for experimental
use.
2013-05-08 12:55:23 +00:00
a4cf8b3779
Supress error message if dlopen for jack.so failed
...
This is mainly happening when there's no jack installed
in the system and no reason to cause general panic
messages in the terminal about this.
2013-05-07 15:49:23 +00:00
2a4ee23a25
Fix #35225 : new OS X Lion fullscreen did not work together well with old
...
fullscreen option. It was possible to enable both at the same time which got
you stuck in a state where it was impossible to exit fullscreen. Now I've made
them mutually exlusive, only one can be enabled at the same time.
Note the reason we need to support both is because the new Lion fullscreen does
not work with multiple monitors, it will just give black screens on the other
monitors. This is a limitation of OS X, you can find many complaints about this
online.
2013-05-06 13:39:25 +00:00
62087935ec
Fix #35209 : cycles generated texture coordinates did not stick to deforming meshes.
2013-05-05 05:56:41 +00:00
838949c3e7
Fix #35207 : addition to previous fix to avoid OSL getting uninitialized
...
ray differentials for lighting, which could cause bad texture filtering
artifacts or performance.
2013-05-03 21:34:51 +00:00
356ca7ec8a
Fix for recent glossy BSDF fix, color ramp test file was rendering different.
2013-05-03 13:17:28 +00:00
a5d6820b6d
Possible fix for #35198 : uninitialized memory access with background multiple
...
importance sampling + OSL.
2013-05-03 05:24:05 +00:00
273f5226da
Fix #35160 : cycles was rendering glossy BSDF's with zero roughness too rough
...
after a bugfix for precision issues with low roughness. Now it renders them as
perfectly sharp which avoids the problematic calculations rather than increasing
the roughness.
2013-05-02 22:05:57 +00:00
30556d4cd5
Some minor cleanup/polish...
2013-05-01 17:49:19 +00:00
fd6ab0564d
This should at least prevent crash in [ #35172 ]...
2013-05-01 17:11:07 +00:00
Lukas Toenne
8843eb9063
Fix for bug reported by Thomas Dinges on IRC: OSL script node was not initializing the data_type variable for shader sockets and so tried to set a non-existing float RNA property, leading to failed assert.
2013-05-01 13:28:44 +00:00
aa2a0e4ab0
More build fixes for visual studio 2012.
...
Patch #35019 , #35131 and #35152 by Jurgen Herrmann.
2013-04-29 19:15:56 +00:00
b13ef55973
Cycles / SCons:
...
* Fast math compiler flag was set for Cycles, but not OSL.
2013-04-29 15:52:38 +00:00
b1b5274549
Tweak allocation vars for XYZ space for more accurate GPU transform
...
Also extend 3DLUT edge size to 64 (1 meg of memory) to increase
transform accuracy as well.
2013-04-29 10:53:10 +00:00
428debd9c8
Fix for "new" Cycles handling of textures, UI code assumed all texture users use "texture" as prop name, but at least WeightVG modifiers do not.
...
Fixed by adding a "texture_user_property" member to spacebuts' context, and using it to get the prop identifier in ui script.
Thanks to Brecht for its advice!
2013-04-28 15:20:52 +00:00
8cd455f9b4
Fix #35121 : cycles 3D viewport render pause button not working during render.
2013-04-28 12:31:24 +00:00
753fe9f0b9
Keeping my commit count high!
...
Previous GLSL code had error, the if() statement had to be negated.
2013-04-28 11:05:49 +00:00
eae651db3a
GLSL display of float buffers with alpha:
...
Previous version worked, now a version with simplifying this GLSL code.
2013-04-28 11:03:01 +00:00
e355abebee
This glsl shader works for OCIO with alpha. OSX iMac with ATI.
...
There's no logical reason I can find... but I commit it because many others have
the same error, so we can check.
2013-04-28 10:46:18 +00:00
69b0b0a624
Fix for fix in alpha de-premul
...
We do not need to premul shader result, opengl
is already configured for straight alpha.
2013-04-27 17:50:11 +00:00
6a04ff11af
Premultiplication in OCIO shader went wrong,
...
it used to apply alpha on source color after
conversion, not on result.
2013-04-27 17:08:37 +00:00
d376a1b740
Apparently better not to use values like 1.0f in GLSL code
...
Fix from debug session of self and Ton, was affecting OSX
builds, making GLSL display transform not working on this
platform.
2013-04-27 16:43:15 +00:00
514e322895
Print error log to the console if OCIO shader compilation failed
2013-04-27 16:34:56 +00:00
ac849f98f5
Fix #35102 : crash with experimental cycles displacement feature due to
...
uninitialized memory usage.
2013-04-27 02:54:24 +00:00
48a6fe86ca
Fix #34172 : cycles BVH build crashing in some rare circumstances on 32 bit linux.
...
The problem was (again) the x86 extended precision float register being used for
one float value while the other was rounded to lower precision. This caused the
strictly weak order requirement for std::sort to be broken.
2013-04-26 02:18:29 +00:00