Commit Graph

47594 Commits

Author SHA1 Message Date
Brecht Van Lommel
4afa6a2594 Attempted fix for bug #8441: editing in particle mode with limit visible
enabled is really slow on some cards. Cause might be the large number of
calls to glReadPixels, now it uses the same system as sculpt to store
the depths once, code was already there for the case those depths were
available, it just wasn't storing them.
2008-03-13 10:27:35 +00:00
Joshua Leung
923b577b26 Bugfix #8543:
New keyframes were being added 1 place too early. With just two keyframes, this resulted in keyframes being added in reverse order (which lead to problems until scrubbing timeline)
2008-03-13 10:24:40 +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
Peter Schlaile
db15615b5b == Quicktime ==
Hopefully fixes:
[#8518] 2.46RC1: Blender doesn't render animation correctly with Quicktime and 30/1.001

FPS was off by a factor of 10 in export...
2008-03-12 22:01:57 +00:00
Peter Schlaile
4eb225b817 == Sequencer ==
This fixes:
[#8521] Sequencer: numpad zoom is inconsistent
2008-03-12 21:53:09 +00:00
Benoit Bolsee
3444d6612a Delta Loc/Rot/Scale Ipo curve are now supporting in the BGE with the following limitations:
1. All Ipo channels are now independent. 
In Blender 2.45, all 3 Loc Ipo channels were automatically set
together. For example, having just a LocX Ipo channel was sufficient
to fix the X, Y and Z coordinates, with the Y and Z value taken
from the object original Y and Z location in Blender. The same
was true for the 3 Rot and the 3 Scale Ipo channels: the missing
channels were assumed to have constant value taken from the object
original orientation/scale in Blender.
With this patch, all Ipo channels are now independent. 
THIS WILL CREATE BACKWARD COMPATIBILITY PROBLEM if you omit to
define the 3 channels of a same type together in your Blend file:
the undefined Loc, Rot, Scale coordinates of the object will
be influenced by the parent/spawner Loc/Rot/Scale in case the
object is a child or dynamically created.

2. Delta Loc, Rot, Scale are now supported with the following
limitations:
- The delta Loc/Rot Ipo modify the object global (NOT local)
location/orientation
- The delta Scale change the object local scale
- The delta Ipo curves are relative to the object starting
Loc/Rot/Scale when the Ipo was first activated; after that, the
delta Ipo becomes global. This means that the object will return
to this initial Loc/Rot/Scale when you later restart the Ipo
curve, even if you had changed the object Loc/Rot/Scale in the
meantime. Of course this applies only to the specific Loc/Rot/Scale
coordinate that are defined in the Ipo channels as the channels
are now independent.

3. When the objects are converted from Blender to the BGE, the
delta Loc/Rot/Scale that might result from initial non-zero values
in delta Ipo Curves will be ignored. However, as soon as the
delta Ipo curve is activated, the non-zero values will be taken
into account and the object will jump to the same Loc/Rot/Scale
situation as in Blender. Note that delta Ipo curves with initial
non-zero values is bad practice; logically, a delta Ipo curver
should always start from 0.

4. If you define both a global and delta channel of the same
type (LocX and DLocX), the result will be a global channel equivalent
to the sum of the two channels (LocX+DLocX).
2008-03-12 21:33:24 +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
Brecht Van Lommel
d73ed401da Added two UV features (Apricot request):
- Alt+click edge loop select.
- Next to Align X/Y, Align Auto which will pick X or Y automatically,
  should give the expected result for nearly all cases.
2008-03-12 19:55:37 +00:00
Brecht Van Lommel
de718de316 Bugfix: recent insert keyframe optimization had an error in it
that made replacing the last keyframe not work correct.
2008-03-12 16:53:11 +00:00
Brecht Van Lommel
4cc603090e Action editor keys copy/paste did not create ipo curves if they didn't
exist yet, now it creates them if they are in the copy buffer.
2008-03-12 16:04:03 +00:00
Joshua Leung
85350f5eef Insert Keyframe Optimisations:
Now a binary search is performed instead of a linear one to see where to insert a keyframe. It also checks first whether the keyframe is out of the bounds of the existing ones (as most of the time, keyframes are inserted at the end of the array). 

When using the .BVH importer to import a particularly large file, the time taken to add the keyframes improved by about 1 second. Other factors probably limited the improvement seen.
2008-03-12 11:19:07 +00:00
Campbell Barton
af93553640 Moved recent addition of get/setPixelF to get/setPixelHDR and kept get/setPixelF limited to 0.0-1.0 range, to prevent existing scripts breaking. 2008-03-12 11:13:57 +00:00
Daniel Genrich
51c58f3ca2 Bugfix for wrong initial cloth settings pretending to be cotton 2008-03-12 10:41:47 +00:00
Campbell Barton
4c6ff955ed quick fix for null check that crashed blender when reading some files. 2008-03-12 10:20:45 +00:00
Campbell Barton
c8d9d60a99 Added python access to TEXFACE_ALPHA 2008-03-12 09:04:07 +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
3c561ec216 Added an Alpha Convert compositor node, to convert between
premultiplied and key alpha.
2008-03-11 14:40:27 +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
Joshua Leung
51a8a60d96 Bugfixes:
* Menus could no longer have their items accessed by number (i.e. W-5 didn't run merge tool in EditMode when accessed by keyboard). This was caused by my commit for BUTM (there was some extra code there that isn't really needed, but was causing havok). 
* NumPad can now be used for the above feature too now
* Typo in error message in Constraints PyAPI
2008-03-11 11:22:27 +00:00
Campbell Barton
294f884a7d fix for cam.setScale(), cam.setClipStart(), cam.setClipEnd() and
cam.setDrawSize(), they would raise errors when setting ints. but used not to.
better tooltips for Uv Stretch
2008-03-11 09:00:09 +00:00
Matt Ebb
eed5a7ec33 Tiny tweak, added a space in the node title between custom name and node type. 2008-03-11 05:31:50 +00:00
Matt Ebb
ef98283f6a * Small tweaks to the bevel modifier UI 2008-03-11 01:17:56 +00:00
Matt Ebb
a49aaa6b00 Increased the maximum allowed 'Max Dist' value in raytraced reflections 2008-03-11 00:45:44 +00:00
Benoit Bolsee
b1ef25663a BGE crash when using angV & linV actuator on static objects
The error was causing by the KINEMATIC flag not set automatically when the linear or angular velocity was set on static objects. Note that these actuators still won't work on static objects: the crash is fixed but not the actuator; linV and angV only work on dynamic objects. Fixing the linV and angV actuators on static object requires a bit more reflexion. For the time being, use dRot and dLoc on static objects.
Cleaned the code a bit: added systematic check on the physic controller presence before taking action.
2008-03-10 21:30:35 +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
Brecht Van Lommel
4ecf0fffaf Fix for msvc compiler error in tiff saving. 2008-03-10 20:12:45 +00:00
Stephen Swaney
55b05d66a6 fix ugly code compiler warning: empty body in an if-statement 2008-03-10 19:32:20 +00:00
Brecht Van Lommel
59195b3e18 Fix for tiff 16bit saving commit, had memory leak. 2008-03-10 17:11:18 +00:00
Kent Mein
d5773b5c64 removed a duplicate line.
Kent
2008-03-10 16:59:08 +00:00
Daniel Genrich
cfc3a37a37 Another try to fix IRIX compile 2008-03-10 12:30:24 +00:00
Campbell Barton
2b42733105 Applied [#7076] Updated Python Image API to use float buffers in getPixelF/setPixelF
and added an image.updateDisplay() function to update imbuf->rect from imbuf->rect_float
also corrected some docstrings and epydocs
2008-03-10 12:17:58 +00:00
Brecht Van Lommel
0ec0f2a02f Add an option for saving/loading DPX with in log color space with
reference black, reference white and gamma.

Added 16 bit TIFF saving.

This needs more work to cleanup code and add 16 bit TIFF reading, but
committing it now so it can be tested.
2008-03-10 11:39:37 +00:00
Matt Ebb
397ece0008 * Updated the material preview so the 'hair' preview option
has UVs. Previously, it would show all noisy and messed up when
 using a UV texture.
2008-03-10 05:22:18 +00:00
Martin Poirier
cbfbe53ebe == Align to Transform Orientation ==
New rotation alignement fonction

Rotates objects/Pose bones to match the selected transform orientation.

Can be used to align to view, active object (normal) and custom transform orientations.

Accessible in the Object -> Transform submenu and through the hotkey Ctrl-Alt-A (which was previously a fall through for Apply but only Ctrl-A and Ctrl-Shift-A did anything special).

Can be eventually made to work in edit mode (not too hard).
2008-03-10 00:27:17 +00:00
Daniel Genrich
1a4f7a861e Cloth: Fixed wind force/speed calculation (was exploding with openmp before) 2008-03-09 22:55:49 +00:00
Benoit Bolsee
1f0ae739cb BGE memleak fix: OpenGL Display Lists not deleted when switching scene
This fix also improves performance of Display List for replica objects: Display List ID caching is now enabled for replica objects which avoids a tree search on each frame and for each replica.
2008-03-09 22:02:32 +00:00
Benoit Bolsee
52293831b2 BGE fix: game object to controller links consistancy maintained regardless of order of deletion
AddObject actuator forces last created object to hang in memory even after object is removed from scene => bad link between object and physic controller that causes Blender to crash in case a python script tries to use it (bad programming anyway). 
This patch avoids the crash by maintaining consistent links at all time.
2008-03-09 21:51:38 +00:00
Benoit Bolsee
822e51bd2d BGE memleak fixed: mesh/material not deleted when switching scene 2008-03-09 21:42:03 +00:00
Benoit Bolsee
ce7a21047f BGE memleak fixed: game actuator does not release file buffer 2008-03-09 21:37:01 +00:00
Peter Schlaile
ac8c39e58d == Sequencer ==
Added grab projection also to X- and Y-key to make it work like in 3d-view.
2008-03-09 20:50:43 +00:00
Peter Schlaile
af8d85256f == Sequencer ==
Removed sillyness on NUMPAD PERIOD that snapped CFRA to beginning of strip.
2008-03-09 20:25:57 +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
746888febd adjusted uv stretch angle error to show more errors for low values. 2008-03-09 17:32:32 +00:00
Campbell Barton
fc6577b6c3 replaced zero comparisons with FLT_EPSILON 2008-03-09 16:57:01 +00:00
Campbell Barton
47174e94ca removed printf and also removed some unneeded stuff, correct angles aren't needed since its only comparing the 2 angles 2008-03-09 15:07:01 +00:00
Campbell Barton
c6f423c1d2 optimized uv stretch display angle calculation 2008-03-09 14:49:12 +00:00
Campbell Barton
d9da14d8a7 fix for uninitialized variables in uv stretch drawing,
[#8428] 'Editmesh_active' theme colour not accessible via Python
bugfix problem where saving a theme would raise and error when ~/.blender didnt exist.
bugfix for file selector staying open (introduced with own undo resistant scripts)
2008-03-09 07:35:12 +00:00
Campbell Barton
a339bca9a1 uv stretch area display could flicker red sometimes, removed some GL settings that aren't needed. 2008-03-09 04:06:57 +00:00
Campbell Barton
6382acbc27 Added UV Stretch (area/angle) display options 2008-03-09 03:42:59 +00:00