Commit Graph

47594 Commits

Author SHA1 Message Date
Ton Roosendaal
c2edcd4879 Siggraph show commit!
- pending commit for OSX intel systems, with intel graphics. These now call
  an extra swapbuffers after glFlush(). Code is ifdeffed, and doesnt affect
  other systems.

- show-off commit: option to have transparent nodes over the composite
  result. Only draws Image for active Viewer Node now, and image doesnt
  translate nor zoom (which isnt bad though).
  Set in themes the alpha color of "node backdrop" to make nodes
  transparent.
2006-07-31 19:23:42 +00:00
Brecht Van Lommel
e168d67b32 ImagePaint Refactoring:
- ImagePaint now uses ImBuf directly, and the rect blending functions
  were moved into the imbuf module.
- The brush spacing, timing and sampling was abstracted into brush.c, for
  later reuse in other paint modes.

Float ImagePaint support.

Textured Brushes:
- Only the first texture channel is used now.
- Options for size and offset should be added, but need to find some space
  in the panel, or add a second one ..
2006-07-31 15:53:03 +00:00
Campbell Barton
6a48654cce Added a octree implimentation for doing fast locational vertex lookups. 2006-07-31 13:28:00 +00:00
Campbell Barton
00a6a79899 added the texmesh to Mesh property to mesh. 2006-07-31 12:57:46 +00:00
Matt Ebb
7bd41a99e0 BIF_GetStringWidth() returned garbage when given a 0 length string, which was causing 2006-07-31 10:49:35 +00:00
Kent Mein
1de0248f6f fixed a typo that must have slipped in ;)
Kent
2006-07-31 04:54:10 +00:00
Matt Ebb
4f7a5fd641 * Made the proportional edit circle draw inverted against
the background - it was very difficult to see with a muted
grid theme colour.
2006-07-31 02:48:45 +00:00
Matt Ebb
3650abf328 A couple of compositing nodes:
* Combine RGBA
Basically the opposite of separate RGBA, brings 4 value channels into a single
RGBA image). Has interesting possibilities for reordering channels, when used
with separate RGBA!

* Dilate/Erode
Originally written by Brecht van Lommel, with some minor modifications and
tweaking by myself. Positive distances dilate, negative distances erode.

* I also added the 'value' field to the hue/saturation node. Minimal extra cost,
and can be handy.
2006-07-31 02:24:35 +00:00
Campbell Barton
cac265f7b6 faces faces added had vertex colors set to black.
use default_tface(tface) on all extended faces when tfaces exist.
2006-07-28 07:08:27 +00:00
Campbell Barton
eced755afe added a slot in the uv/image's "Image" menu for pyscripts. 2006-07-28 02:51:44 +00:00
Brecht Van Lommel
f893d950a1 Image Paint:
- Code for brush spacing and timing was rewritten, making spacing more even.
  Example: http://users.pandora.be/blendix/brush_spacing.jpg
- Instead of Stepsize for regular brushes and Flow for airbrushes, there is
  now Spacing for both, and Rate for airbrushes.
- Airbrush now works more like it does in the Gimp now, by maintaining the
  spacing even if the brush moves faster than the painting rate.

- Some preparations to make brushes work in texture paint mode.
2006-07-28 00:56:35 +00:00
Campbell Barton
e360cbf62b Updated epydocs to reflect changes in the API
Also made links to wikipedia pages explaining what a these functions do mathamaticaly
2006-07-27 12:23:08 +00:00
Campbell Barton
403b62fbcf matrix .inverted() and .transposed() didnt work because the matrix was wrongly copied.
2 more memory leaks in matrix multiplication fixed.
2006-07-27 02:33:54 +00:00
Campbell Barton
b227c98c44 Addition to Mathutils
vec.normalized()
 mat.inverted()
 mat.transposed()
 made vec/float possible

 normalize/invert/transpose now return None because they modify the data in place.
 use the ...(ed) versions to return a modified copy.


Fixed Memory leaks from not decreffing PyFloat_AS_DOUBLE from these python functions...
(found when testing above functions)
  ob.rbMass
  ob.rbRadius
  matrix.determinant()
  quat*float
  vec*float
  matrix.transpose()
  EXPP_setModuleConstant

Checked all instances of PyFloat_AS_DOUBLE so I dont think there are any mroe leaks there.
2006-07-27 01:18:21 +00:00
Brecht Van Lommel
4ee3515bf1 Brush Datablock:
- Added a new Brush datablock, only used by image paint, but intended
  to be used in texture paint, vertex paint, weight paint and sculpt
  mode also.
- Being a datablock, these brushes can be saved, appended and linked.
  They have a fake user by default, to make sure they are saved even if
  not selected.

Image Painting:

- Replaced the img module with C code in imagepaint.c
- Airbrush is no longer a separate tool, but rather an option that can
  be used for soften, smear and clone also.
- Blend modes mix, add, subtract, multiply, darken and lighten have been
  added, code taken directly from vertex paint.

Note to project files maintainers:

- The img module was removed from SCons and Makefiles, and this should
  be done in other build systems also. I'll wait to remove the module
  from cvs, to not break compilation.
2006-07-26 22:29:23 +00:00
Ken Hughes
1df2871f2f ===Python API===
Multiplication of 3D vectors by 4x4 matrices converts the vector to 4D but
did not make the vector homogenous.  Fixing that so the translation part of
the matrix will also be applied.
2006-07-26 12:34:56 +00:00
Matt Ebb
8c8acb793c * Added armature bone subdivide to 3d View menu 2006-07-26 10:40:14 +00:00
Matt Ebb
b111027d5d * Added armature bone subdivide to 3d View menu 2006-07-26 10:33:41 +00:00
Ken Hughes
118125cff8 ===Rendering===
Bugfix #4797: when rendered image could not be saved, do_write_image_or_movie() returned without calling IMB_freeImBuf(ibuf).
2006-07-26 05:03:53 +00:00
Ken Hughes
5618de6e1e ===Python API===
Fix typos in Object epydocs.
2006-07-26 03:06:33 +00:00
Campbell Barton
c4429fb796 Added a note in the object docs about object data and editmode
removed mirror_bone_weights, as it was a double another script, contacted the author and hes ok with it.
2006-07-26 00:41:52 +00:00
Campbell Barton
ad67ad845f Printing the BezTriple was only printing it in 2D, since all curves have a 3d vector, even of its a 2d curve we may as well print 3d all the time. 2006-07-25 15:43:15 +00:00
Ton Roosendaal
ae1160bd4d Updated splash with an 'a'. Also kept it a png this time, after complaints
about blockyness of previous one. :)

(note, file name has .jpg still, this is needed for the splash code to
work, not going to change blender code for it now).
2006-07-23 15:20:03 +00:00
Campbell Barton
fa5ead9ea5 Fixed bullet formatting and explained where some constants were stored (had to look at source to see, so may as well doc) 2006-07-23 15:16:15 +00:00
Ton Roosendaal
662d49f076 Bugfix #4773
The VectorBlur node crashed when it didn't get a RGBA type image as
input (like using Alpha as input). Added typeconversion for it.

Note: the Z input and Vector input are not converted, but checked for.
When an improper type gets connected to these inputs, an error is
printed in console.
2006-07-23 09:54:22 +00:00
Ton Roosendaal
a6b0c136bb Bugfix #4770
When adding a new node in a group, the call to refresh input/output
sockets was called after a compositing update was executed.
Just moved this call 2 lines up.

This also uncommits the fix from Joilnen, the stack pointers in the node
system are *per definition* set. If NULL, it's an indication something
else is wrong.
2006-07-23 09:10:05 +00:00
Ton Roosendaal
a01e81cf7d Bugfix #4699
Missing dependency graph update on establishing a new relationship between
a static particle system and a curve guide, with the pulldown button in the
"Fields and Deflection" panel.
2006-07-23 08:49:19 +00:00
Joilnen Leite
9868544a41 fix for bug #4770
.
2006-07-23 02:56:45 +00:00
Ton Roosendaal
9254c07f6e IRC bugfix (thanks samo!):
The Material buttons copy/paste options (icons) didn't work for node trees.
Code was forgetting to free memory properly.
2006-07-22 17:11:36 +00:00
Campbell Barton
bd8cd6a38c noticed my BVH test import blender was 30meg+ turns out to be
python new action function (M_NLA_NewAction) was making actions with 2 users, so that acrions would never de-allocated,

alloc_libblock alredy assigns a user, so just dont assign another from M_NLA_NewAction.
2006-07-22 14:22:03 +00:00
Ton Roosendaal
bfd9f8e196 Bugfix #4747
Using "Deselect all" pulldown in Node Editor crashed when no nodetree is
visible.

Bugfix #4753

Hotkey SHIFT+P in buttons window started game engine, which it should not.
2006-07-21 11:52:41 +00:00
Nils Thuerey
12a1fc374e - fixed manual viscosity bug (#4733)
- added some more free/copy checks for bug 4094, but
  still not enough
2006-07-20 15:27:55 +00:00
Ton Roosendaal
cebb1f9465 Bugfix #4734
code provided by Stephane Soppera: ImageWindow and Node previews now draw
in correct premul-alpha, eliminating bad black lines in alpha areas.
2006-07-20 11:01:49 +00:00
Ton Roosendaal
0128c401b9 Bugfix #4741
Ancient issue; when you press keypad-0, it should assign the active camera
object to a scene, but this did not happen when that camera was already
assigned to the active 3d view. A rare case, causing 'error no camera' on
a render.
2006-07-20 10:36:55 +00:00
Campbell Barton
60f3a33855 Added a note explaining the poseMatrix space and how to get the worldspace location. 2006-07-20 06:50:23 +00:00
Ton Roosendaal
49bbb326b1 Bugfix #4736
Composite: the Translate Node only worked in some cases (pixel processor
call), and not for:

- filter
- seperate rgba
- conversion of buffer types (value to rgba etc)

Blur still doesn't either, but that code is too optimized to add quick.
Will put on todo for checking on better unification of translations.
2006-07-19 19:46:42 +00:00
Ton Roosendaal
d2f8f51556 Removed leftover SDL include from render module. 2006-07-19 15:39:36 +00:00
Ken Hughes
b85c3fb1de ===Python API===
Bugfix #4728: passing an interator sequence to me.faces.delete() caused a
crash; check explicitly for lists or tuples.
2006-07-19 14:35:22 +00:00
Ton Roosendaal
f4737af504 Bugfix #4724
Actually a bug since dark ages... the code that tries to find the view
correction (zoom) factor for grabbing stored result in a global. With
multiple 3d windows open, with different views, that could result in
wrong correction. Just made the factor a local property in View3D.
2006-07-19 11:28:48 +00:00
Erwin Coumans
fe43c5e6f0 use 'fixedtime/enable all frames' from the blend file 2006-07-19 06:39:11 +00:00
Erwin Coumans
e61189b3c8 accidently replaced initGamePlayerPythonScripting with initGamePythonScripting, causing the gameplayer to crash on all platforms (lack of PyInitialize()... 2006-07-19 05:12:59 +00:00
Ken Hughes
e194ccce5e ===Python API===
Bugfix: using Image.GetCurrent() and image.save() on the "Render Result"
image could result in a segfault since image->ibuf was NULL.  This change
forces ibuf to be created if necessary.

NOTE: the Image API needs additional methods/attributes for image.save() to
really do anything useful.  The image type, quality, etc., don't seem to be
gettable/settable so the resulting image file may not be in the format the
user would like.
2006-07-18 21:02:15 +00:00
Ton Roosendaal
5e58b2762c Second part of bugfix #4715
Re-replaced glFinish back to glFlush, should fix display updates?
2006-07-18 16:49:33 +00:00
Ton Roosendaal
31870bf9a8 Bugfix #4715
After inserting border in entire image, the display update was missing.
2006-07-18 16:42:39 +00:00
Ton Roosendaal
afbe9a7e78 Silly crasher fix:
- set material to "use nodes"
- don't add a material-node yet, but set "Halo" on. Crash!

Added a missing NULL pointer check.
2006-07-18 09:56:14 +00:00
Ken Hughes
a33bd50108 ===Python API===
Bugfix #4690: BonesDict_repr() had a string overflow for really complicated
armatures.  Added a string length check and terminate before overflowing.
2006-07-14 14:48:45 +00:00
Ton Roosendaal
a7b3203e31 New Particle option for Fluids did not work on rendering animation yet.
N_T: the implementation of this feature isn't 100% nice, it currently does
a full recalc on each redraw, and it doesn't work properly unless it is
recalculated for each frame.
2006-07-14 13:44:23 +00:00
Peter Schlaile
cb09f5cda8 == Frameserver ==
Serious bugfix: Make it work on windows (including ESC-Handling)
closes Bug #4477.
2006-07-14 13:32:29 +00:00
Peter Schlaile
224987b0fc == Frameserver ==
(serious) bugfix: make escape handling work in frameserver.
2006-07-13 19:36:38 +00:00
Andrea Weikert
11f70391d2 - fix for [ #4678 ] ALL Blender versions crashes when pasting empty windows clipboard!
quickly sneaked in last minute before release ;)
2006-07-13 17:13:31 +00:00