Commit Graph

3420 Commits

Author SHA1 Message Date
Brecht Van Lommel
6da7b60cd3 Attempted fix for bug #8349: QMC raytracing being very slow on some
computers, probably due to slow multithreaded malloc. Now each render
thread keeps a list of qmc samplers that it fills as needed while
rendering (since it is hard to predict the actual amount needed in
advance due to ray recursion).
2008-04-14 10:14:59 +00:00
Brecht Van Lommel
d0d4604dad Fix for bug #8927: halo blending with solid has poor antialiasing,
which as far as I can see is an old issue, but with FSA it is quite
simple to do better.
2008-04-12 21:44:08 +00:00
Brecht Van Lommel
f8d1bc8ee7 Fix for bug #8463: object texture mapping for duplis was changed to
act as if the object was in its original position, instead of being
different for all instances. However, this is desired behavior in
some cases and so breaks compatibility. Now it only does the new
behavior when enabling the "From Original" option.
2008-04-12 18:44:03 +00:00
Brecht Van Lommel
f810245076 Fix or bug #8712: transparency + sss gave too bright results. 2008-04-12 16:31:29 +00:00
Brecht Van Lommel
4574dbea98 Bugfix: crash with strand surface AAO and layer ipo's. 2008-04-03 00:40:53 +00:00
Brecht Van Lommel
eec6454335 Fix for #8806: strand shadow bug, only showed up on windows. 2008-04-01 21:07:32 +00:00
Brecht Van Lommel
0efe0aa27b Bugfix: world exposure and range settings were applied twice to SSS materials. 2008-03-31 20:02:27 +00:00
Campbell Barton
73ca8a6fbf with displacement baking, white should be high 2008-03-29 15:16:33 +00:00
Campbell Barton
e7651c53c3 baking normals could crash in rare cases because the intersection data wasn't copied when the lambda was bigger then the previous or initialized.
python baking script had a simple error.
2008-03-27 16:28:21 +00:00
Brecht Van Lommel
c2ae2b51cf Fix for bug #8769: SSS materials were sometimes not rendered with nodes
due to recent bugfix.
2008-03-27 11:44:36 +00:00
Brecht Van Lommel
2af78ac944 Fix for bug #8750: depremul in the image texture code should check
with an epsilon rather than 0.0f, could give random spots otherwise
with e.g. calcalpha + negalpha.
2008-03-26 15:25:56 +00:00
Brecht Van Lommel
ba1f58ea73 Fix for bug #8747: normal map tangents didn't work correct with
splitting of non-flat quads.
2008-03-26 14:58:34 +00:00
Stefan Gartner
4a6d75af27 added support for linux on pa-risc 2008-03-23 12:59:26 +00:00
Ton Roosendaal
4e8f06604f This commit disables fix for revision 14202 effectively.
The claim was:
Bugfix: don't do full sample merging on re-rendered layers in
the compositor.

But result was that rendering didn't happen at all for scenes
with a composite.

I also don't understand the commit, seems like it's incomplete?
2008-03-21 22:26:26 +00:00
Brecht Van Lommel
c49316a9eb Bugfix: don't do full sample merging on re-rendered layers in
the compositor.
2008-03-21 17:37:24 +00:00
Brecht Van Lommel
b04c58c81a Bugfix: image texture with texface would not render sometimes, wasn't
setting image user correct. Also found that this texface rendering was
not threadsafe for > 2 threads.
2008-03-17 12:27:17 +00:00
Brecht Van Lommel
2004e08964 Fix for bug #8565: bug rendering tangent space normal map on
solid faces, caused by recent commit to solve spikes problem.
2008-03-15 16:29:49 +00:00
Campbell Barton
8e126216b0 added mesh.getTangents() to the python api 2008-03-14 18:53:51 +00:00
Brecht Van Lommel
fcdf2d694f Fix for bug #8555: geometry node front/bake was broken.
Fix for bug #7418: texture ipo's didn't show for textures in node materials.
Fix for part of bug #6758: node materials in other node materials could
miss texture coordinates.
2008-03-14 18:08:27 +00:00
Brecht Van Lommel
3f9f89fc18 Bugfix: baking selected to active did not include materials with
Traceable disabled.
2008-03-14 10:56:09 +00:00
Daniel Genrich
93f8961cdb Bugfix for cloth vectorblur (back to normal) 2008-03-14 01:07:09 +00:00
Brecht Van Lommel
abc79af975 Fix for bug #8437: white borders in envmap reflection, cause was
change in imagewraposa that de-premuls colors, while envmap code
was expecting premultiplied colors.
2008-03-13 15:55:35 +00:00
Daniel Genrich
4d3c9e88ed Fixing compiler wanring 2008-03-13 14:38:29 +00:00
Brecht Van Lommel
89247a96e9 Fix for bake texture antialiasing commit, AO with constant jitter
didn't work. Also fixed a warning.
2008-03-13 14:36:17 +00:00
Brecht Van Lommel
2c937f0769 Fix for bug #8502: AO was being computed unnecessarily if it was
excluded from the combined pass and the AO pass was disabled.
2008-03-13 09:58:21 +00:00
Daniel Genrich
691e2d5ca8 Temporary bugfix [#8474]: Smaller fluid objects had no velocity assigned for vectorblur usage. All zero elements now get the average velocity assigned. I tried to fix the real source - but that seems to be somewhere in the fluids code not reachable by me 2008-03-13 01:24:59 +00:00
Brecht Van Lommel
598e075717 Baking now does material texture anti-aliasing if the OSA button is
enabled, result of that is mainly visible for image textures.
2008-03-12 20:22:05 +00:00
Daniel Genrich
33a6bf610e Cloth bugfix for 1. reset of cloth sim during render with vector blur when cache was not protected, 2. fix of bad vector blur for cloth, put fluidsim like function in to get real speed vectors 2008-03-12 01:42:39 +00:00
Brecht Van Lommel
7f6889a63b Bugfix: render instancing didn't work correct with layer ipo's,
each instance should have it's own layer.
2008-03-11 12:29:59 +00:00
Campbell Barton
2563733a5d stupid mistake for setting the bake mask (only masked half the faces), also exposed a possible bug since the malloc and null checks were done without mutex locking. 2008-03-10 20:58:53 +00:00
Campbell Barton
2299f0d946 masked/alpha baking commit was missing a null check for imbuf,
made textures also bake alpha
2008-03-09 18:06:48 +00:00
Campbell Barton
027277fce0 * Bakeing fix for apricot, stop pixels being extended for parts of the image that are not being baked (useful for multiple objects)
* Added support for baking alpha, as well as extending alpha margins.
2008-03-08 21:35:38 +00:00
Brecht Van Lommel
5b3dc15880 Normal map tangents are now not always averaged at vertices anymore,
but only when the UV's are connected. That fixes some artifacts when
baking and using tangent space normal maps. It does mean increased
memory usage because it now stores 4 tangents per face like UV's,
and increased processing time, but there's no simple way around that.
2008-03-07 15:38:56 +00:00
Ton Roosendaal
e179b3d98e FSA fix:
If you composite using multiple scenes, the "use FSA" button had to be set
or disabled for each scene. Now you can just set/disable FSA for the scene 
that does the compositing. You can only disable FSA in other scenes if it 
was set before though.

(Any understands these lines? :)
2008-03-06 19:26:44 +00:00
Brecht Van Lommel
94f8db96d9 Bugfix: shaded mode or baking could crash, didn't always create
memarena but it's being used now in more places so needs to be
created always.
2008-03-05 17:19:57 +00:00
Ton Roosendaal
f975d29704 Restored code from over a year ago, tests to allow anti-aliased
shadowbuffers. At the time the results were not satisfying enough,
but we now suffer a shadow problem that might well be solved with
this feature.

Problem:
Temporal aliasing of shadowbuffers when small details move (like strands).

In this case it doesn't work to simply increase the shadowbuffer size,
because strands are pixel-sized. Huge shadowbuffers make strand shadows
almost disappear. So... the shadowbuffer resolution has to be not too high.

Instead of increasing the buffer size, we then create multiple buffers,
each on different subpixel positions (a bit like "FSA" :).

So! Shadowbuffer sampling then works as follows;

1) You take multiple samples in the shadowbuffer, on different locations
   inside (or around) the rendered pixel. 
   That option was aready available as "Samp" button in Lamps

2) Set amount of sample buffers. It is default 1, but can be 4 or 9.

The results of setting it to '4' or '9' buffers you can see here:
http://www.blender.org/bf/filters/index3.html

Actually, deep shadowbuffers could solve it probably too! Anyhoo...
2008-03-05 10:03:31 +00:00
Brecht Van Lommel
4ba2162e63 Bugfix: the shadow samplenr increment to reuse shadow results in
the renderer could lead to results being reused for unrelated
points, result was one wrong pixel or strand per part. Now instead
of setting the sample counter to 0 multiple times, it keeps a global
counter per thread for the whole render.
2008-03-04 19:58:22 +00:00
Brecht Van Lommel
b26a767923 Bugfix: displacement with object texture mapping could crash. 2008-03-03 18:53:06 +00:00
Brecht Van Lommel
27c9fb7c6b Fix for bug #8410: dupliframes didn't render. 2008-03-03 17:16:29 +00:00
Brecht Van Lommel
cffb9551db Fix for bug #8403: a radiosity render crash. 2008-02-29 16:52:46 +00:00
Diego Borghetti
95b0176fde Fix segfault when save the render with Multilayer format.
The RE_WriteResult function don't call BLI_make_existing_file
like BKE_write_ibuf, so if you append a directory to the output
path and it don't exist, the exr_begin_write fail to create
the file and blender crash.

Note that this is only 1 line of code and don't touch
anything in the render code.
2008-02-29 15:36:24 +00:00
Brecht Van Lommel
34fbc56c1c Fix for bug #8357: metaball rendering + radiosity was broken. 2008-02-28 18:54:25 +00:00
Brecht Van Lommel
7a83e67a46 Fix for bug #8373: using SSS the rendertime could be reported wrong. 2008-02-27 20:10:05 +00:00
Brecht Van Lommel
8da0b6937d Fix for dupli rendering bug, with a duplicating particle system using
groups that were not in the scene. Also commented the code better.
2008-02-27 11:50:20 +00:00
Brecht Van Lommel
995262728f Fix for bug #6854: meta object crash with preview render. Meta objects
were using an ugly trick to store render orco's, but there's really no
reason for it, now it works like other primitives.
2008-02-26 16:20:36 +00:00
Brecht Van Lommel
2719e8ca33 Tweak bugfix #8347 a bit, the self intersection problem with raytraced
shadows and jittering.
2008-02-26 13:05:18 +00:00
Brecht Van Lommel
7f0b9abb7d Fix for bug #7914: when rendering ray transparency with premul or key,
the alpha channel was set wrong.
2008-02-25 15:08:46 +00:00
Brecht Van Lommel
15688168df Fix for bug #8347: bug in raytraced shadow with edgesplit. Problem
was the new jittering of the start position gave self intersections,
especially noticable with for example edgesplit because in that case
it can't detect them as well. 'Solution' now is to bias the start
position away from the surface a bit according to how much the start
position was jittered.
2008-02-25 10:58:12 +00:00
Joseph Eagar
0e233b3213 =Reversion of premul bugfix=
Reversion of premul bugfix, as it was apparently not
working all that well.

Note that this brings back the bug where the erase alpha
paint tool won't display correctly, since the UV image
editor just draws images in key alpha now.
2008-02-22 22:23:58 +00:00
Brecht Van Lommel
28fb578048 Fix for bug #8329: approximate AO with shadow disabled gave artifacts. 2008-02-22 19:29:15 +00:00