Commit Graph

3559 Commits

Author SHA1 Message Date
6e0d977977 Use texture constants in the interface and added some missing texture constants. 2007-07-19 22:02:22 +00:00
b22a6da7b8 initalize texvec[2] even though its not used, imagewrap checks to make sure its
in a given range.

Kent
2007-06-05 19:39:19 +00:00
98a77bc9c6 Bugfix: SSS with negative lights gave artifacts. 2007-06-02 22:53:19 +00:00
17a219e3c0 == Shader nodes ==
* Geometry node: Front/back output
This is used as a mask for determining whether you're looking at the front side or back side of a mesh, useful for blending materials, my practical need was giving different materials to the pages of a magazine: http://mke3.net/blender/etc/frontback-h264.mov

Give 1.0 if it's the front side, and 0.0 if it's the back side.

* Extended material node
This is the same as the material node, but gives more available inputs and outputs, (basically just connecting up more of ShadeInput and ShadeResult to the node). I didn't want to add it to the normal simple Material node since you don't always need all that stuff, and it would make the node huge, but when you do need it, it's nice to have it.

== Comp nodes ==

* Invert node
Inverting is something that happens all the time in a node setup, and this makes it easier. It's been possible to invert previously by adding a mix node and subtracting the input from 1.0, but it's not the best way of doing it. This node:
 - makes it a lot faster to set up, rather than all the clicking required with the mix node
 - is a lot more usable amidst a complex comp setup, when you're looking at a node tree, it's very helpful to be able to see at a glance what's going on. Using subtract for inverting is easily mixed up with other nodes in which you are actually subtracting, not inverting, and looks very similar to all the other mix nodes that usually litter a comp tree.
 - has options to invert the RGB channels, the Alpha channel, or both. This saves adding lots of extra nodes (separate RGBA, subtract, set alpha) when you want to do something simple like invert an alpha channel. I'd like to add this option to other nodes too.

There's also a shader node version too.


* Also a few fixes that I committed ages ago, but seems to have been overwritten in Bob's node refactor:
 - adding new compbufs to the set alpha and alphaover nodes when you have only one noodle connected to the lower input
 - making the fac value on RGB curves still work when there's nothing connected to it
2007-05-31 06:55:02 +00:00
0907a0dba5 Bugfix #6739
Vector blur error in Ztransp: sometimes black lines (on edges) appeared,
which didn't get blurred away. Caused by zero-init of speed vectors in
sample buffers. (Zero speed -> no motion).

Error in Blender since vblur was added.
2007-05-23 15:27:34 +00:00
1e4057f6fd Bugfix: SSS did not work with panorama render. 2007-05-20 19:01:34 +00:00
33466557fc Disable SSS better for preview rendering, so it does not slow down
other preview renders at all.

Also added a flag to enable/disable SSS per scene. There is no
button for it yet, the Render panel has no space left .. will find
a place for it later.

The subversion number was also increased to enable the flag for
older .blends.
2007-05-17 16:51:09 +00:00
7ddc602ebf Second commit, now it should not bother me with passwords, according
to some person... :)
2007-05-14 19:52:21 +00:00
d90f0b1e16 Testing commit to see how it goes... 2007-05-14 19:50:33 +00:00
a8a8742f1c Showstoppper... mballs didn't get remade correct after render... it was
showing the orcos (size usally smaller).
2007-05-10 17:27:40 +00:00
2a94ae8a81 Fix preview rendering for SSS to not show preprocessing pass that
leads to flickering, and a bug that would display parts of the
preview render as black for interrupted preview renders.

(sorry for the late fix, i've triple checked the code ..)
2007-05-09 16:25:58 +00:00
0d51eb6ceb Bugfix #6663 yesterday, error: forgot to put back in if() for freeing data 2007-05-09 14:12:29 +00:00
e05125b9bd Bugfix #6663
Metaballs, when in editmode, didnt show correct after a render (it was
drawing render resol then).

The code here was confused some... this works, although it will take a
bit more cpu cycles when render resol = display resol. No biggie.
2007-05-08 18:51:40 +00:00
15e79ef4c8 SSS fixes:
- Radius R, G, B sliders had too small number increase on clicking.
- Preview render now renders with higher SSS error setting to speed it up a
  bit.
- bug #6664: 3d preview render had artifacts. re->viewdx/dy wasn't set then,
  which is needed to estimate the area of each point. Have set this now, not
  in the nicest way, there is some bit duplicated code, but I don't want to
  refactor existing code with the chance of breaking it at this point.
- bug #6665: grid like artifacts with parts rendering. The two extra pixels
  around parts used for filtering were used as well, leading to double points.
2007-05-08 10:15:51 +00:00
1e6b2ce207 Assorted SSS fixes:
- Bug #6652: SSS artifacts with ray shadow.
- Bug #6643: AO + SSS crash. couldn't redo this crash myself, but did find a
             bug that may cause a crash, please test.
- Tweak backscattering to avoid thin surfaces rendering too dark.
2007-05-06 05:04:07 +00:00
03040b54b3 Bugfix: SSS render crashed with option "Save buffers".
Apparently brecht wanted to disable it... but enabling it works just OK.
Gives at least uniform code for now.
2007-05-05 13:14:10 +00:00
3a8c6c81d8 Subsurface scattering:
Documentation on the settings, known limitations and implementation
info can be found here:
http://www.blender.org/development/current-projects/changes-since-243/subsurface-scattering/
2007-05-03 21:37:52 +00:00
a8756ba013 missed out with 2 active layers that should be active_rnd 2007-05-02 01:40:27 +00:00
c24aa10561 Made it so blender has an active render layer for Uv and Vertex color mesh layers.
This means changing the active UV/VCol layers wont change what renders.
needed to adjust the minor version so old files will copy the active layer to the render-uv/vcol layer.

boxpack2d.py - redoen in C now, dont need python version.
2007-05-02 00:01:23 +00:00
243d1a28c0 Casting fixes for 64 bits. Incomplete commit, discussion on proper casting
has to be finished.
2007-04-29 10:49:02 +00:00
7f9c872169 Bugfix, plumiferos report:
Strand texture coords (static particles) did not precisely go from -1 to 1
when random lifetime was used.
2007-04-25 16:12:34 +00:00
afdd54fa37 moved source and text to american spelling
* colour -> color
* centre -> center
* normalise -> normalize
* modelling -> modeling
2007-04-04 13:18:41 +00:00
f5b919e12e Long wanted feature; decent ESC processing in composite nodes.
Works simple; just check for

		if(node->exec & NODE_BREAK)
			break;

The main process (node processor) sets such a flag, checking for esc
20 times per second. That means you can check for ESC while doing image
processing without much cpu overhead.

Currently only added in blur nodes and defocus. Needs to be added all over,
nice for others... needs careful tests too.

What we now could do is even calling ESC on editing commands or mouseclicks
in composite editor? Could give user feeling of interactive app :) Further,
finished nodes are kept in memory anyway.
2007-03-28 13:48:01 +00:00
e968f6ec4b Uninitialized variable fix. Might fix bug #6431, error in rendering of
irregular shadowbuffers.

Found by valgrind session, provided by Mathias 'Lynx3d' Wein
2007-03-26 19:44:21 +00:00
Ken Hughes
115b65ce7c Fix numerous gcc warnings. 2007-03-16 05:03:38 +00:00
f82e278528 Bugfix #6181
An acos() getting a negative value caused 'ray trace shadow bias' to go
wrong (and object render entirely black). Only in very rare cases... but
nevertheless a nice discovery fixing other unpredictable issues.
(Symptom: entire object renders black)
2007-03-12 14:25:44 +00:00
73545179a3 Bugfx #6138
Raytraced transparent shadow: did not respect lamp option "Layer".
2007-03-03 10:40:44 +00:00
dafdc0e836 * Fix for Bug #6091:
Ambient Occlusion baking uses hidden objects
2007-03-01 10:22:16 +00:00
44cb770af4 Bugfix #6115
Render crash: "Stars" render didn't survive scenes without a camera.
2007-02-26 19:58:20 +00:00
30984a3bc8 Render passes:
Feature fix for ObjectIndex, now frontmost visible transparent face also
writes an index.
2007-02-23 15:06:27 +00:00
260af5f3c1 Plumiferos report:
Bad bad bug in Vector Blur: when using Ztransp in a RenderLayer,  the speed
vectors of moving solid faces were all cleared. Bug since january 21st... is
this the 2.43a case? Dunno... :)
2007-02-23 13:12:28 +00:00
a7066480da Bugfix #6044
OnlyShadow material: was giving shadow on backfacing faces... should not.
Do note that on boundary cases ("terminator") this isn't well defined.
This feature was meant for simple flat shadow planes, comprende?! :)
2007-02-14 14:36:39 +00:00
f95f812b2c Horrible raytrace bug!
Flipping the facenormal into direction of ray accidentally did not work
anymore, the normal was initialized again in nice new code. This made
objects in mirror appear shaded wrongly.
2007-02-12 13:16:30 +00:00
e04f5bda31 Bugfix #5962
New Image texture option for "Repeat Mirror" didnt work when the texture
"Map input" had a translation.
2007-02-09 10:35:04 +00:00
0806d5df29 Bugfix #5949
Ambient Occlusion: with option "Sky color" a material "Only Shadow" did not
render correct; it should use in that case AO type "Plain".
2007-02-09 09:23:50 +00:00
7d3e392cbf Bugfix #5919
Baking error: dupligrouped objects were not included in database for
bake. That should be, it can be used as shadow casters or AO casters.
2007-02-06 15:35:06 +00:00
4bd42ca280 Bugfix #5912
Bugfix #5912

Fix for Angmap and Spheremap (sky render).

This is a rewind of bugfix #4999 (sept 18). That bug appeared to be a
user error... the option "real" for sky had to be set.
2007-02-04 17:11:18 +00:00
c82574e04a Bugfix
Environment map type "load" which was not used for material, but on sky,
crashed when the envmap file could not be found.
2007-01-31 11:49:30 +00:00
9eb240282b Bugfix, report from studio Manos;
This tweaks the dependency rules for Scenes/Objects a bit. Here is the
rule:

- Each Scene has own dependency graph, and only solves dependencies for
  objects in the scene

- However, when using multiple linked Scene-sets, the *current* scene is
  allowed to have dependencies to objects in a 'set'.
  This works by first calculating the sets, then the current scene.

Example: the current scene can have lights with a track/location
constraint to a character in a set.
2007-01-31 10:59:39 +00:00
735b426344 Two fixes:
- when rendering a scene, all composite trees of other trees should get
  signalled the render output changed. This only happened with a composite
  active in render.

- the Mix node "A" option only works in Composite, as accidentally visible
  for shader trees.
2007-01-27 10:08:16 +00:00
18fc6ca762 Small tweak in clipping code for irregular shadow buffers 2007-01-24 16:10:37 +00:00
4175460d85 Bugfix #5816
Render pipeline: setting option "Single layer render" and having the active
layer disabled, crashed blender. It's a non-option anyway, so on a single
layer render, that layer is enabled by default now.
2007-01-24 09:13:40 +00:00
a9cd5b808c = Multires =
Fixed bug #5756, Rendering artifacts when MRM is not set to maximum

Several changes were made:
* Added function multires_level_n to get the nth level from a multires mesh
* Removed the changes I made some time ago to init_render_mesh for multires meshes. Previously it was making a full copy of the mesh object in order to be able to apply deformations to the Pin level and propagate them to the Render level.
* Added two functions to DerivedMesh.c, multires_render_pin and multires_render_final. These two functions work together in the mesh_create_derived_*_render functions to apply all modifiers to the Pin level, then create the DerivedMesh from the Render level, and lastly restore the mesh to its original (undeformed) state.
* Added a check in multires_del_lower and multires_del_higher to ensure that level indices are properly clipped to the actual range of available levels.
2007-01-21 23:46:00 +00:00
c3c37b2d88 Bugfix 5726
Tests with 8 threads and many parts reveiled that Blender render could
hang. Brecht found a line of code that should move up to prevent this!
2007-01-21 10:24:41 +00:00
66ee2962ce bugfix #5755
Render: Vector blur didn't work proper for Ztransp (accidentally was
antialising speed, which should not happen).

Also added speed-pass clearing in render, this to elimate the 'tsk tsk'
print in the Vector Blur node. :)
2007-01-21 10:04:50 +00:00
2022c41d6a Bugfix #5750
<sob>the 'time cursor' for bake-render has to go... it is being called
inside of a thread (even whilst thread is mutex locked), but that's not
supported in X11. It might be even instable in OSX/Windows even...

Only way to bring it back is to have the main loop (not in thread) update
the time cursor like each second. Would still mean to add a counter var...
will think it over. First want to have confirmed this is stable.
2007-01-19 13:32:43 +00:00
d2fd630e0a Bugfix #5748
Composite: when using multiple scene render-nodes, and one of these
scenes got re-rendered (by making scene active temporary), the composite
cache should free the used buffers.

Now, on each render, all scenes in a Blender project are being checked.
2007-01-19 12:43:02 +00:00
bd5c6e3a21 Bugfix:
Render: Ambient Occlusion was being triggered now with the Material flag
(Shader panel) "Shadow". Nice idea, but that was not so in 2.42a and
before, breaking how previously renders looked.

Now the "Shadow" button in Shaders panel only triggers shadow again.
(Note: the Ambient slider in material triggers AO)
2007-01-16 16:30:16 +00:00
a8a339b26e Bugfix #5712
UV rendering error: the third value of a UV texture coordinate should be
set to zero always, this enables 3d textures to work uniform with UV.

Also fixed: UV pass output for non_OSA is now equal to OSA, meaning only
used UV face values are in such passes.
2007-01-15 11:41:10 +00:00
bd0f9a59f0 Important bugfix: Image mapping "repeat" didn't support mirrored tiling
yet: http://www.blender.org/bf/rep1.jpg

Psst psst... to solve this bug I had to add the buttons for the option too!
2007-01-14 11:51:52 +00:00