blender-staging.git
16 years agoCorrect blenderplayer target for sys.platform == win32
Kester Maddock [Mon, 7 Jun 2004 10:10:13 +0000 (10:10 +0000)]
Correct blenderplayer target for sys.platform == win32

16 years agoBundled scripts:
Willian Padovani Germano [Mon, 7 Jun 2004 01:34:15 +0000 (01:34 +0000)]
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.

16 years agoScons build fixes from lukep:
Kester Maddock [Mon, 7 Jun 2004 00:57:31 +0000 (00:57 +0000)]
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.

16 years agoReplace deprecated methods from old api:
Stephen Swaney [Sun, 6 Jun 2004 22:42:51 +0000 (22:42 +0000)]
Replace deprecated methods from old api:
  PythonReturnErrorObject
  PythonIncRef

Fix some compiler warnings about missing initializers
in method tables.

16 years agopatch for bug #1347. IpoCurve.evaluate() missing/disappeared.
Stephen Swaney [Sun, 6 Jun 2004 19:42:12 +0000 (19:42 +0000)]
patch for bug #1347.  IpoCurve.evaluate() missing/disappeared.
Contributed by Philip Wainwright.

16 years agoFixing something else broken broke: The fix for "no action == crash"
Chris Want [Sat, 5 Jun 2004 14:59:30 +0000 (14:59 +0000)]
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();
}

16 years agoFixing something broken broke: ICON_BLOCKBUT_CORNER is not defined
Chris Want [Sat, 5 Jun 2004 14:46:38 +0000 (14:46 +0000)]
Fixing something broken broke: ICON_BLOCKBUT_CORNER is not defined
anywhere.

16 years ago* Fixed a crash in the action window when attempting to manipulate keys with no actio...
Matt Ebb [Sat, 5 Jun 2004 07:13:05 +0000 (07:13 +0000)]
* 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

16 years ago* Better error checking with apply deformation / make duplis real in the toolbox...
Matt Ebb [Sat, 5 Jun 2004 06:52:14 +0000 (06:52 +0000)]
* 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

16 years ago* Big, mundane clean up and edit of (error/ok/etc)
Matt Ebb [Sat, 5 Jun 2004 05:55:15 +0000 (05:55 +0000)]
* 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

16 years agoblenderplayer target for SCons.
Kester Maddock [Fri, 4 Jun 2004 12:58:46 +0000 (12:58 +0000)]
blenderplayer target for SCons.

Would someone on MacOSX please check the bundle creation.

16 years agoIn Object.select() make the selected object the active object.
Stephen Swaney [Fri, 4 Jun 2004 07:52:06 +0000 (07:52 +0000)]
In Object.select() make the selected object the active object.
Update by Campbell Barton to his previous patch.

16 years agoCompile fixes for gcc 3.4
Kester Maddock [Fri, 4 Jun 2004 03:04:56 +0000 (03:04 +0000)]
Compile fixes for gcc 3.4

16 years agoMiscellaneous Fixes:
Kester Maddock [Fri, 4 Jun 2004 03:00:13 +0000 (03:00 +0000)]
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

16 years agoFix bug #1334: Crash with Python/GameEngine when the script has syntax errors.
Kester Maddock [Fri, 4 Jun 2004 02:10:58 +0000 (02:10 +0000)]
Fix bug #1334: Crash with Python/GameEngine when the script has syntax errors.
When Python compile fails (eg syntax errors) skip the execute stage.

16 years agodeleted redefinition of var that is passed in.
Kent Mein [Thu, 3 Jun 2004 19:59:34 +0000 (19:59 +0000)]
deleted redefinition of var that is passed in.

Kent

16 years agobugfix #1345. Curve.isNurb() segfault fixed.
Stephen Swaney [Thu, 3 Jun 2004 16:23:51 +0000 (16:23 +0000)]
bugfix #1345.  Curve.isNurb() segfault fixed.

16 years ago* Tiny almost-insignificant tweak to the curvature of button drawing
Matt Ebb [Thu, 3 Jun 2004 14:30:12 +0000 (14:30 +0000)]
* Tiny almost-insignificant tweak to the curvature of button drawing

16 years ago* Added 'Transform' menus to Ipo, OOPS, Action, NLA, and
Matt Ebb [Thu, 3 Jun 2004 14:29:14 +0000 (14:29 +0000)]
* Added 'Transform' menus to Ipo, OOPS, Action, NLA, and
 Sequence spaces

* And a few small tweaks

16 years agoCam's patch to enable parenting in the OOPS menu.
Kent Mein [Thu, 3 Jun 2004 14:26:44 +0000 (14:26 +0000)]
Cam's patch to enable parenting in the OOPS menu.

Kent

16 years agoFix for MSVC compiler. ;-)
Kester Maddock [Wed, 2 Jun 2004 13:34:58 +0000 (13:34 +0000)]
Fix for MSVC compiler. ;-)

16 years agoDo a databrowse window for sound actuators when necessary.
Kester Maddock [Wed, 2 Jun 2004 13:17:39 +0000 (13:17 +0000)]
Do a databrowse window for sound actuators when necessary.

16 years agoUpdates to GamePython Reference.
Kester Maddock [Wed, 2 Jun 2004 12:43:27 +0000 (12:43 +0000)]
Updates to GamePython Reference.
Added Actuator documentation.

16 years agonew Object.select() and Object.isSelected() methods to manipulate the
Stephen Swaney [Wed, 2 Jun 2004 06:19:56 +0000 (06:19 +0000)]
new Object.select() and Object.isSelected() methods to manipulate the
selection state of Objects.
Contributed by Campbell Barton.

16 years agoFix for the IK Assertion bug when the IK constraint on a bone
Chris Want [Mon, 31 May 2004 13:21:33 +0000 (13:21 +0000)]
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.

16 years agoUse epydoc for generating game python reference (like the bpython guys)
Kester Maddock [Mon, 31 May 2004 13:06:04 +0000 (13:06 +0000)]
Use epydoc for generating game python reference (like the bpython guys)

16 years agoLimit for Normalise() call was 0.000000001 or so. This is still far too
Ton Roosendaal [Mon, 31 May 2004 12:08:50 +0000 (12:08 +0000)]
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!)

16 years ago - added some "Transform Properties" for MetaElem (Metaball in edit mode, N key)...
Jiri Hnidek [Sun, 30 May 2004 14:12:14 +0000 (14:12 +0000)]
 - added some "Transform Properties" for MetaElem (Metaball in edit mode, N key). It is locx, loxy, locz, dx, dy, dz and stiffness

16 years agoAdded Python module for Lights.
Kester Maddock [Sun, 30 May 2004 11:09:46 +0000 (11:09 +0000)]
Added Python module for Lights.
Added attributes to the vertex class.

16 years agoCheck for zero normal vectors in the clip planes (if eg Python has set a strange...
Kester Maddock [Sun, 30 May 2004 11:04:26 +0000 (11:04 +0000)]
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.

16 years ago report #1338
Ton Roosendaal [Sat, 29 May 2004 19:46:46 +0000 (19:46 +0000)]
 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.

16 years agobug #1340
Ton Roosendaal [Sat, 29 May 2004 17:33:30 +0000 (17:33 +0000)]
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.

16 years agoCounter of mballs, before polygonize, had error in taking linked mball-
Ton Roosendaal [Sat, 29 May 2004 17:00:51 +0000 (17:00 +0000)]
Counter of mballs, before polygonize, had error in taking linked mball-
data into account, causing errors modeling.

16 years agoOh, the fix is an addition of a OB_NEG_SCALE flag in ob->transflag, which
Ton Roosendaal [Sat, 29 May 2004 16:22:07 +0000 (16:22 +0000)]
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.

16 years agoNEW! Blender now displays flipped (negative scaled) Objects correctly in
Ton Roosendaal [Sat, 29 May 2004 16:17:46 +0000 (16:17 +0000)]
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.

16 years agoRecoded the methods how normals get corrected and flipped during render
Ton Roosendaal [Sat, 29 May 2004 16:14:34 +0000 (16:14 +0000)]
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.

16 years agoBug fix 1332
Ton Roosendaal [Thu, 27 May 2004 17:54:26 +0000 (17:54 +0000)]
Bug fix 1332

EnvMap render now uses the percentage button for size (f10 buttons).
That wasn't implemented yet for saving envmaps....

16 years agoPanagiotis Papadakos's patch to fix the following:
Kent Mein [Thu, 27 May 2004 14:54:14 +0000 (14:54 +0000)]
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

16 years agoTom's additions to the windows build.
Kent Mein [Thu, 27 May 2004 08:05:55 +0000 (08:05 +0000)]
Tom's additions to the windows build.
(I changed #blendersaue to #blendercoders not #blendercompilers,
does anyone actually use #blendercompilers?)

Kent

16 years agoIn drawing solid objects ("Solid" drawmode) there were material
Ton Roosendaal [Wed, 26 May 2004 21:04:02 +0000 (21:04 +0000)]
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.

16 years agoPython fixes:
Kester Maddock [Wed, 26 May 2004 12:09:17 +0000 (12:09 +0000)]
Python fixes:
Reenabled the setScript/getScript methods for python controller bricks.
Set the ray source point to MouseFocusSensor.getRaySource works.
Added: Python -> MT_Quaternion
MT_Matrix4x4, MT_Matrix3x3, MT_Vector3, MT_Point3 -> Python

Correct transform of frustum bound sphere centre point to world coordinates

16 years agoAdded an UpdateTransform callback from SceneGraph -> Physics.
Kester Maddock [Wed, 26 May 2004 12:06:41 +0000 (12:06 +0000)]
Added an UpdateTransform callback from SceneGraph -> Physics.
Profiling revealed that the SceneGraph updated every physics object, whether it moved or not, even though the physics object was at the right place.  This would cause SOLID to go and update its bounding boxes, overlap tests etc.
This callback handles the special case (parented objects) where the physics scene needs to be informed of changes to the scenegraph.

Added Python attributes (mass, parent, visible, position, orientation, scaling) to the KX_GameObject module.
Make KX_GameObject use the KX_PyMath Python <-> Moto conversion.

16 years agoFix Bug #1309 Disabling Actor leaves Ghost, Dynamic and Rigid Body etc enabled.
Kester Maddock [Wed, 26 May 2004 12:01:08 +0000 (12:01 +0000)]
Fix Bug #1309 Disabling Actor leaves Ghost, Dynamic and Rigid Body etc enabled.

Depth sorting for Transparent polygons.  Use ZTransp in Material buttons to enable.
This will cause an object's polygons to be sorted (back to front for alpha polygons, front to back for solid polygons.)

16 years agobugfix: #1322 minor tweaks to the documentation for Draw module.
Stephen Swaney [Tue, 25 May 2004 19:59:41 +0000 (19:59 +0000)]
bugfix: #1322  minor tweaks to the documentation for Draw module.

Blender.Draw.Button() was not showing up.  Seems to be an epydoc
issue with Button() being both a module method and the name of a class.
I changed Button to Button_ and added a usage note.
Yes, this is lame.

16 years agoChanged parameters names in addCurve function (suggested by Paolo)
Jacques Guignot [Tue, 25 May 2004 19:31:13 +0000 (19:31 +0000)]
Changed parameters names in addCurve function (suggested by Paolo)
DLoc* --> dLoc*
DRot* --> dRot*
DSize* --> dSize*
updated doc (Ipo.py)

16 years agoFixed a potential bug in the uv editor transform function, a check if the tface
Brecht Van Lommel [Tue, 25 May 2004 19:06:48 +0000 (19:06 +0000)]
Fixed a potential bug in the uv editor transform function, a check if the tface
might be only an edge was missing in one of the loops.

Fix a crash that would sometimes happen when clicking the texture painting
button in the image window header. Made headerbuttons_packdummy a static
variable again. The uiDefBut call for the texture painting button stores a
reference to it, so it must be kept in memory.

16 years agoBPython:
Willian Padovani Germano [Tue, 25 May 2004 10:36:58 +0000 (10:36 +0000)]
BPython:
- Campbell Barton contributed another function (thanks again), the Image.reload method:
  with this a script can keep an image that is being edited and saved by an external program updated in Blender.

16 years ago* Added support for python scripts to register themselves
Matt Ebb [Tue, 25 May 2004 06:08:49 +0000 (06:08 +0000)]
* Added support for python scripts to register themselves
 in the UV/Image editor 'UVs' menu

Script authors can use:
Group: 'UV'
 in the headers of their scripts to let them appear in
 this menu.

* Updated the UV Face Layout script to reside in the UVs
 menu, rather than the (incorrect) File->Export menu.

16 years ago- documentation update for new functions
Joseph Gilbert [Tue, 25 May 2004 03:26:29 +0000 (03:26 +0000)]
- documentation update for new functions
- error corrections in NLA about dictionaries

16 years ago- added Boneclass support
Joseph Gilbert [Tue, 25 May 2004 02:48:02 +0000 (02:48 +0000)]
- added Boneclass support
- ability to get a bonespace/worldspace bone matrix
- get ik flag
- some tweaking to matrix updates for addBone()

16 years agoAfter hearing that the reason for do_common_editbuts being in buttons_object.c I...
Nathan Letwory [Mon, 24 May 2004 19:48:07 +0000 (19:48 +0000)]
After hearing that the reason for do_common_editbuts being in buttons_object.c I decided to move it to buttons_editing.c, where it logically belongs. Matter of copy and paste (and deleting from buttons_object.c :)

Now poor newcomers can more easily find the editing buttonevent handling code.

16 years agoAdded the hotkey for Bevel in the menus
Matt Ebb [Mon, 24 May 2004 13:46:36 +0000 (13:46 +0000)]
Added the hotkey for Bevel in the menus

16 years agoGame Python Reference Manual.
Kester Maddock [Mon, 24 May 2004 07:49:50 +0000 (07:49 +0000)]
Game Python Reference Manual.
This manual lists all the Python classes and modules for Game Objects, Sensor bricks, Controllers etc.
Missing: Actuator & Controller reference.

16 years agoChanged two shorts in int, for calculation of distance between bezier point
Ton Roosendaal [Sun, 23 May 2004 19:13:15 +0000 (19:13 +0000)]
Changed two shorts in int, for calculation of distance between bezier point
and mouse coordinate in selecting routine.
Caused selection not to work in extreme zoom ins.
(Thanks OOPz!)

16 years agoBPython:
Willian Padovani Germano [Sat, 22 May 2004 20:25:22 +0000 (20:25 +0000)]
BPython:
- updated docs with recently added functions
- dynamic menu entries now are sorted (alphabetically, of course)
- added new menu categories for scripts: Wizards, Modifiers, Generators, Materials, Animation:
  only added to list of options, didn't mess with any Blender header.  They are already available from the "Scripts" menu in the scripts win, but not elsewhere.
- added option 'datadir' to Blender.Get(option):
  so scripts can use .blender/bpydata for reading / writing their data files.

16 years agonear & far are reserved words on MSVC. Don't use them as variable names.
Kester Maddock [Fri, 21 May 2004 14:09:18 +0000 (14:09 +0000)]
near & far are reserved words on MSVC.  Don't use them as variable names.

16 years agoCunning hack for Blender python module in the game engine - just don't unload it...
Kester Maddock [Fri, 21 May 2004 09:27:42 +0000 (09:27 +0000)]
Cunning hack for Blender python module in the game engine - just don't unload it before running the game!

16 years agoFrustum sphere culling.
Kester Maddock [Fri, 21 May 2004 09:21:15 +0000 (09:21 +0000)]
Frustum sphere culling.

Do a sphere<->camera sphere and a sphere<->frustum before the box<->frustum test.

16 years agoFixes for Camera objects and python:
Kester Maddock [Fri, 21 May 2004 09:18:42 +0000 (09:18 +0000)]
Fixes for Camera objects and python:

Normalise clip planes for sphere testing.
Do a frustum-sphere <-> sphere test
Reference count all python objects (!)

16 years agoQuery GL for max number of lights to use.
Kester Maddock [Fri, 21 May 2004 08:56:05 +0000 (08:56 +0000)]
Query GL for max number of lights to use.

16 years agoDepth sorting for alpha mesh objects.
Kester Maddock [Fri, 21 May 2004 08:55:12 +0000 (08:55 +0000)]
Depth sorting for alpha mesh objects.

- Mesh Objects are sorted by depth (based on object centre.)  Using object centre means the user has control over the sort.
- Polygons are not sorted.
- Polygons are not split.
- O(nlog(n))

16 years agoAdded Shift C 'Center Cursor and View All' to View -> Align View menu
Matt Ebb [Fri, 21 May 2004 01:35:10 +0000 (01:35 +0000)]
Added Shift C 'Center Cursor and View All' to View -> Align View menu

16 years agoA few hotkey additions/corrections to the toolbox and 3d view menus.
Matt Ebb [Thu, 20 May 2004 12:27:21 +0000 (12:27 +0000)]
A few hotkey additions/corrections to the toolbox and 3d view menus.

16 years agoadd some explanation about Object.Layer being a bitmask.
Stephen Swaney [Thu, 20 May 2004 07:21:07 +0000 (07:21 +0000)]
add some explanation about Object.Layer being a bitmask.

16 years agoremoved unused var in Object.getBoundBox()
Stephen Swaney [Thu, 20 May 2004 06:26:43 +0000 (06:26 +0000)]
removed unused var in Object.getBoundBox()

bugfix: #1212 changing object's layer had no effect.

16 years agoMSVC 6.0 ProjectFiles update. The file Kester added in his last commits were missing...
Martin Poirier [Thu, 20 May 2004 02:12:14 +0000 (02:12 +0000)]
MSVC 6.0 ProjectFiles update. The file Kester added in his last commits were missing from the project files.

16 years agoBug #1289
Martin Poirier [Thu, 20 May 2004 01:22:43 +0000 (01:22 +0000)]
Bug #1289
Mirror menu missing in the Header Menu for most object types in edit mode

http://projects.blender.org/tracker/index.php?func=detail&aid=1289&group_id=9&atid=125

16 years agoUV_Export script update. Typo fix and add tga extension automaticly.
Martin Poirier [Thu, 20 May 2004 01:18:13 +0000 (01:18 +0000)]
UV_Export script update. Typo fix and add tga extension automaticly.

16 years agoRemoved a bzero from octree-filling, replaced with exact code what
Ton Roosendaal [Wed, 19 May 2004 19:30:43 +0000 (19:30 +0000)]
Removed a bzero from octree-filling, replaced with exact code what
needs cleared. Timings go down nice:

octree new     2.33a

128    0:04.2  0:07.5
256    0:06.5  0:20.0
512    0:18.0  2.06.9

Time is including initialize renderfaces etc. 100k quads.

16 years agoBPython:
Willian Padovani Germano [Wed, 19 May 2004 01:28:12 +0000 (01:28 +0000)]
BPython:
-- Added two new functions to the Draw module, to display int and float popup buttons:
    Both contributed by Campbell Barton, thanks!
-- Fixed a couple warnings.

16 years agoRemoved double #defines from include, added some comments in code, and
Ton Roosendaal [Tue, 18 May 2004 20:00:51 +0000 (20:00 +0000)]
Removed double #defines from include, added some comments in code, and
added define for future use to bring back old (fast) AA.

16 years agoPatch provided by Matthew Plough for better view zoom with CTRL+middle
Ton Roosendaal [Tue, 18 May 2004 19:59:50 +0000 (19:59 +0000)]
Patch provided by Matthew Plough for better view zoom with CTRL+middle
mouse.

For me it's a good replacement, and more intuitive & compatible. Now
let's wait for the storm of reactions...

16 years agoForgot to add PyMath.cpp and .h
Nathan Letwory [Tue, 18 May 2004 09:56:19 +0000 (09:56 +0000)]
Forgot to add PyMath.cpp and .h

16 years agoModified .vcproj files to include files for scenegraph, and remove a redundant file...
Nathan Letwory [Tue, 18 May 2004 09:34:06 +0000 (09:34 +0000)]
Modified .vcproj files to include files for scenegraph, and remove a redundant file from render

16 years agoBPython:
Willian Padovani Germano [Tue, 18 May 2004 03:23:45 +0000 (03:23 +0000)]
BPython:
- Finally added Blender.Load function for loading .blend files, useful for demos, for example.
- Moved data from Blender.h to Blender.c.  We'll keep doing this where it applies and someday remove all unused files at once.

16 years agoCompiler portability fixes (MSVC 6)
Kester Maddock [Mon, 17 May 2004 23:56:56 +0000 (23:56 +0000)]
Compiler portability fixes (MSVC 6)

16 years ago<blush> this should have been part of render commit of some days ago.
Ton Roosendaal [Mon, 17 May 2004 21:40:00 +0000 (21:40 +0000)]
<blush> this should have been part of render commit of some days ago.
This fixes errors in quads that are non-planar...

16 years agoTweaked the display and positioning of tooltips so they aren't obscured by the mouse...
Matt Ebb [Mon, 17 May 2004 14:36:13 +0000 (14:36 +0000)]
Tweaked the display and positioning of tooltips so they aren't obscured by the mouse pointer.

This is addressing bug #952

16 years agoSame again - change static const for MSVC++
Kester Maddock [Mon, 17 May 2004 09:06:54 +0000 (09:06 +0000)]
Same again - change static const for MSVC++

16 years agoFix for MSVC .NET, which can't handle static const declarations in classes.
Kester Maddock [Mon, 17 May 2004 08:31:35 +0000 (08:31 +0000)]
Fix for MSVC .NET, which can't handle static const declarations in classes.
Make it static, and define in SM_Object.cpp

16 years agoFix for bug 1245: Vertex Colours are wrong in GameBlender. 2nd try.
Kester Maddock [Mon, 17 May 2004 00:42:07 +0000 (00:42 +0000)]
Fix for bug 1245: Vertex Colours are wrong in GameBlender. 2nd try.
http://projects.blender.org/tracker/index.php?func=detail&aid=1245&group_id=9&atid=125

The member names of MCol are wrong, so we will convert to unsigned char* like the rest of blender.

16 years agoRewind of change in MCol structure.
Ton Roosendaal [Sun, 16 May 2004 16:25:40 +0000 (16:25 +0000)]
Rewind of change in MCol structure.

Kester: since this is in DNA, it backwards converts all R into B now,
which isn't the bug. On big endian systems (OSX) there engine colors
are OK, which indicates the conversion of MCol goes wrong on the
engine side, by using some endian-sensative approach.

The main confusement is, that the MCol struct isn't in use for read
or write in Blender, only for a save in files. The contents of that
struct is wrong, yes. See note in vpaint.c top.

16 years agoDrawing cylinder & cone bounding objects according to how they will act in the physic...
Kester Maddock [Sun, 16 May 2004 13:23:59 +0000 (13:23 +0000)]
Drawing cylinder & cone bounding objects according to how they will act in the physics simulation.

16 years agoPort closest points fix from tuhopuu - should return positive distance.
Kester Maddock [Sun, 16 May 2004 13:13:41 +0000 (13:13 +0000)]
Port closest points fix from tuhopuu - should return positive distance.

16 years agoCleanup unused/commented out code, compiler warnings, coding standards etc.
Kester Maddock [Sun, 16 May 2004 13:10:10 +0000 (13:10 +0000)]
Cleanup unused/commented out code, compiler warnings, coding standards etc.

16 years agoAdded #!/usr/bin/python standard script identifier to the start of SConscript files.
Kester Maddock [Sun, 16 May 2004 13:07:20 +0000 (13:07 +0000)]
Added #!/usr/bin/python standard script identifier to the start of SConscript files.
Makes text editors identify SConscripts as Python, and syntax highlight properly.

16 years agoChanged Python _getattr/_setattr methods to use const STR_String& instead of char...
Kester Maddock [Sun, 16 May 2004 13:05:15 +0000 (13:05 +0000)]
Changed Python _getattr/_setattr methods to use const STR_String& instead of char* - makes using these methods much nicer.

16 years agoUp the maximum triangles in a bucket.
Kester Maddock [Sun, 16 May 2004 12:56:36 +0000 (12:56 +0000)]
Up the maximum triangles in a bucket.
GPUs can do more now.

16 years agoUse safe_normalized instead of normalized in shadow cast.
Kester Maddock [Sun, 16 May 2004 12:56:08 +0000 (12:56 +0000)]
Use safe_normalized instead of normalized in shadow cast.
Should fix crashes reported by Calli

16 years agoInline accessor methods used by armature deformation.
Kester Maddock [Sun, 16 May 2004 12:55:37 +0000 (12:55 +0000)]
Inline accessor methods used by armature deformation.

16 years agoUse const for SetProjectionMatrix
Kester Maddock [Sun, 16 May 2004 12:55:21 +0000 (12:55 +0000)]
Use const for SetProjectionMatrix
Remove warning printf.

16 years agoUse bitset instead of mucking around with <<, | and &
Kester Maddock [Sun, 16 May 2004 12:55:05 +0000 (12:55 +0000)]
Use bitset instead of mucking around with <<, | and &

16 years agoSceneGraph support for bounding boxs
Kester Maddock [Sun, 16 May 2004 12:54:44 +0000 (12:54 +0000)]
SceneGraph support for bounding boxs

16 years agoPython utils for Python <-> MT_Vector, MT_Point & MT_Matrix
Kester Maddock [Sun, 16 May 2004 12:53:54 +0000 (12:53 +0000)]
Python utils for Python <-> MT_Vector, MT_Point & MT_Matrix

16 years agoDon't overwrite camera's projection matrix every frame.
Kester Maddock [Sun, 16 May 2004 12:53:39 +0000 (12:53 +0000)]
Don't overwrite camera's projection matrix every frame.

16 years agoFrustum culling
Kester Maddock [Sun, 16 May 2004 12:53:22 +0000 (12:53 +0000)]
Frustum culling
New Python Hooks for cameras.

16 years agoDon't touch protected KX_GameObject members.
Kester Maddock [Sun, 16 May 2004 12:52:54 +0000 (12:52 +0000)]
Don't touch protected KX_GameObject members.
Protect KX_GameObject - Py_Header unprotects!

16 years agoFrustum Culling.
Kester Maddock [Sun, 16 May 2004 12:52:30 +0000 (12:52 +0000)]
Frustum Culling.
- tests every object against the view frustum.
- Tree based culling is there, need to build tree.

16 years agoDon't increment tface if tface == NULL
Kester Maddock [Sun, 16 May 2004 12:52:08 +0000 (12:52 +0000)]
Don't increment tface if tface == NULL
Generate bounding boxes for frustum culling

16 years agoFix for bug 1245: Colours are wrong on GameBlender
Kester Maddock [Sun, 16 May 2004 12:50:16 +0000 (12:50 +0000)]
Fix for bug 1245: Colours are wrong on GameBlender
http://projects.blender.org/tracker/index.php?func=detail&aid=1245&group_id=9&atid=125

The vertex paint routines were storing red in the blue channel, and blue in the red channel.