Commit Graph

120055 Commits

Author SHA1 Message Date
Jiri Hnidek
8a59480289 - last time commit. It fixes bug reported by Kent Mein. Polygonisation of Metaball was broken. Test file:
http://www.cs.umn.edu/~mein/blender/blend/metaball.blend
    http://www.cs.umn.edu/~mein/blender/blend/metaball.png

 - it should fill octal tree much more better ... polygonisation of MetaBalls is faster little bit now too
 - stiffness limit is 10.0
2005-05-30 06:37:33 +00:00
Ton Roosendaal
c073febf08 After long debate on IRC we came up with the ultimate name for the
former "RKL" button and later renamed to "Precision": "Error Limit" :)

(Softbody yes)
2005-05-30 00:17:08 +00:00
Ton Roosendaal
b775055107 Tinsy wee buggie; added 'extrude vertices only' to menu that appears when
only 1 face is selected.
2005-05-29 23:40:35 +00:00
Ton Roosendaal
1d7a8cf86f Two more fixes in Transform:
- Ipokeys didnt have 'selected' flag, so were not included in center
  calculus
- Multiple keys transform didn't apply this center even...

ALso took extra work time to add credits in splash. Frédéric Van der Essen!
2005-05-29 23:21:56 +00:00
Ton Roosendaal
f26e4ca150 While making TransData, with mixed selection of objects and ipokeys, the
transdata pointers were increased wrong, creating empty gaps (NULL)
2005-05-29 22:39:49 +00:00
Ton Roosendaal
b1bd69c6f1 Changed 2 mallocs for object transdata to calloc. TransData->flag was
undefined... and somewhere else in code it thought there was a quaternion.

No idea why these mallocs... just asking for troubles!
2005-05-29 22:12:12 +00:00
Ton Roosendaal
d73f051bda Dependency variables in scenes were initialized in do_versions, instad of
in the scene reading function. Caused 2.37 saved files to crash.
2005-05-29 19:41:03 +00:00
Ton Roosendaal
73ebc76fd5 2.37 Version code, new Splash! 2005-05-29 19:12:44 +00:00
Ton Roosendaal
4de68e5796 Default .B.blend starts with bitmap fonts again. 2005-05-29 18:44:42 +00:00
Ton Roosendaal
c107de5fad Texture font draw error in Outliner, only happens when a buttons window
is in a screen in location above outliner.
Was a missing BIF_SetScale()... this is confusing, we now have three
font systems mixed, which each own peculiarities and settings. Should be
cleaned!
2005-05-29 18:36:50 +00:00
Ton Roosendaal
dabf165c33 Reshuffled "Particle Interaction" Panel. Separated in left hand for
forces, right hand for deflection.
2005-05-29 16:52:39 +00:00
Ton Roosendaal
9d38f4ab38 TimeLine playback settings were always initialized to default, for 2.36
version files. Made test a bit cumbersome.
2005-05-29 11:53:55 +00:00
Ton Roosendaal
90d7da7b27 Tinsy cleanup of combo drawing Manipulators:
- translate+scale : arrow at end of axis
- translate+rotate: draws axis lines now
- while translate: draws the axis line too

And: GCC was nagging about Martin's precious code!
transform_constraints.c:745: warning: suggest parentheses around comparison
in operand of &

Apparently the if(a & b == c) is undefined? Whatever!
2005-05-29 11:20:49 +00:00
Ton Roosendaal
66d5a4dd63 The TOG3 button (material mapping buttons) didn't get correct color set...
Was accidentally not visible, until we added texture drawing for fonts.
2005-05-29 10:59:50 +00:00
Ton Roosendaal
dd79f7c8a8 Bug fix #2638
More derivedmesh culling confusement... it should be enabled when double-
sided shaded lighting is used...
2005-05-29 10:47:36 +00:00
Ton Roosendaal
c7b19d5066 Bug fix #2640
Somehow displacement got negated in my commit of april 12. Regression file
showed it, thanks efbie for finding it! :)
2005-05-29 10:44:52 +00:00
Martin Poirier
0bd69e6616 Crash Fix: Mirror Tool crashed when there was no selection (stupid lack of check). 2005-05-29 09:57:51 +00:00
Martin Poirier
fad9e3b979 Behavior consistency: Make Push-Pull and Shrink-Fatten work in the same way regarding what happens when you move the mouse toward or away from you. 2005-05-29 09:50:10 +00:00
Martin Poirier
14a3166685 Push/Pull didn't do Lock Constraint correctly. Fixed.
Also added an isLockConstraint function that tells if the current constraint is a locking constraint or not.
2005-05-29 09:21:34 +00:00
Matt Ebb
eeb6adffd3 * Last minute commit, updating the view3d menus for the new
transform stuff. All transformation menu items are now in the
'Transform' sub-menu. Added To Sphere and Push/Pull, and items
like Shear, Warp, etc. have been moved to there from the
top-level Mesh/Curve/etc menus, since they are now available in
object mode too.
2005-05-29 04:18:59 +00:00
Ton Roosendaal
8dfc6a506c For texture fonts, the rasterpos has to be delivered as BIF_RasterPos().
This smells to me like temporal code... will study it. For now this
commit fixes error in header draw of fileselect.
2005-05-28 16:11:11 +00:00
Ton Roosendaal
ad9ee622e8 Bug fix #2636
New AA font drawing (using texture) didn't get initialized on startup,
only when button was pressed. Confusing code... we need to remove all
#ifdefs here once.
2005-05-28 13:22:09 +00:00
Ton Roosendaal
eeefc10bf5 #bug 2633
Keep fighting with proper normal calculus on extrudes... now the 'add grid'
had wrong normals again (alternating in rows).
2005-05-28 12:59:48 +00:00
Ton Roosendaal
61e22e99d4 Disabled GL_CULL_FACE in mesh drawing for vertex colors, weight paint.
This made faces hidden with normals pointing inside. Not nice for paint...
2005-05-28 12:23:40 +00:00
Alfredo de Greef
5b014b0c9c Some last minute tweaks, for world background image, 'Hori' must now be
enabled.
And when using Blender's AO parameters, the lowest sample number
when no cache is used is 4.
2005-05-28 02:50:55 +00:00
Ton Roosendaal
bdc928b298 Oops, I've must had a weak moment... turntable is OFF again in the .B.blend
The trackball method is for real 3d work.... turntable for woossies! :)
2005-05-27 19:19:17 +00:00
Ton Roosendaal
5dedd9306b Colorband didn't correctly compute with 2 entries being exactly on the
same spot. Was division by zero here... coded nice exception catching.

BTW: worked before june 2004... was part of commit for Ramp Shading.
2005-05-27 19:02:39 +00:00
Ton Roosendaal
9a2efcd641 Updated the .B.blend. Nothing radical, that's for the next release, when
tuho work gets merged.

- Manipulators on (already was though)
- Grid/floor size 60 parts (was 32)
- Audio window replaced with TimeLine, added TimeLine in Sequencer
- Editmode draw edge/faces option on
- Turntable view rotate (under protest! :)
- 2nd theme is the dark/orange theme by Andy
- added 5th screen for python (textwindow, script buttons)
- OSA, Ray on
- Render resol 800x600
- higher default octree level
- added outliner in Animation screen
- renamed default Cube to be "Cube" (not sphere)
- default lamp has 'ray' on.
- when you turn default lamp to shadowbuf-spot, clipstart is OK

It starts with the 'modeling' screen, single window.
2005-05-27 18:09:10 +00:00
Alfredo de Greef
cf8d9fbb10 Added some backward compatibility with old yafray blendershader. Because of missing
parameters the material preset menu won't be as useful. Both glass presets will look the same
because there is no 'filter' parameter in the old yafray for instance.
So using the new Blender version with an old yafray version should work a bit better,
though the other way around, using the new yafray with an old blender version, will generally
not work as well.

I added a few extra things. In 'yafray' panel re-arranged some buttons, and added a new
button 'Clamp RGB'. This button will be enabled by default and helps to improve AA on
high contrast edges in the image. When using bokeh however, it is best to switch this off,
otherwise lens shaped highlights will be quite a bit less visible.

Changed the 'extinction' parameter name to the probably more correct term 'absorption',
though mathematically it works out the same. Also changed the behaviour of this color,
it no longer specifies a color that will be removed as I wrote in the previous commit,
but instead the actual color at one (blender) unit of distance. The 'Ds' (distance scale)
button below the color sliders controls the scaling of this unit distance.
What this means is that if you take the standard blender cube, which covers two units of
distance by default, setting the distance scale button to 2.0 will make sure that the color
you specified is exactly that color at that distance (provided the base color itself is white
of course, or 'filter' is 0, otherwise it will be filtered by the base color too).
Beyond this distance the color will get darker.

The glow option for point/soft/sphere lights has a new parameter 'GloOfs', or glow offset.
Setting this to a higher value then 0 will soften the central peak of the glow.

Another unreported bug fix: For xml export, when yafray failed to render the xml file
for some unknown reason, or because of other problems, the export code would still load
the previously rendered image, this causes problems however if the image resolution is
not the same as the current Blender buffer, and so could cause memory corruption or crashes.
This is now taken into account.

World image backgrounds now use the blender mapping settings as well, but only the
'AngMap', 'Sphere' and 'Tube' settings. But in yafray those last two, unlike Blender, cover
the whole view, not just the upper half, so is not really fully compatible with yafray.
So now you have to set one of these buttons too when loading a hdr lightprobe image.
btw, something I forgot to mention in previous commits is that the exposure control using
the texture brightness slider is no longer restricted to integer values. It is now a
floating point value, so you're not restricted to the 0 1 and 2 slider positions anymore,
anything in between will work too.

And finally, display updating is now more like Blender, using the mouse cursor as frame
counter for animation, etc.
2005-05-27 17:52:53 +00:00
Ton Roosendaal
f5435d924b When backbuf doesn't exist, it crashed during render... Fixed! 2005-05-27 13:28:26 +00:00
Ton Roosendaal
44a2c2267b On Render or Anim, no redraws should happin in the UI for sequence window.
This was enforced in a commit 5 months ago, for proper redraws while
working in sequencer itself (with scene strips)

Found by Ztonzy, explained by Jesterking. Thanks! :)
2005-05-27 12:53:28 +00:00
Ton Roosendaal
12671f30bd Bug fix #2629
Aye... OpenGL cannot draw concave (C shaped) polygons... that screws up the
Lasso tool, when it uses backbuffer selection.
Examined for little while the GLU Tesselation library, but apart from its
nightmarish structure, it's even stupid (no builtin clock/counterclock).

So, instead coded a DispList based function using Blender's edgefill.
Works like a charm! :)
2005-05-27 09:51:07 +00:00
Willian Padovani Germano
7625378e6d BPython:
- Fix for bug #2621 reported by Yann Cointepas (material.setMode didn't accept integer param, only strings, making it inconsistent with material.getMode):
http://projects.blender.org/tracker/index.php?func=detail&aid=2621&group_id=9&atid=125
    Applied patch #2626 by Ken Hughes to both Material.c and doc (Material.py):
http://projects.blender.org/tracker/index.php?func=detail&aid=2626&group_id=9&atid=127

- Small C doc strings update I forgot to add before, for Render slinks (reminder about Render slinks docs also by Ken).

Thanks both -- btw, Ken Hughes has contributed considerably improving bpy documentation and fixing bugs for this release.
2005-05-27 05:39:41 +00:00
Ton Roosendaal
53082cf0f1 Bug fix #2575
VertexPaint, FaceSelect draws with 'culled faces' but should therefor
check for negative scaling as well, set the glFrontFace() OK.
2005-05-26 21:00:50 +00:00
Ton Roosendaal
8f5baf019b Bug fix #2627
For rendering wire a wrong offset was used to find vertices... was caused
by commit Apr 13, part of reconstructing Mesh and subsurf.
2005-05-26 20:11:41 +00:00
Ton Roosendaal
07d048cae6 Disabled zblur render option when it was saved in testing builds. :) 2005-05-26 19:49:05 +00:00
Ton Roosendaal
1536167d13 Bug fix #2625
Darn #$%#$# code cleanup in NaN days screwed up recursive feature of
linking dynamically data among Blender files. It now only supported 1
'deep'.

Now you can link data from file1 via file2 into a file3, etc. Nasty code,
but supposed to work :)
2005-05-26 13:17:12 +00:00
Ton Roosendaal
b30b8bdd08 Bug #2624
Typo in bspline interpolation code... a '1' should be '2', causing the
fourth key of interpolation always be equal to third.
Only shows error with larger key steps, like 5 frames or more. Nice it
was found before release!
2005-05-25 21:54:13 +00:00
Stephen Swaney
3eb2be3831 updates and corrections for BPy Text3d module from Ken Hughes.
Thanks, Ken!
2005-05-25 16:38:51 +00:00
Ton Roosendaal
f9f3e82f93 Tinsy little but relevant bug; colors in Action channels used signed
bytes, glColor4b() instead of unsigned glColor4ub(). Gave ugly cycling
of colors in wrong ways.... reported by Ztonzy on irc. Thanks!
2005-05-25 16:37:24 +00:00
Ton Roosendaal
6969c118de Removed unused rect_float variable from imbuf structure. Was added for the
openEXR testing only. It broke sequence plugins...

Note: adding variables in end of Imbuf struct at least doesn't crash old
sequence plugins immediately. :)
2005-05-25 16:19:00 +00:00
Willian Padovani Germano
2a1fe1b0cb BPython bug fixes:
- Patch #2491: Mathutils.AngleBetweenVecs BUGFIX
http://projects.blender.org/tracker/?func=detail&aid=2491&group_id=9&atid=127

- #2607: Python String button can segfault if the allowable length is greater than 400
http://projects.blender.org/tracker/?func=detail&atid=125&aid=2607&group_id=9

- #2490: Vector == None gives warning
http://projects.blender.org/tracker/?func=detail&aid=2490&group_id=9&atid=125

- #2476: Image.Draw()
http://projects.blender.org/tracker/?func=detail&aid=2476&group_id=9&atid=125

All reported by Campbell, who also wrote the #2491 patch.  Ken Hughes provided patches for #2490 and #2476.  Thanks guys.
2005-05-25 04:52:52 +00:00
Jens Ole Wund
524e411dbf rule OB_SB_GOAL flag over SOFTGOALSNAP optimization in all cases 2005-05-24 22:17:23 +00:00
Ton Roosendaal
9e0e4adb68 Audio playback in TimeLine should not use 'scrubbing' option in the
update_for_newframe() call.
2005-05-24 19:33:04 +00:00
Ton Roosendaal
e975b78a4f Found float-related numerical instability with vertices lying EXACT on
the edge of an image. It should not be clipped, but comparisions with
floats then can go wrong... here the FLT_EPSILON is to the rescue.

/* smallest such that 1.0+FLT_EPSILON != 1.0 */
#define FLT_EPSILON 1.19209290e-07F

(Bug fix #2610)
2005-05-24 17:36:20 +00:00
Stephen Swaney
bb84abaaa8 updates to doc strings in code and doc from Ken Hughes.
add alias .recalc() for IpoCurve.Recalc() to match api standard.
2005-05-24 15:14:32 +00:00
Ton Roosendaal
8242c5db2b Bugfix #2602
Tooltips of buttons with menus (like for set constraint type) could popup
still... and in wrong location even!
Now it's a little bit tighter coded.
2005-05-24 13:02:22 +00:00
Ton Roosendaal
1dad1677d3 Bug fix #2606
While in Shaded draw mode, and edting a Font Object, the linked duplicates
of this object didn't get reshaded correctly.
2005-05-24 12:33:35 +00:00
Ton Roosendaal
b4dc14e088 Added init of 'postsat' to 1.0 in Scene, for the postprocess menu.
This only gave error in python. Added new scene in Blender itself copies
settings over of current scene. :)
2005-05-24 11:50:12 +00:00
Ton Roosendaal
505ab0bf78 Bug fix #2617
Using ipokeys with rotate crashed... caused by bugfix in ESC on ipokeys I
did before. Got confused by non-initialized (malloc) transdata...
2005-05-24 10:03:53 +00:00