Commit Graph

5396 Commits

Author SHA1 Message Date
Chris Want
6443269c7d With the holy blessing of guitarGeek: Using smooth on a mesh with a
mirror modifier and the clipping option now preserves verts on the
plane(s) of symmetry (i.e., those verts are smoothed, then projected
back to the plane(s) of symmetry).
2005-11-23 14:37:48 +00:00
Toni Alatalo
590e1c1e4a uh should have read the patch better, i did test it and it works :) 2005-11-23 14:31:47 +00:00
Toni Alatalo
d40b4dbaf8 adding libtiff info to scons, applying http://vidar.gimp.org/tmp/scons-linux.diff 2005-11-23 14:28:40 +00:00
Matt Ebb
6d8a7d7819 * Attempting to fix scons for mac os x. It seems to be correct, if I've made a
mistake, someone can please help fix, just trying to get things to compile here
in the studio. You'll need to delete config.opts
2005-11-23 13:44:58 +00:00
Nils Thuerey
1b6482771e - solver now supports animated time steps, gravity
and viscosity, an example can be found here:
  http://www10.informatik.uni-erlangen.de/~sinithue/temp/fluid_timeanim.mpg
- for simulation time animation the time IPO of the object is currently used,
  for all three there should probably be new ipos in the fluidsim struct
- started the API in elbeem.cpp, to get rid of parser & export
  via HD (it's not yet used)
2005-11-23 12:51:07 +00:00
Nils Thuerey
5c56ca1180 - changed DerivedMesh integration, the fluidsim meshes now
replace the original one. so modifiers now work with them
  (apply modifier, or edit mode still work on original mesh).
  this should fix the three fluidsim bugs in the tracker.
- fixed stupid makesdna problem (writing "char string[160+80]" isnt
  a good idea :)
- changed GUI a bit, now displays an estimate of the required memory,
  there's still a problem with redrawing (currently relies on a call
  to the derived mesh generation)
- the fluidsim struct changed to store the bounding box,
  and the current loaded surface mesh
- temporary simulation files are now removed if env. var.
  BLENDER_DELETEELBEEMFILES is not set or zero
- fluidsimSettingsFree now gets properly called when freeing an object
2005-11-23 12:49:22 +00:00
Nils Thuerey
c35a8fe463 - added dynlibtiff.c and tiff.c for compilation 2005-11-23 08:50:57 +00:00
Jean-Luc Peurière
06a496254c nan definition for precompiled libtif 2005-11-23 01:13:50 +00:00
Kent Mein
576812004c updated the python script to create a good c file. Thanks intrr.
Kent
2005-11-22 20:45:36 +00:00
Alexander Ewering
52a13fb71b Made the envvar stuff work and slightly simplified it ;-) 2005-11-22 20:41:15 +00:00
Kent Mein
d234f611f5 got rid of snprintf.... Replaced with MEM_mallocN and friends...
Kent
2005-11-22 20:24:28 +00:00
Joseph Gilbert
9664b7924f - accidentally removed a macro for returning Py_None for python 2.3 2005-11-22 19:34:28 +00:00
Joseph Gilbert
fe29a3c64b A few more python 2.4 macros to covert to 2.3 compatible code. 2005-11-22 19:23:26 +00:00
Joseph Gilbert
d9a4559335 Little bit of testing code snuck in there. 2005-11-22 19:14:10 +00:00
Joseph Gilbert
3489fdcd06 Fix for a python boolean macro that shouldn't be there. 2005-11-22 19:12:46 +00:00
Kent Mein
00f266c651 This is a modified version of patch #2995
To enable dynamic tiff support.
I had to fix some of the logic in the fileselect box for icons,
I also expanded the patch to look in various default locations for
a dynamic libtiff.so/libtiff.dll
and look at the env variable BF_TIFF_LIB if it can't find it automatically.
If unable to load the library it prints a message about setting BF_TIFF_LIB
to the console.

I haven't been able to test it on a lot of platforms but hopefully it
will just work ;)  I added the files to scons but have not had a chance to
test that as well.

Kent
2005-11-22 18:50:03 +00:00
Joseph Gilbert
b63e26e109 Added some equvalency tests for the other math objects
* ==, != are defined for matrix, quat, euler.
2005-11-22 17:59:49 +00:00
Ton Roosendaal
6c619b235c Another bugreport, this time Basse: in NLA a position could sometimes be
set whilst the actual time was 1 frame after the strip. Appeared to be
a rounding error that didnt show in OSX.

Previously I added a threshold, to make sure strips are included when the
current frame is exactly on the end. That threshold now is smaller, and
I also made the fmod() to be done only on repeating strips.
2005-11-22 17:58:10 +00:00
Ton Roosendaal
17c26f4ccb Matt bugreport; stride bone caused character to float away while moving
a key in action window.

- Found bad constructed loop, it was redrawing and recalculating things
  even when key didnt move
- Depsgraph should also recalc object itself

Same code appeared in NLA editor, both fixed.
2005-11-22 16:35:21 +00:00
Ton Roosendaal
425fb98a05 Crasher bug from andy: loading a file with "No UI" crashes when that file
has no camera, and current project has camera view.
Found out the new camera decoration code needs prevention from reading
data from non-camera objects too.
2005-11-22 16:14:07 +00:00
Ton Roosendaal
dd57ec03a1 Removed clipping conventions for setting prefsize in Blender. Meaning, for
dual monitors you can start blender on a negative starting size too, like
blender -p -1280 0 1920 1280
2005-11-22 15:58:09 +00:00
Matt Ebb
3cd17c637a * LSCM live transform is finally here!
This is a combined effort from Jens, Ton who finished the code here on my machine, and myself putting in the little menu toggle and committing :).

Turn it on and off in the UV/Image window menu UVs -> LSCM Live Transform. It recalculates the LSCM within the transform loop when you're transforming pinned vertices, so it gives realtime feedback - a real time saver! Note: this is much more powerful than proportional edit, since it's properly calculating LSCM using the correct edge angles, etc.

I recorded a quicky demo video here: http://orange.blender.org/wp-content/themes/orange/images/media/lscm_live.mov (quicktime animation codec)
2005-11-22 15:00:32 +00:00
Toni Alatalo
af2042d219 new attempt at the pyboolean macro, 'cause that style did not work in one line if/elses - this one is from the py 2.4 boolops headers. 2005-11-22 11:25:23 +00:00
Toni Alatalo
3caeea233d trying to fix new armature compile probs on macs (w/ py 2.3 probably) by adding the 2.4 macros for returning python booleans. 2005-11-22 11:18:34 +00:00
Jens Ole Wund
2e71e17873 MSVC6 project file service :)
adding new files to project IMB_radiance_hdr.h radiance_hdr.c
2005-11-21 23:26:44 +00:00
Ton Roosendaal
71e47b31c6 Bugfix #2841
Ancient issue with Image bumpmap & orientation... this report was about
UV textures, which flipped bump direction when UV coordinates rotate.
So... time to dive deeper into it, and I found a very bad old construction
in the way image textures handled bump normals. Instead of using the
correct dx,dy vectors it was calculating the boundbox for it, and applied
it as such (loosing negative direction for the dx or dy that way).

Anyhoo! To make a long story short; the weird "correct Nor Map" option
now can be removed... but requires careful testing!

Here's renders from file I got from env, 239 means old and 240 is this cvs.

http://www.blender.org/bf/dino239.jpg
http://www.blender.org/bf/dino240.jpg

http://www.blender.org/bf/dino239a.jpg
http://www.blender.org/bf/dino240a.jpg

Note the much finer detail, and the more consistant normals direction.
No, go render testing dudes!
2005-11-21 22:47:23 +00:00
Joseph Gilbert
280375ab2c - editng options for armature added to AramtureType 2005-11-21 22:21:46 +00:00
Joseph Gilbert
838fb77159 - drawtypes added to ArmatureType
* uses module constants added to Armature.c
2005-11-21 21:26:09 +00:00
Joseph Gilbert
ac80b4ba11 * added some display options to the ArmatureType class 2005-11-21 20:54:29 +00:00
Joseph Gilbert
4d7ca2931c * adds deformation properties to armatureType 2005-11-21 20:22:08 +00:00
Joseph Gilbert
d5f1fc13b7 * [ #3376 ] Blender.Mathutils.Matrix().toQuat() broken
- a 0-degree rotation gives a abitrary axis of 1,0,0 not 0,0,0
2005-11-21 19:42:20 +00:00
Joseph Gilbert
e9ea05815d Radiance HDR image file includes 2005-11-21 19:16:52 +00:00
Kent Mein
46875a6400 Changed powf to pow. (For Solaris)
Kent
2005-11-21 18:03:42 +00:00
Ton Roosendaal
5fa3d74d3c Bugfix #3153
Subdivide didn't correctly calculate new UV or vertexcolor yet.
2005-11-21 17:48:20 +00:00
Ton Roosendaal
125eaed808 Fix #3064
Assigning a Hook in Mesh editmode to new created vertices crashed on
exit editmode.
2005-11-21 17:06:16 +00:00
Ton Roosendaal
1568ebcd5f Bugfix #3346
Decimate modifier wasn't resistant to decimating below 3 vertices. It now
detects so, and doesn't add a face or edges then.
2005-11-21 16:21:03 +00:00
Ton Roosendaal
aedaba8223 Bugfix #3434
The OpenGL preview anim render calculated the camera matrix before
calling the animation updates, causing a lag when camera was parented.
2005-11-21 15:59:01 +00:00
Joseph Gilbert
9607fac3a5 A few more doc updates 2005-11-21 15:44:59 +00:00
Joseph Gilbert
0e62c58b08 Some updates to armature documentation. 2005-11-21 15:36:36 +00:00
Ton Roosendaal
256b878b50 Colorband input for ramp shaders need to be clamped for (0-1)... 2005-11-21 15:21:55 +00:00
Ton Roosendaal
8480731e96 Rui Campos found a glitch in drawing particles, these were accidentally
still drawing all (zero sized) particles with "disp" option set to <100.

Fast graphics card show the issue less evident, but especially with a
giant amount of particles (100k) very much noticable. Thanks!
2005-11-21 15:08:02 +00:00
Ton Roosendaal
fb352bd8da Bugfix #3431
Too strict checking in depsgraph code missed a dependency case; this
specifically when objects have own motion (ipo) and are being deformed
by a parent.
This worked, unless the parent also had own motion (ipo or constraint)...

Also: the DAG_add_relation() added multiple relationships for object pairs,
now they "Or" the relationship description flag. Makes it a tad faster
again :)
2005-11-21 12:14:13 +00:00
Ton Roosendaal
d3bb02013f Bugfix #3426
Object duplicators didn't draw when not selected. Was one 'else' to many in
the code!

Also noticed that duplicators couldn't be transformed when they have Ipos,
was an improper call to do_ipo in duplicator code... also made sure the
transformation info in the object is stored/restored before duplicating.
2005-11-21 11:30:53 +00:00
Ton Roosendaal
d34ab0755e Bugfix #3430
Using Proportional edit on a Lattice with option "Outside" crashed.
Was caused by not checking for the hide flag while counting amount
of transformed elements in Lattice.
2005-11-21 11:15:46 +00:00
Ton Roosendaal
ddba16a752 Bugfix #3422
When using 'protection flags' for XYZ rotations, inserting keys in
Poses resulted in wrong interpolations (doing -270 degrees instead of
+90 for example). This caused by converting quaternion to euler and
back...
Solved it by correcting the quaternion in the end for the rotation
sign of the original quaternion.

NOTE: Pose animators should be aware that inserting rotations keys of
180 degrees or larger will still make the key rotate along the shortest
path.
2005-11-21 10:45:58 +00:00
Ton Roosendaal
93338b894a New textbutton didn't accept buttons with Object names (or Mesh, etc), the
socalled ID-pointer buttons.
It appeared that the but->pos, for cursor, was calculated wrong. :)
2005-11-20 23:06:52 +00:00
Ton Roosendaal
5c7ec20421 Bugfix #3423
Extrude faces assigned arbitrary colors to the new faces when an edge
shared 2 faces with different colors. Now only assigns colors for the
selected faces.
2005-11-20 22:12:18 +00:00
Ton Roosendaal
449ac1b296 TAB cycling in number/text buttons. Was in tuhopuu too, but code needed
a good revision :)

This now cycles through all number/text buttons in a Panel. At the moment
it skips buttons with tab completion (object names, bones, constraints)
Press SHIFT+TAB to cycle backwards (any modifier will do btw).
2005-11-20 21:29:09 +00:00
Ken Hughes
e7d69ae297 -- change lastused in struct Image from long to int (caused problems with
SDNA on 64-bit platforms)
2005-11-20 20:19:48 +00:00
Matt Ebb
ef0f60b8f8 * Updated the lamp buttons to force redraw when changing the Spot Blur slider 2005-11-20 20:19:27 +00:00