Commit Graph

9928 Commits

Author SHA1 Message Date
Brecht Van Lommel
6ea0adb462 Added an option to bake AO normalized, without material settings taken
into account. The normalized result can often be easier to integrate
into different materials, e.g. for games.
2008-02-19 16:16:16 +00:00
Brecht Van Lommel
4100861f24 Bugfix: vector blur blending of different times wasn't correct, didn't
show up much for characters on isolated layers but can make a big
difference on a full scene:

http://users.pandora.be/blendix/vblur_before.jpg
http://users.pandora.be/blendix/vblur_after.jpg
2008-02-19 15:30:33 +00:00
Brecht Van Lommel
f5e89b3f47 Bugfix: this adds some epsilons (FLT_EPSILON, so quite small) to the
raytracing intersection code, to avoid rays slipping through between
triangles, this would mostly show up with sceen aligned quads and
baking of height maps for example. Epsilon's are not pretty, but I
haven't found a reliable way around them.
2008-02-19 12:13:35 +00:00
Brecht Van Lommel
e0dfe62d8c Bug #8234: sky texture for approximate AO doesn't work, as mentioned
in the commit log. Couldn't get this to work well, probably this would
work a lot better with the IBL spherical harmonics feature, so I've just
disabled the option in the interface for now.
2008-02-19 11:07:09 +00:00
Remigiusz Fiedler
0d80e08e8a python API: added support for screen font 12(fix-width) as "normalfix" 2008-02-19 10:47:29 +00:00
Campbell Barton
92300016e0 pendent changes -
- Added a note that force fields only affect objects on same layers
- PLAY button would just play all frames and didnt respect the end frame which is very annoying at times.
2008-02-19 10:43:41 +00:00
Ton Roosendaal
3790c95ab5 Crasher in patch for premul flag: missing NULL check
Also converted ugly short pointer casting with the standard ID
define GS(), Get Shorty!
2008-02-19 09:00:39 +00:00
Joseph Eagar
ccac67d3ea Further work on the premul option for ton. This option
(which basically tells the renderer and compositor to expect a
key image) is now done at the image user level.

This does have some caveats, as image users don't always work
the way I thought they would/should (for example, the same image user
structure is apparently used in the uv image editor for all images,
which is kindof odd).

The UV image editor also now smartly detects if the premul option is
set and draws the image using key alpha, instead of premul

The subversion level was upped to convert the old premul flag, which was at
the image level, to the new one, which is at the image user level.
2008-02-18 23:50:12 +00:00
Ken Hughes
05a28c8521 Tools
-----
Remove extra parenthesis from Cubic tooltip, reported on IRC.
2008-02-18 23:00:44 +00:00
Brecht Van Lommel
41b42b61d1 Fix for bug #8047: convert metaballs to mesh often has holes. 2008-02-18 20:00:42 +00:00
Brecht Van Lommel
ca79952dc0 Fix for bug #7787: QMC AO could give bad results tracing rays from an
untraceable material, cause is that the ray start position got set
only once, but it needs to be set for each ray since it can be clipped
to the octree bounding box.
2008-02-18 19:32:57 +00:00
Brecht Van Lommel
a75e34a1df Fix for bug #7936: render baking selected to active now has a Bias
value that is an offset along the normal when looking for the nearest
face, which allows baking faces further away, e.g. an ID badge onto a
shirt.

Also fixes a bug baking to float images, for things other than
displacement it didn't work sometimes, and a memory leak in the
extend filter.
2008-02-18 18:14:19 +00:00
Campbell Barton
0a703124e2 moved LARGEFILE defines to BLI_storage.h 2008-02-18 17:20:04 +00:00
Brecht Van Lommel
41e4d7e4e6 Disable particle time looping for hair, doesn't have any purpose there,
only gives weird results.
2008-02-18 15:56:34 +00:00
Brecht Van Lommel
331559d585 Bugfix for defocus node gamma correct. It applied gamma correct to
a premul image but that doesn't work correct. Now it depremuls and
premuls again around the gamma correction. Better solution might be
possible, but this gives compatible results.
2008-02-18 15:21:59 +00:00
Campbell Barton
314736eeb4 particle bug - Edit Particles could reference invalid face indices's,
Now particles lookup every face in the derived mesh to be placed on the mesh.
2008-02-18 14:06:45 +00:00
Brecht Van Lommel
988ffbc704 Bugfix for speed vector pass not being done when rendering a single
layer from the compositor. I've solved this by changing the behavior,
now it always renders a vector pass even if Do Composite is disabled.
I think that's more consistent because other passes get rendered too
regardless of Do Composite, the vector pass was just an exception.
2008-02-18 13:38:16 +00:00
Brecht Van Lommel
fb2e03c539 Bugfix for own mistake in recent commit, halo render could crash
with no material assigned.
2008-02-18 13:05:27 +00:00
Brecht Van Lommel
cd9e2a0c70 Bugfix for particle path drawing messing up opengl state in some cases. 2008-02-18 11:29:08 +00:00
Brecht Van Lommel
7643d5acd5 Fix for bug #7845:
IK stretch lead to bone shaking a bit too quickly since making IK
scale independent, now does more strict clamping of stretch again.
2008-02-18 11:16:20 +00:00
Brecht Van Lommel
46f2e465ce Bugfix: hair effector settings only showed when the hair was editable,
but they work also if the hair is not editable.
2008-02-18 10:58:03 +00:00
Brecht Van Lommel
785b4dcdda Fix for bug #8052: particle emit from verts and volume didn't support
subsurf/derivedmesh mapping yet.

Also added int-to-pointer and back conversion function to solve warnings.
Note that it is only allowed to store an int in a pointer and then get
it back, but not a pointer in an int!
2008-02-18 10:49:46 +00:00
Campbell Barton
0fe6abbfa3 texture forcefields had a bug where uninitialized values could be used.
do_texture_effector assumed multitex_ext would assign r/g/b colors which isnt true for grey textures.
Fallback to PFIELD_TEX_GRAD with grey textures, node this in tooltip also.
2008-02-17 23:53:48 +00:00
Peter Schlaile
a207d14958 == Sequencer / FFMPEG ==
This fixes [#8297] Video Playback crash (audio buffer) 
If a single audio frame is larger than 1 second (but still smaller than
AVCODEC_MAX_AUDIO_FRAME_SIZE) things could get very - annoying :)
2008-02-17 23:39:16 +00:00
Brecht Van Lommel
10529ca743 Fix for bug #8044: vertex colors weren't supported for hair. 2008-02-17 22:42:03 +00:00
Martin Poirier
83ddab60b7 == Transform Orientations ==
Merge Normal orientation calculations with Custom Orientations, to make it work the same all accross the table:
- One or more faces: use average face normal (first edge of faces define tangent)
- One edge: use edge itself as normal (vertex normals define tangent)
- One vertex: use vertex normal (tangent is perpendicular to normal and z-axis)
- Two vertices => edge orientation
- Two vertices => face orientation

*I tested quite a bit but please report any bugs this might have caused.*

ADDED FILE WARNING: source/blender/src/transform_orientations.c
2008-02-17 22:19:02 +00:00
Brecht Van Lommel
417687c4ff Bugfix: yafray number of processors was not properly initialized, and
could be 0, hanging yafray. This commits removes the separate yafray
number of processor setting and simply using the blender threads
button, there is no reason for a separate setting.
2008-02-17 22:11:05 +00:00
Andrea Weikert
b7cf0ecbf6 == ImageBrowser ==
added icon for 'Toggle Bookmark Area'
disabled the bookmarks for databrowse
allow to add path inside .blend file (could be nice to use as material library for example)
2008-02-17 21:34:56 +00:00
Campbell Barton
fcd78f0817 bugfix [#8263] Video Sequence Editor > Sequence > Reassign Inputs > crash
just missing null checks
2008-02-17 21:22:42 +00:00
Campbell Barton
1648060132 Bugfix [#8196] sequencer crash when adding scene without camera
added checks for a camera
Also added an error ob bake if there are no active objects.
2008-02-17 20:44:07 +00:00
Brecht Van Lommel
601c7cc318 Fix for bug #8267: vector blur results in horizontal lines.
Vector blur was averaging z-values between pixels, which could give
wrong z-test results. While averaging is needed for speed vectors
to avoid holes, for z-values it is not required and not doing it
seems to avoid artifacts in specific cases.
2008-02-17 20:36:13 +00:00
Jens Ole Wund
5163811290 double strike
-help MSVC compilers with finite /* hope that won't break cygwin builds */
-a unfinished soft body feature sneaked in (freezer)  .. disabled for now
2008-02-17 20:13:58 +00:00
Campbell Barton
afb3f0ec3a meshes with nan verts could crash blender when building as mesh octree 2008-02-17 18:50:45 +00:00
Janne Karhu
a221c3db97 "From particles" children are again allowed for non-hair/keyed particles, although with some limitations like no separate render amount or rough/branching values. 2008-02-17 18:33:20 +00:00
Campbell Barton
b16eefadf8 Patch from Giuseppe Ghibò, modified not to use scons defines.
Files above 4gig did not display on linux in the file selector.
Need to make sure this is ok in other os's too.
2008-02-17 18:09:53 +00:00
Janne Karhu
ef17600b5c Old particles didn't interpolate between keypoints at render time so regression test hairball.blend didn't render properly. Now all converted particle systems have path display and render steps set to 0 so that only the keypoints are used. 2008-02-17 15:46:03 +00:00
Janne Karhu
1111561dd3 Particle looping works again at least to some extent (don't have time to test thoroughly). Instant looping had to be removed as it caused more trouble than good things. 2008-02-17 14:44:12 +00:00
Janne Karhu
33b569106e Removed "roll" and "rotation" child particle kink modes as they couldn't be made to work properly. Will have to see later if these can be put back in so that they actually work. 2008-02-17 13:41:42 +00:00
Janne Karhu
e83d8ea586 Fix for bug: [#8287] crash duplicating softbody hair
-Duplicating a particle system with softbody didn't update the sb->particle pointer correctly.
2008-02-17 12:46:09 +00:00
Joshua Leung
0ce7e6c7b1 Bugfix: Limit Constraints
Rot/Scale-Limit Constraints with 'For Transform' option would sometimes act on location values too.
2008-02-17 06:17:01 +00:00
Joshua Leung
dafd23e5c6 == Action Editor Drawing - Optimisation Attempt ==
Another attempt at further optimising Action Editor drawing without doing any drastic changes.
2008-02-17 06:00:18 +00:00
Brecht Van Lommel
07fa7f5a38 Fix for bug #8219: proportional edit circle was drawing
wrong in the uv editor since editmode integration.
2008-02-16 19:37:33 +00:00
Campbell Barton
54fd70a8bb sculptmode mtex texture pointers are now duplicated too, should resolve scene copy errors. 2008-02-16 19:13:40 +00:00
Brecht Van Lommel
2c11523b39 Fix for bug #8285 and #8286: halo crashes with environment maps and
render instancing.
Fix for vector blur alpha blending bug due to my recent bugfix, as
reported on bf-committers.
2008-02-16 18:49:54 +00:00
Nicholas Bishop
bb410eb7da Fixed pointer type warning. 2008-02-16 18:00:22 +00:00
Nicholas Bishop
1543b0f1f1 == Sculpt ==
Fixed a double free occuring when duplicating a scene while in sculpt mode.
2008-02-16 16:59:26 +00:00
Joseph Eagar
903d71e899 Images in the image editor were being draw with the wrong glBlendFunc() command
in draw-alpha mode. This would cause key alpha images to draw badly.
2008-02-16 16:44:41 +00:00
Campbell Barton
b7af3d2cbd fix for [#8257] double-freeing pointers from sculpt code
http://projects.blender.org/tracker/index.php?func=detail&aid=8257&group_id=9&atid=125

Cleaned up scene_copy, and moved some scene copying into this function that was inline in the user interface.

Also moved malloc error prints onto separate lines so you can set breakpoints.
2008-02-16 16:35:47 +00:00
Joshua Leung
97a28c52b4 PoseLib - swapping keys:
Swapped the order of a few keys during PoseLib Preview, so that they made more sense.
2008-02-16 04:12:54 +00:00
Jens Ole Wund
dd625d763c cleaning up softbody.c code
- removed some 'hopes' on ODE solving
- no linking to open numeric library (ONL) should be required for now
2008-02-16 00:07:05 +00:00