Commit Graph

2297 Commits

Author SHA1 Message Date
Kent Mein
7ff5c16a02 This fix is thanks to: hangman4 (Thomas Power)
Basically needed a fflush on the file after all of the writing.
This closes out 1080

Kent
2004-06-09 19:49:43 +00:00
Kent Mein
57fc443fe4 Fixed part of write a bmp file, its still truncating the image slightly
however this fixes another problem.  (Basically  the offset wasn't
being computed correctly.
This is for bug: 1080

Kent
2004-06-09 19:27:48 +00:00
Kent Mein
53e1b83f1e updated NAN_PYTHON_VERSION to 2.3 for all platforms...
Solaris and a bunch of the others were out of date....

I guess we should change them back for platforms that don't work out
with 2.3 but I'm guessing that things will get updated better this way
then asking everyone to update their own platforms.

Kent
2004-06-08 15:47:19 +00:00
Jacques Guignot
21580bf21c new function for the Metaball objects : addMetaelem, which allows users to create Metaballs from python.
modified doc/Metaball.py to add this function
modified Object.c to allow the creation of Metaball objects
2004-06-08 07:27:37 +00:00
Willian Padovani Germano
25a0df8b71 Scripts: Campbell (ideasman) donated two more scripts: bvh motion capture import/export (thanks!). 2004-06-08 05:43:00 +00:00
Willian Padovani Germano
a15b430d71 Scripts: Campbell (ideasman) updated his obj wavefront scripts. 2004-06-08 04:43:40 +00:00
Willian Padovani Germano
61bb158291 BPython docs: small formatting fixes, basically, so that epydoc can generate dvi, ps and pdf versions. 2004-06-08 04:41:02 +00:00
Kester Maddock
942a68da07 Add the separate spec colour definitions! 2004-06-07 11:57:10 +00:00
Kester Maddock
c16444e624 Python updates:
Added scene module
2004-06-07 11:03:12 +00:00
Kester Maddock
b468bf726c Lighting updates:
Added specular after texture.
Added Light properties: Negative, No Diffuse, No Specular, Quad, Quad2
2004-06-07 11:01:31 +00:00
Kester Maddock
7d840a256e Correct blenderplayer target for sys.platform == win32 2004-06-07 10:10:13 +00:00
Willian Padovani Germano
b82be27659 Bundled scripts:
-starting updates and new additions for Blender 2.34:
  Some of the new scripts require Python modules not builtin with Blender, so you either need a full Python install or the needed extra modules.  This is an ongoing work, there should be more scripts, better testing and also proper ways to tell users they don't have all expected modules.  It's expected that Win users won't need full Python installs, since we can provide a minimal zip with the needed modules from 2.34 on.

Thanks to Anthony D'Agostino (scorpius), Jean-Michel Soler (jms) and Campbell Barton (Cam / ideasman) for donating the scripts now added / updated.

BPython:
-added two new script menu groups: Tools and Utils.  We still need to find places elsewhere in the gui where the groups can be put.
2004-06-07 01:34:15 +00:00
Kester Maddock
372636c116 Scons build fixes from lukep:
Remove Physics libraries from non gameblender builds
Add Quicktime to player
From Chris Keith:
Remove Quicktime framework (MacOSX!) on Windows builds.
2004-06-07 00:57:31 +00:00
Stephen Swaney
a703837179 Replace deprecated methods from old api:
PythonReturnErrorObject
  PythonIncRef

Fix some compiler warnings about missing initializers
in method tables.
2004-06-06 22:42:51 +00:00
Stephen Swaney
d97e3e5527 patch for bug #1347. IpoCurve.evaluate() missing/disappeared.
Contributed by Philip Wainwright.
2004-06-06 19:42:12 +00:00
Chris Want
37ac685951 Fixing something else broken broke: The fix for "no action == crash"
prevented rvk editing to work in the action window.

Please not that "if (act) {" (Does the object have an action? Currently
only true for some armatures) and "if (key) {" (does the object have
rvk's keys? Currently only true for meshes) are never both true at the
same time so in the following snippet, the function foo_key() never gets
executed:

if (act) {
  if (key) {
    foo_key();
  else
    foo_bar();
  }
}

Better is this:

if (key) {
  foo_key();
else if (act) {
  foo_bar();
}
2004-06-05 14:59:30 +00:00
Chris Want
7d6f4cd67f Fixing something broken broke: ICON_BLOCKBUT_CORNER is not defined
anywhere.
2004-06-05 14:46:38 +00:00
Matt Ebb
25c9dd464e * Fixed a crash in the action window when attempting to manipulate keys with no action loaded.
This addresses bug #1354 - Thanks to gabio for the report
2004-06-05 07:13:05 +00:00
Matt Ebb
3038507b1b * Better error checking with apply deformation / make duplis real in the toolbox (blame it on ugly apply_object() )
Addresses bug #1348, thanks wavk for the report
2004-06-05 06:52:14 +00:00
Matt Ebb
506b78bfbb * Big, mundane clean up and edit of (error/ok/etc)
messages and pupmenu()s. Edited spelling and grammar,
 stylistic consistency, etc.

I added the guidelines and rationale that I used to the
 CMS here:
http://www.blender3d.org/cms/Language_and_terminology.338.0.html

Next step is to get icons in there, to make it easier to see
 at a glance what sort of message (and how much attention
 should be paid to it, or if it can be dismissed with a flick
 of the mouse, eg. boring remove doubles notifications)

mockup: http://mke3.net:9000/blender/ui/controls/error_ok_icons.png
2004-06-05 05:55:15 +00:00
Kester Maddock
4b544c75c0 blenderplayer target for SCons.
Would someone on MacOSX please check the bundle creation.
2004-06-04 12:58:46 +00:00
Stephen Swaney
7bf6864360 In Object.select() make the selected object the active object.
Update by Campbell Barton to his previous patch.
2004-06-04 07:52:06 +00:00
Kester Maddock
72493e41bd Compile fixes for gcc 3.4 2004-06-04 03:04:56 +00:00
Kester Maddock
44f45894c2 Miscellaneous Fixes:
Add Python Mapping method to CListValue
Fix Bernoulli bool distribution python method for random actuator
Fix Python IpoActuator methods setProperty and force acts local
Make data objects private
Better sort method for polygon materials - much easier to understand
2004-06-04 03:00:13 +00:00
Kester Maddock
4ff321d507 Fix bug #1334: Crash with Python/GameEngine when the script has syntax errors.
When Python compile fails (eg syntax errors) skip the execute stage.
2004-06-04 02:10:58 +00:00
Kent Mein
f41c926a12 deleted redefinition of var that is passed in.
Kent
2004-06-03 19:59:34 +00:00
Stephen Swaney
2b7e35b8e7 bugfix #1345. Curve.isNurb() segfault fixed. 2004-06-03 16:23:51 +00:00
Matt Ebb
630de827d7 * Tiny almost-insignificant tweak to the curvature of button drawing 2004-06-03 14:30:12 +00:00
Matt Ebb
5926231d12 * Added 'Transform' menus to Ipo, OOPS, Action, NLA, and
Sequence spaces

* And a few small tweaks
2004-06-03 14:29:14 +00:00
Kent Mein
94042b0fef Cam's patch to enable parenting in the OOPS menu.
Kent
2004-06-03 14:26:44 +00:00
Kester Maddock
bc329a57f9 Fix for MSVC compiler. ;-) 2004-06-02 13:34:58 +00:00
Kester Maddock
cce2180e4b Do a databrowse window for sound actuators when necessary. 2004-06-02 13:17:39 +00:00
Kester Maddock
976e3a1824 Updates to GamePython Reference.
Added Actuator documentation.
2004-06-02 12:43:27 +00:00
Stephen Swaney
474ec217ae new Object.select() and Object.isSelected() methods to manipulate the
selection state of Objects.
Contributed by Campbell Barton.
2004-06-02 06:19:56 +00:00
Chris Want
931b382d76 Fix for the IK Assertion bug when the IK constraint on a bone
points to the armature that owns the bone and the subtarget
bone for the constraint is invalid.

Thanks to Stephane Soppera for tracking this one down.
2004-05-31 13:21:33 +00:00
Kester Maddock
0dfc3a3b78 Use epydoc for generating game python reference (like the bpython guys) 2004-05-31 13:06:04 +00:00
Ton Roosendaal
4f457fa277 Limit for Normalise() call was 0.000000001 or so. This is still far too
big, since a float can go to 10^-37. And, this value is still squared, so
a square root will not frustrate it.

Limit now is 10^-35, fixing disappearing faces in extreme small object
thats extreme close to a camera. (thanks OOPz!)
2004-05-31 12:08:50 +00:00
Jiri Hnidek
2a41593932 - added some "Transform Properties" for MetaElem (Metaball in edit mode, N key). It is locx, loxy, locz, dx, dy, dz and stiffness 2004-05-30 14:12:14 +00:00
Kester Maddock
d38329b5aa Added Python module for Lights.
Added attributes to the vertex class.
2004-05-30 11:09:46 +00:00
Kester Maddock
b97c77df2b Check for zero normal vectors in the clip planes (if eg Python has set a strange projection matrix)
Fix the transformation of the frustum bound sphere to world coordinates.
2004-05-30 11:04:26 +00:00
Ton Roosendaal
62c333a562 report #1338
Switched order of routines for displacement and autosmooth, where the
autosmooth will be last now. This prevents displaced (loose) faces, and
might give attractive sharp edges in other cases too.
2004-05-29 19:46:46 +00:00
Ton Roosendaal
d2dbc96b81 bug #1340
Key alpha (render) set alph component at '1' for sky... this is an old
convention from NeoGeo days, and I have absolutely no clue whatfor...
maybe for some antique amiga iff format or so. Made it zero now.
2004-05-29 17:33:30 +00:00
Ton Roosendaal
690a430bcb Counter of mballs, before polygonize, had error in taking linked mball-
data into account, causing errors modeling.
2004-05-29 17:00:51 +00:00
Ton Roosendaal
dbfe3daec3 Oh, the fix is an addition of a OB_NEG_SCALE flag in ob->transflag, which
is calculated in where_is_object.
Negative scale is found by a cross product of first 2 rows in matrix, and
comparing that (dot product) with third row.
2004-05-29 16:22:07 +00:00
Ton Roosendaal
6b51c684f1 NEW! Blender now displays flipped (negative scaled) Objects correctly in
OpenGL draw.

(BTW: the previous commit also solves raytrace errors with negative scaled
objects...)

Further a cleanup of displaylist flags and object/base flags. The #define
ACTIVE is moved to filesel.c (only used here).
The GONNA_MOVE #define got a OB_ added in front.
2004-05-29 16:17:46 +00:00
Ton Roosendaal
59dad6aefc Recoded the methods how normals get corrected and flipped during render
conversion. Old method tried to solve it per object, detecting a flipped
matrix. Since we have displacemapping and raytracing this is too inaccurate.
Also, flipping normals should alsways result i correct flipped vertex-
normals too.

Solution is to completely recalcuate the 'puno' (vertex normal) flags in
renderHelp.c now (set_normal_flags). The face normals themselves are not
flipped until that stage.

Second major improvement involves the calculation of correct splitted
triangles, when a quad is not flat. It now creates triangles based on the
vertex normals, which have actual information on surrounding geometry, thus
resulting in much smoother results.
Without this you get errors in ray-shadow, with light shining almost
parallel to a face. But again, displacement mapping improves with it too.

Third fix is that by removing normal flipping from displace code the result
is much better now.
2004-05-29 16:14:34 +00:00
Ton Roosendaal
993a89e2a5 Bug fix 1332
EnvMap render now uses the percentage button for size (f10 buttons).
That wasn't implemented yet for saving envmaps....
2004-05-27 17:54:26 +00:00
Kent Mein
173ecf172a Panagiotis Papadakos's patch to fix the following:
Implicit declaration of swab in Linux, needs to define __USE_XOPEN at
source/blender/src:

I also added #includst <stdlib.h> to this file to fix it on solaris as well.

Kent
2004-05-27 14:54:14 +00:00
Kent Mein
300f10afc8 Tom's additions to the windows build.
(I changed #blendersaue to #blendercoders not #blendercompilers,
does anyone actually use #blendercompilers?)

Kent
2004-05-27 08:05:55 +00:00
Ton Roosendaal
954e5546ea In drawing solid objects ("Solid" drawmode) there were material
switches (glMaterial) inbetween a glBegin and glEnd. Combined with a
switch of glShadeModel however, on recent Nvidia it caused faces not
to be drawn... dunno if this is official compliancy, but not too
complex just to correct.
2004-05-26 21:04:02 +00:00