Commit Graph

47594 Commits

Author SHA1 Message Date
Ken Hughes
38e7c267a6 Replace ceilf()/floorf() with ceil()/floor() to fix VC7 compilation problems
reported by Stephane Soppera.
2007-10-26 20:04:04 +00:00
Ken Hughes
135b16662d Python API
----------
Document Peter's fps_base attribute for scene rendering objects; also remove
framesPerSecBase() method (preference is to add only attributes, and he did
add fps_base attribute).
2007-10-26 19:53:55 +00:00
Campbell Barton
2a2453d3e2 nodes from eechlo
* glare
* tonemap
* lense distort
* fast gauss blur

http://projects.blender.org/tracker/?func=detail&atid=127&aid=7505&group_id=9

made fast gauss blur an option for the blur node rather then a separate node.
2007-10-26 15:32:36 +00:00
Daniel Genrich
4f72523654 Weekend commit: Enabled bounding box check for cloth again, but there's a bug in it (no collisions detected) 2007-10-26 15:13:50 +00:00
Joshua Leung
83eba96db2 Whitespace commit 2007-10-26 11:37:29 +00:00
Daniel Genrich
a61fb914ec Fixed compiling errors + introduced old speedup for springs again 2007-10-26 10:46:40 +00:00
Campbell Barton
ef85f6ea21 ==Python API==
layerMask access for bone and armatures
Window.PoseMode() similar to Window.EditMode()
2007-10-26 08:19:40 +00:00
Daniel Genrich
f59a4c2215 Fixing some goal problem 2007-10-25 23:10:42 +00:00
Daniel Genrich
096a1e87fc Fixed all known crashers, still have to verify a few things, and compiling works on gxx too, now 2007-10-25 22:09:06 +00:00
Daniel Genrich
f310214cc5 reverted part of cloth.c and modifier.c back to old code before switch to use "deform_only" modifier (not tested, needs cleanup but compiles) 2007-10-25 21:17:55 +00:00
Campbell Barton
fd98d38672 fix for valgrind warning - strcpy was trying to copy to/from the same value (aparently this can corrupt the value in some cases)
Fixed problem where hidden curve handles could still be transformed.
2007-10-25 20:30:18 +00:00
Daniel Genrich
f2cbe4e76b svn merge -r 12382:12391 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2007-10-25 16:42:17 +00:00
Campbell Barton
5007d95572 ==Curve Editing==
Curve select lasso and border didnt work with hide handles enabled.

Hiding handles was using the scene->selectmode variable, but looking at this now, I see there are places where selectmode is compared with 
SCE_SELECT_VERTEX, EDGE, FACE etc. as well as being.
Better to use a global flag, same as G_DRAWFACES.
This is not good since anyone using this in the few days will have an invalid selectmode variable. simple way to fix is to change modes, so do_versions shouldnt be needed.
2007-10-25 15:23:52 +00:00
Brecht Van Lommel
a9590ffaa7 Fix for pole target commit, broke blenderplayer compile. 2007-10-25 15:19:06 +00:00
Campbell Barton
86b38473a1 checkers being drawn as many glRects is slow when zoomed in, use
glPolygonStipple draw checkers.
2007-10-25 09:37:52 +00:00
Campbell Barton
cbcaa31909 ==UV/Image Window==
nice alpha grid drawing. dont follow image.
2007-10-24 21:51:49 +00:00
Martin Poirier
16637204fd [#7531] Linked Flat Faces doesn't work anymore
Modifier checks weren't done properly, so it fell into edge_flip instead.
2007-10-24 19:25:34 +00:00
Campbell Barton
6c54cd87ce * Changing images in the UV view didnt work properly - reported as bug 7467 (own error, broke on UV in editmode conversion)
* when setting the face, images with alpha's will set the texface's alpha option. 
* added a draw even to redraw view3d and uv/image view - so the Draw Faces button redraws properly.
* made a macro for checking if the object will draw with textures
* textured meshes in editmode only draw a selected face overlay (otherwise the entire mesh would get a plue tint wich isnt 
nice for viewing textures), the selected highlight is still there, this is how Face/UV mode looked.
* Alpha clipping STILL had a case where it wasnt disabled and the interface had its alpha clipped, this should be fixed now.
2007-10-24 18:58:26 +00:00
Daniel Genrich
41b1505f83 svn merge -r 12347:12382 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2007-10-24 17:20:53 +00:00
Daniel Genrich
916cd17778 Fixed some bugs in bounding volumes, still some crasher in new cloth modifier 2007-10-24 17:13:13 +00:00
Brecht Van Lommel
30be716fc8 Pole Target for IK
==================

This adds an extra target to the IK solver constraint to define the
roll of the IK chain.

http://www.blender.org/development/current-projects/changes-since-244/inverse-kinematics/

Also fixes a crashes using ctrl+I to set an IK constraint on a bone
due to the recent constraints refactor.
2007-10-24 14:58:31 +00:00
Campbell Barton
7922496183 ==Sequencer==
added an option to reload selected strip data (Alt+R - same as reloading images in the imaeg 
viewer)
made the sequencer max memory limit 16gig for 64bit's.
2007-10-24 13:12:07 +00:00
Matt Ebb
a9110ee033 * Adaptive QMC AO feature - "Adapt from speed vectors"
This is a new feature that can make using AO a lot more attractive when rendering 
animations with vector blur. It uses the speed vector info calculated in the 'Vec' 
speed vector pass, in order to reduce AO samples where pixels are moving more 
quickly. There's not much point calculating all those AO samples when the result is 
going to be smeared anyway, so you can save a bit of render time by doing 
a more noisy render in those areas.


You can use this with a new slider in the Adaptive QMC settings 'Adapt Vec'. The 
higher the value, the more aggressively it will reduce samples. 0.0 means no 
reduction, and 1.0 reduces one sample per pixel of average displacement for that 
pixel. 0.25 or so generally gives decent results, but it depends on how fast things 
are moving.

Here's a demo (compare the final blurred result, and render times):
http://mke3.net/blender/devel/raytracing/adapt_speed_off2.jpg
http://mke3.net/blender/devel/raytracing/adapt_speed_on2.jpg

And a less contrived example, a short clip from macouno's 'petunia' bconf animation:
http://mke3.net/blender/devel/raytracing/petunia-adaptvec-noblur-h264.mov
http://mke3.net/blender/devel/raytracing/petunia-adaptvec-blur-h264.mov
2007-10-24 12:42:08 +00:00
Joshua Leung
2339eacce8 PyConstraints Bugfixes (again!):
Files saved with PyConstraints with multiple targets crashed on load, as the targets didn't actually get saved.
2007-10-24 10:03:19 +00:00
Campbell Barton
05768a38e5 ==Image Stamp - Patch by GSR==
When using non opaque background, some overlap lines appear
due to filling some pixel lines twice. Before it did not matter
as only opaque bg was allowed, and it even compacted the text
a bit. The fix spreads a bit the lines to overcome the issue.
As a plus no text should touch the top edge ever (slashes did,
for example).

Compare:
http://www.infernal-iceberg.com/blender/stamp-alpha-overlap.png
http://www.infernal-iceberg.com/blender/stamp-alpha-cleanup.png
2007-10-24 08:45:23 +00:00
Campbell Barton
94dfb616a9 Patch by GSR #7628, I also added alpha for text background.
The list of changes (some are fixes):
- Properly horizontally centered tags in all fields (bug?).
- File area does not have trailing space and has leading "File " at
start instead (probably a bug).
- Small separation between to time related fields, space saving.
- Removed colons, for consistency and space saving again.
- Frame field is zero aligned for higher visual stability.
- Marker name shows a rarer name, "<none>" (using <> is typical for cases
in which there is nothing: <none>, <empty>, <blank>, etc).
- Top area for misc info that can be really long (file, note and render date).
- Bottom area for more constantly changing but short ones (marker, SMPTE,
frame, camera and scene).
- Only render date moves a line (when note field is not used), and frame one
moves if no SMPTE (still in same line, so no big jump), for extra visual
stability (marker is fixed, assuming most people would show frame and or
SMPTE).
- ISO 8601 date format for render date, localization independant.

Comparision images:
http://www.infernal-iceberg.com/blender/stamp-original.png
http://www.infernal-iceberg.com/blender/stamp-cleanup.png
2007-10-23 22:51:50 +00:00
Daniel Genrich
8bca9e5977 Another WIP commit. Building up bounding volume API 2007-10-23 22:38:07 +00:00
Campbell Barton
5b0a79c7c7 bug fix, when opening blender with a file (by double clicking or from the command line) - the initial undo state would be set to the default scene.
So holding Ctrl+Z would go back to the default .B.blend rather then the file that the user opened.
2007-10-23 21:31:59 +00:00
Martin Poirier
7fc1297b3c Unwrap menu (ukey) only in MESH edit mode, not all edit mode. 2007-10-23 19:57:41 +00:00
Campbell Barton
8b5de20512 patch from gensher - UV menu from the header 2007-10-23 19:47:30 +00:00
Campbell Barton
298707e5f6 made color generated strips work like single image strips - no center frame limitation 2007-10-23 19:30:22 +00:00
Campbell Barton
6210fe5ad6 made drawing curve handles in the 3d view optional - this is much nicer for editing curves with Automatic handles so you dont select a handle by mistake and change its type. 2007-10-23 18:56:43 +00:00
Campbell Barton
1362b210c6 automerge wasnt maintaining totverts (bug #7608) 2007-10-23 15:25:59 +00:00
Joilnen Leite
96a7997a6a normal size of vertice when active 2007-10-23 10:49:47 +00:00
Joshua Leung
535deca633 More constraints bugfixes:
* Fixed crash that occurs when using an unknown constraint type or a Null constraint - missing NULL check
* ClampTo constraint now draws ok again
* Null constraints now get drawn in the stack again
2007-10-23 10:16:46 +00:00
Joshua Leung
cf8032f315 == PyConstraints - Now working again ==
I've finally traced down the causes of several of the bugs which caused PyConstraints to work incorrectly (or not at all).

* Freeing is now done using BLI_freelistN inside the pycon_free function, instead of looping through the targets ourselves. This fixes all of those Memblock free: pointer not in list errors.
* BPY_pyconstraint_update now correctly creates/frees the constraint's targets as needed. Previously, it was creating/removing the wrong number of targets. Also, pyconstraints no longer get disabled when using armatures (not bones)
* The panel drawing was also not working right, as there were still some offset issues.
2007-10-23 08:23:57 +00:00
Joshua Leung
bf68055b93 Compiler warnings silencing - mostly uninitialised vars 2007-10-23 06:24:29 +00:00
Matt Ebb
00237a08e7 * Fix for bug #7633: SSS makes QMC crash
This occurred when using qmc shadows, full OSA, and sss - it was 
assuming full OSA was being used, even when (during the SSS prepass) 
osa is set to 0.

Fixed by tightening up the checks for full OSA.
2007-10-23 03:13:34 +00:00
Matt Ebb
c1b9b32b8b * Brought eeshlo's halton_sample fix into trunk 2007-10-23 01:52:26 +00:00
Mal Duffin
9e0cecc337 ConvertToMesh for text ( and possibly curves ) was generating the wrong normals - the fact that the generated model was being set to double sided helped hide this.
To test for this in Blender, just add text, TAB out of edit mode, then convert to mesh ( ALT+C ), and press P for the game engine.  Alternatively select Textured Draw Mode.  You'll notice that the text is only visible from the back.  This patch reverses this, to be more correct.

Based on discussions on IRC, I'm now trying to fix another aspect of the extrude code - the fact that the faces at the front and back of the extruded curve face the same way ( ie one of them will be wrong ).  I'll keep working on this, but if someone can help out, feel free!
2007-10-23 00:02:29 +00:00
Daniel Genrich
0a0b976b41 svn merge -r 12294:12347 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2007-10-22 23:05:09 +00:00
Daniel Genrich
5a6ffd8441 WIP commit, (just in case my HD breaks down). Don't expect anything to work. Code crashes and sim doesn't work ;) 2007-10-22 22:50:32 +00:00
Chris Want
03650fcf0b == CMake ==
Fix by Stéphane SOPPERA to find bmfont includes.
2007-10-22 20:54:19 +00:00
Hamed Zaghaghi
21eb3e11e0 2d-Filters feature and actuators. 2007-10-22 20:24:26 +00:00
Campbell Barton
2dee6b04c7 stub added by Hamed Zaghaghi in the ge branch, (fix own error) 2007-10-22 16:16:16 +00:00
Ton Roosendaal
0361b80525 Missing check for constraint target (ct->tar) caused crash.
Caused in Joshua's work on constraint, committed yesterday.
2007-10-22 14:30:40 +00:00
Campbell Barton
81effa9e2f small changes suggested by ton ans gsr 2007-10-22 13:26:47 +00:00
Campbell Barton
2dcc81071b dna error was not being set, allowing build to finish with DNA
allignment errors.
2007-10-22 11:50:05 +00:00
Joshua Leung
e0668e9d22 == Constraints Bugfixes ==
* Removed the old get_con_subtarget_name function and fixed the places that used it. This was only suitable for single-target constraints.

* PyConstraints interface drawing should now no longer draw multiple-target fields on top of each other

* Removed double call to BPY_pyconstraint_update when the Update button was clicked. I found this while debugging why PyConstraints didn't seem to be working yet...
2007-10-22 10:49:34 +00:00
Joshua Leung
cfd9d390fc Several fixes:
* DNA_action_types.h - fixes for typos that broke compiling (own error)

* transform.c - fix for implicit definition of a function (missing header)

* outliner.c - commented out a few unused vars (as a result of constraints refactor)

* editsima.c - fixed uninitialised var warning

* drawview.c - bugfix #7598 load without ui crashes if there is no camera. Patch provided by Daniel Genrich (genscher)
2007-10-22 06:28:39 +00:00