16 years agoSome MSVC 6.0 projectfiles updates:
Martin Poirier [Thu, 31 Mar 2005 18:39:38 +0000 (18:39 +0000)]
Some MSVC 6.0 projectfiles updates:

BIF_transform.h added in BL_src
Adding moto include paths to EXP_expressions
SDL include paths and correct python version for all targets in SCA_gamelogic
KX_RayCast.cpp/h in KX_ketsji
SumoPHYCallbackBridge.cpp/.h in PHY_Sumo

16 years agoAdding CCG stuff to MSVC 6.0 projectfiles
Martin Poirier [Thu, 31 Mar 2005 18:22:43 +0000 (18:22 +0000)]
Adding CCG stuff to MSVC 6.0 projectfiles

16 years ago - potential fix for crash on amd64
Daniel Dunbar [Thu, 31 Mar 2005 17:15:44 +0000 (17:15 +0000)]
 - potential fix for crash on amd64

16 years ago - switch to drawing aging in and out of optimal mode
Daniel Dunbar [Thu, 31 Mar 2005 16:54:47 +0000 (16:54 +0000)]
 - switch to drawing aging in and out of optimal mode
 - switch to not using arena allocator in editmode for ccgsubsurf (memory
   doesn't get freed during incremental)

16 years agoRemove USE_CCGSUBSURFLIB stuff since it is always on now.
Stephen Swaney [Thu, 31 Mar 2005 16:21:08 +0000 (16:21 +0000)]
Remove USE_CCGSUBSURFLIB stuff since it is always on now.

16 years ago - disable overriding color (to show aging) during selection drawing
Daniel Dunbar [Thu, 31 Mar 2005 16:16:22 +0000 (16:16 +0000)]
 - disable overriding color (to show aging) during selection drawing

16 years ago - fix warnings for gcc
Daniel Dunbar [Thu, 31 Mar 2005 16:08:29 +0000 (16:08 +0000)]
 - fix warnings for gcc
 - some subsurf settings not correctly changed in editmode

16 years ago - adapt to reprototyping in BKE_DerivedMesh.h
Daniel Dunbar [Thu, 31 Mar 2005 15:57:18 +0000 (15:57 +0000)]
 - adapt to reprototyping in BKE_DerivedMesh.h

16 years ago - adapt caching check for G.editMesh->derived
Daniel Dunbar [Thu, 31 Mar 2005 15:55:31 +0000 (15:55 +0000)]
 - adapt caching check for G.editMesh->derived

16 years ago - removed USE_CCGSUBSURF define (always on now)
Daniel Dunbar [Thu, 31 Mar 2005 15:44:05 +0000 (15:44 +0000)]
 - removed USE_CCGSUBSURF define (always on now)
 - added G.editMesh->derived pointer... idea is to use this
   for mesh derived from editmesh instead of Mesh->derived (as the
   derived mesh tends to vary depending on what it came from).

   This part could be cleaner, also there may problems with it not
   being invalidated correctly.

 - And most importantly: In case people were beginning to worry all
   these edits were just crazy zr stuff, the big point comes about:
   Incremental subsurf calculation is now enabled. This gives massive
   speed improvements when editing a large mesh.

   For the eye-candy happy: try setting G.rt==52 before entering editmode
   and the edges and vertices (in optimal mode) will switch to displaying
   visually the age since a region has last been calculated. Lots of

16 years ago - fix some signed/unsigned comparison warnings
Daniel Dunbar [Thu, 31 Mar 2005 15:15:12 +0000 (15:15 +0000)]
 - fix some signed/unsigned comparison warnings

16 years ago - perhaps I should commit a version that compiles
Daniel Dunbar [Thu, 31 Mar 2005 13:56:50 +0000 (13:56 +0000)]
 - perhaps I should commit a version that compiles

16 years ago - committed VecLength function for theeth
Daniel Dunbar [Thu, 31 Mar 2005 13:44:23 +0000 (13:44 +0000)]
 - committed VecLength function for theeth

16 years agoDifferent floodfill method for PET connected with mesh. More accurate but needs two...
Martin Poirier [Wed, 30 Mar 2005 23:19:42 +0000 (23:19 +0000)]
Different floodfill method for PET connected with mesh. More accurate but needs two temporary scratch arrays to keep vectors and nearest element pointers.

Will comment the code more later tonight, I'm a bit pissed at the moment (stupid errors right in your face. grrrr)

16 years ago - zero derived and decimated pointers on copy
Daniel Dunbar [Wed, 30 Mar 2005 18:06:42 +0000 (18:06 +0000)]
 - zero derived and decimated pointers on copy

16 years ago - added dlm->medge for displistmesh_from_mesh
Daniel Dunbar [Wed, 30 Mar 2005 17:40:51 +0000 (17:40 +0000)]
 - added dlm->medge for displistmesh_from_mesh

16 years ago - Claims of speed improvement last night were slightly
Daniel Dunbar [Wed, 30 Mar 2005 17:32:23 +0000 (17:32 +0000)]
 - Claims of speed improvement last night were slightly
   overrated. Turns out there was a bug in recalc code where
   in editmode mesh was getting reevaluated all the time (because
   ob->disp doesn't get built in editmode). This should fix.
 - Fix some normal calculation/backwards face drawing

16 years agoFix for centered submenu (for example py export script) also worked
Ton Roosendaal [Wed, 30 Mar 2005 14:17:53 +0000 (14:17 +0000)]
Fix for centered submenu (for example py export script) also worked
when menu didn't open to left/right but on top/bottom. Caused errors...

16 years agoTwo scons changes:
Stephen Swaney [Wed, 30 Mar 2005 12:13:02 +0000 (12:13 +0000)]
Two scons changes:

1) fix evil use of internal scons interfaces that breaks latest scons version.

2) a hack to turn on new CCGSUBSURF stuff by adding -DUSE_CCGSUBSURFLIB
to extra_flags.  This is currently the default for all platforms except
win32 (due solely to my ignorance of win32 compiler flags).

16 years agoBug in new drawing code; hack with storing stuff in editvertex->prev did
Ton Roosendaal [Wed, 30 Mar 2005 10:12:05 +0000 (10:12 +0000)]
Bug in new drawing code; hack with storing stuff in editvertex->prev did
not get restored OK. :)

16 years ago - initial commit of a real (as in not just copying the DispListMesh)
Daniel Dunbar [Wed, 30 Mar 2005 08:12:27 +0000 (08:12 +0000)]
 - initial commit of a real (as in not just copying the DispListMesh)
   DerivedMesh implementation of CCGSubSurf. Only used in editmode at
   the moment, and does not draw smooth normals correctly.
 - Just in its own this brings a rather large speedup for editing

16 years ago - add editedge and editface for displistmesh_from_editmesh
Daniel Dunbar [Wed, 30 Mar 2005 06:39:55 +0000 (06:39 +0000)]
 - add editedge and editface for displistmesh_from_editmesh

16 years ago - fix another minor use of wrong mface bug
Daniel Dunbar [Wed, 30 Mar 2005 06:24:34 +0000 (06:24 +0000)]
 - fix another minor use of wrong mface bug

16 years ago - fix silly bug in mesh DerivedMesh tex drawing func (only was drawing
Daniel Dunbar [Wed, 30 Mar 2005 05:57:40 +0000 (05:57 +0000)]
 - fix silly bug in mesh DerivedMesh tex drawing func (only was drawing
   first face.
 - change DerivedMesh callback prototypes to help eliminate errors

16 years ago - strange drawing bug, wierd vertices were showing up (wrong
Daniel Dunbar [Wed, 30 Mar 2005 05:35:01 +0000 (05:35 +0000)]
 - strange drawing bug, wierd vertices were showing up (wrong
   DerivedMesh call)

16 years ago- update to msvc7 projectfiles to accomodate recent file additions
Joseph Gilbert [Wed, 30 Mar 2005 05:19:33 +0000 (05:19 +0000)]
- update to msvc7 projectfiles to accomodate recent file additions
- fixed bad path in extern project file

16 years ago - restored msvc warning disable code
Daniel Dunbar [Wed, 30 Mar 2005 05:05:05 +0000 (05:05 +0000)]
 - restored msvc warning disable code

16 years ago - made some DerivedMesh drawing functions more generic (take callback
Daniel Dunbar [Wed, 30 Mar 2005 00:32:10 +0000 (00:32 +0000)]
 - made some DerivedMesh drawing functions more generic (take callback
   to determine if element should be drawn and to set draw options),
   which meant some could be combined - eases implementation of new
   DerivedMesh types and keeps more app specific logic out of DerivedMesh

16 years ago - zero derivedmesh pointers on load
Daniel Dunbar [Tue, 29 Mar 2005 17:52:14 +0000 (17:52 +0000)]
 - zero derivedmesh pointers on load

16 years ago - removed dlm->flag
Daniel Dunbar [Tue, 29 Mar 2005 17:20:28 +0000 (17:20 +0000)]
 - removed dlm->flag

16 years ago - remove free_displist_by_type
Daniel Dunbar [Tue, 29 Mar 2005 17:10:07 +0000 (17:10 +0000)]
 - remove free_displist_by_type
 - free derived mesh on freedisplist_object... bit of a hack but
   just to be safe. oh dependency graph where are you!

16 years agoProp mode goodie;
Ton Roosendaal [Tue, 29 Mar 2005 17:05:43 +0000 (17:05 +0000)]
Prop mode goodie;

- Made proportional edit in Mesh editmode use connectivity to clip the
  area where proportional editing is allowed.
  Uses some kind of manhattan distance for clip area still, so is slightly
  too large for diagonals. Will be worked on!

- Fix; in constraint code, using (0 0 0) delta caused NaN.

16 years ago - remove unused var
Daniel Dunbar [Tue, 29 Mar 2005 16:56:26 +0000 (16:56 +0000)]
 - remove unused var

16 years ago - added Mesh->derived and Mesh->decimated DerivedMesh pointers
Daniel Dunbar [Tue, 29 Mar 2005 16:43:39 +0000 (16:43 +0000)]
 - added Mesh->derived and Mesh->decimated DerivedMesh pointers
 - removed DL_MESH displist type!!!! Now store a DerivedMesh directly.
 - May still be some issues left having to do with releasing this
   at the right time (old code just splashed free_displist all
   over the place).

16 years agoTiny error in Jiri's commit. Unselected meta elements needs the quat flag too if...
Martin Poirier [Tue, 29 Mar 2005 16:12:42 +0000 (16:12 +0000)]
Tiny error in Jiri's commit. Unselected meta elements needs the quat flag too if they want to rotate using PET.

16 years ago - print # bytes to add on sizeerror
Daniel Dunbar [Tue, 29 Mar 2005 15:31:35 +0000 (15:31 +0000)]
 - print # bytes to add on sizeerror

16 years agoRemoved comma at end of enumerator list to please fussy compiler.
Stephen Swaney [Tue, 29 Mar 2005 14:27:20 +0000 (14:27 +0000)]
Removed comma at end of enumerator list to please fussy compiler.

16 years agoChanged:
Kent Mein [Tue, 29 Mar 2005 13:06:58 +0000 (13:06 +0000)]
-       memset(m_keyboard_vector,32,0);
+       memset(m_keyboard_vector,0,32);

Patch submitted by Dave Jones


16 years ago - it is possible to rotate with MetaBalls in edit mode now
Jiri Hnidek [Tue, 29 Mar 2005 10:03:30 +0000 (10:03 +0000)]
 - it is possible to rotate with MetaBalls in edit mode now

16 years ago - simplify extverts handling
Daniel Dunbar [Tue, 29 Mar 2005 07:58:56 +0000 (07:58 +0000)]
 - simplify extverts handling

16 years ago - added drawFacesTex function to DerivedMesh with implementations
Daniel Dunbar [Tue, 29 Mar 2005 07:51:00 +0000 (07:51 +0000)]
 - added drawFacesTex function to DerivedMesh with implementations
 - switched drawmesh.c to use new functions
 - WHEE! This is last such function that has to be written for the time
   being, and also effectively marks the end of DL_MESH! DispListMesh still
   hangs around as a kind of interchange format but should also die once
   DerivedMesh provides more intimate mesh access.

   DL_MESH (the displist type for DispListMesh) is still used to hold
   the DispListMesh, but that will die as soon as new subsurf switches to
   using a bonafide DerivedMesh implementation. There is also one silly
   usage for the decimator that is easy to kill.
 - Oh, and I also made potatoe mode draw mesh vertex colors - seemed to
   be more uniform behavior.

16 years ago - fix shadedisplist to use derivedmesh
Daniel Dunbar [Tue, 29 Mar 2005 06:46:11 +0000 (06:46 +0000)]
 - fix shadedisplist to use derivedmesh
 - also a bug fix! Made subsurfs now use tface colors when shading

16 years ago - zero DispListMesh.{editedge,editface} on copy
Daniel Dunbar [Mon, 28 Mar 2005 21:53:26 +0000 (21:53 +0000)]
 - zero DispListMesh.{editedge,editface} on copy
 - calc normals for mesh displistmesh's

16 years ago - added mesh_get_derived_render
Daniel Dunbar [Mon, 28 Mar 2005 21:49:49 +0000 (21:49 +0000)]
 - added mesh_get_derived_render
 - cancelled previous commit to add RE_findTFAce, instead just added
   a MemArena to render struct... free'd at end of render, can be used
   to store other data as well
 - switch rendering to using DerivedMesh API... this is slightly more
   inefficient now because it is doing some unnecessary copying. Can
   be fixed by defining a DerivedMesh function to convert the object
   into a render object (on todo list)

16 years ago - Funny joke! Blender gave "Can't apply deform to shared mesh" error
Daniel Dunbar [Mon, 28 Mar 2005 19:55:04 +0000 (19:55 +0000)]
 - Funny joke! Blender gave "Can't apply deform to shared mesh" error
   and then went ahead and did it anyway. Someone is lying!

16 years ago - renderer currently uses links into tface structures that actually
Daniel Dunbar [Mon, 28 Mar 2005 19:43:45 +0000 (19:43 +0000)]
 - renderer currently uses links into tface structures that actually
   are owned by mesh (or displistmesh)... this causes problems for
   adapting to systems that build tfaces on the fly. Added RE_findTFace
   function to allow allocating tfaces inside renderer itself.

16 years ago - Bug fix, accidentally broke deform for non subsurfs.
Daniel Dunbar [Mon, 28 Mar 2005 19:41:33 +0000 (19:41 +0000)]
 - Bug fix, accidentally broke deform for non subsurfs.

16 years ago - switch some code to using BLI_strncpy (with right string lengths!)
Daniel Dunbar [Mon, 28 Mar 2005 18:37:19 +0000 (18:37 +0000)]
 - switch some code to using BLI_strncpy (with right string lengths!)

16 years agoShameless intrusive commit in Daniels beloved project! :)
Ton Roosendaal [Mon, 28 Mar 2005 17:17:51 +0000 (17:17 +0000)]
Shameless intrusive commit in Daniels beloved project! :)

The dl->mesh pointer was used without checking dl... dunno what this call
exactly does, but it causes crashes here. Fixed with a if(NULL) check.

16 years agoFix stupid error in connected code.
Martin Poirier [Mon, 28 Mar 2005 16:11:35 +0000 (16:11 +0000)]
Fix stupid error in connected code.

No more crashes, wheee!

16 years agobug fix for #2096:
Simon Clitherow [Mon, 28 Mar 2005 15:29:59 +0000 (15:29 +0000)]
bug fix for #2096:
  - switched strcpy calls to strncpy using FILE_MAXDIR & FILE_MAXFILE to prevent buffer overruns.  Non-windows code left untouched. :)

16 years ago - add bad level call stubs for bglBegin/bglVertex3fv/bglEnd
Daniel Dunbar [Mon, 28 Mar 2005 15:23:36 +0000 (15:23 +0000)]
 - add bad level call stubs for bglBegin/bglVertex3fv/bglEnd

16 years agoCleanup of widget code;
Ton Roosendaal [Mon, 28 Mar 2005 14:00:49 +0000 (14:00 +0000)]
Cleanup of widget code;

- made more general calls with args for drawing types
- made it accept transparency for all modes (used while transform now)
- added argument to detect 'combo' mode, gave offsets to translate/scale
  handles in combos.
- added 'pie chart' on view-aligned rotate for widget
- made trackball for rotate widget rt==4 behave compatible
- removed redundant code for 'ghosting'

16 years ago - subsurf creation no longer needs extverts argument... removed
Daniel Dunbar [Mon, 28 Mar 2005 08:43:24 +0000 (08:43 +0000)]
 - subsurf creation no longer needs extverts argument... removed

16 years ago - added nors to DispListMesh (for face normals)... this is just to
Daniel Dunbar [Mon, 28 Mar 2005 08:17:51 +0000 (08:17 +0000)]
 - added nors to DispListMesh (for face normals)... this is just to
   avoid throwing them on later with addnormalsdisplist which is just
   silly and burdensome.
 - renamed displist_calc_vert_normals to displist_calc_normals

16 years ago - removed old prototype (subsurf_optimal)
Daniel Dunbar [Mon, 28 Mar 2005 07:40:19 +0000 (07:40 +0000)]
 - removed old prototype (subsurf_optimal)

16 years ago - added getMappedVertCoEM and drawMappedVertEM to DerivedMesh with
Daniel Dunbar [Mon, 28 Mar 2005 07:10:32 +0000 (07:10 +0000)]
 - added getMappedVertCoEM and drawMappedVertEM to DerivedMesh with
   implementations (slightly redundant, could implement draw in terms
   of first... can be cleaned later)
 - switch to use of new APIs... all uses of EditVert->ssco are now
   clean (read: ready to die as soon as a proper DerivedMesh implementation
   is swapped in with ccgsubsurf)

16 years ago - added drawMapped{Verts,Edges,Faces}EMSelect calls to DerivedMesh with
Daniel Dunbar [Mon, 28 Mar 2005 06:46:21 +0000 (06:46 +0000)]
 - added drawMapped{Verts,Edges,Faces}EMSelect calls to DerivedMesh with
 - updated drawobject selection code to use DerivedMesh (last DispListMesh
   usage in drawobject.c that needs to be replaced! Woot!)
 - interface could still be a lot cleaner, mostly calculating indices for
   the various things to pass to selection color routine is hacky.

16 years ago - added mesh_get_cage_derived (returns appropriate DerivedMesh
Daniel Dunbar [Mon, 28 Mar 2005 05:58:43 +0000 (05:58 +0000)]
 - added mesh_get_cage_derived (returns appropriate DerivedMesh
   to be used as a cage - depends on ME_OPT_EDGE flag)

16 years ago - added set_framebuffer_index_color (shortcut for
Daniel Dunbar [Mon, 28 Mar 2005 05:55:45 +0000 (05:55 +0000)]
 - added set_framebuffer_index_color (shortcut for
   cpack(index_to_framebuffer(index)) but that is all that is ever

16 years agoadd new file DerivedMesh.c
Stephen Swaney [Mon, 28 Mar 2005 02:05:36 +0000 (02:05 +0000)]
add new file DerivedMesh.c

16 years ago - non-optimal subsurf was drawing regular mesh faces
Daniel Dunbar [Mon, 28 Mar 2005 01:21:27 +0000 (01:21 +0000)]
 - non-optimal subsurf was drawing regular mesh faces

16 years agoAlright, this hopefully fixes some problems with the last transform commit.
Martin Poirier [Mon, 28 Mar 2005 00:56:00 +0000 (00:56 +0000)]
Alright, this hopefully fixes some problems with the last transform commit.

Replaced old transform call when extruding and duplicating. Added a CTX_NOPET context flag for extrude. This is done rather a bit hackishly in Transform right now, better to do it with a on/off pet flag in TransInfo and check that everywhere instead.

Made sure transinfo Ext was initialised at NULL (I'm pretty sure it was in another spot, but LetterRip reported some crash leading me to believe that it might not be all the time. Better be safe than sorry).

Connected PET for curves uses the real distance for the fall off calculations now.

16 years agoTransform was still prototyped as having only one parameter in transform.h. Caused...
Martin Poirier [Sun, 27 Mar 2005 23:13:52 +0000 (23:13 +0000)]
Transform was still prototyped as having only one parameter in transform.h. Caused some warnings and possibly errors since some calls were missing the context.

The rest is proof of concept goody for a CONNECTED limiter for PET.
That is, PET affecting only elements which are connected together.

Only affects Curves right now since that was easier to test connectivity with. Still some polishing to do (falloff is based on distance of effect, not real distance), but it's a proof of concept, so...

16 years ago - update NMesh.c to use DerivedMesh API
Daniel Dunbar [Sun, 27 Mar 2005 22:51:48 +0000 (22:51 +0000)]
 - update NMesh.c to use DerivedMesh API

16 years ago - added DerivedMesh convertToDispListMesh function with implementations,
Daniel Dunbar [Sun, 27 Mar 2005 22:42:57 +0000 (22:42 +0000)]
 - added DerivedMesh convertToDispListMesh function with implementations,
   this is to ease migration.
 - updated particles and STL converter to use DerivedMesh interface. This
   is a bit wasteful at the moment, but these are not key performance areas.
   Can update once DerivedMesh has accessors for faces and face data.

16 years ago - added drawMappedEdgeEM function to DerivedMesh with implementations
Daniel Dunbar [Sun, 27 Mar 2005 22:14:57 +0000 (22:14 +0000)]
 - added drawMappedEdgeEM function to DerivedMesh with implementations
   (draws single mapped edge)
 - updated editmesh code to use new interface (-2 DLM uses)

16 years ago - added getNum{Verts,Faces} accessors to DerivedMesh with implementations
Daniel Dunbar [Sun, 27 Mar 2005 21:27:12 +0000 (21:27 +0000)]
 - added getNum{Verts,Faces} accessors to DerivedMesh with implementations
 - updated edit.c to use DerivedMesh interface

16 years agoContext parameter for Transform.
Martin Poirier [Sun, 27 Mar 2005 21:25:15 +0000 (21:25 +0000)]
Context parameter for Transform.

For tex space edit, crease (soon) and future use.

Manipulator assumes no context.

16 years agoScary commit!
Daniel Dunbar [Sun, 27 Mar 2005 20:39:28 +0000 (20:39 +0000)]
Scary commit!

 - Switch to using DerivedMesh interface for draw_mesh_object.
 - Code builds a "fake" DerivedMesh for Mesh/EditMesh which ends
   up making code a lot clearer.

Plenty of work to be done - the DerivedMesh is still very specialized
to how the code draws which means it is not a very general interface
and is a little messy. Should work though I hope.

16 years agoNOTE: New file to be added to project files
Daniel Dunbar [Sun, 27 Mar 2005 20:34:18 +0000 (20:34 +0000)]
NOTE: New file to be added to project files

 - add new DerivedMesh type, currently just encapsulates drawing

16 years agoTwo small fixes in transform, committed so Martin can work...
Ton Roosendaal [Sun, 27 Mar 2005 19:54:18 +0000 (19:54 +0000)]
Two small fixes in transform, committed so Martin can work...

- scale negative draws widget OK (scale widget only now)
- scale negative threshold (for flip) was on vertical Y, now is perpen-
  dicular to center of axis.

16 years agoButton image file with transform icons
Ton Roosendaal [Sun, 27 Mar 2005 18:18:08 +0000 (18:18 +0000)]
Button image file with transform icons

16 years agoTransform goodies;
Ton Roosendaal [Sun, 27 Mar 2005 18:17:48 +0000 (18:17 +0000)]
Transform goodies;

- Added icons for the Widgets to blenderbuttons pic
- Added in header - if widget in use - three buttons to choose widget type
  (hold shift for combo widgets)
- Hotkey CTRL+space now switches widgets on/off

I also noticed negative scaling doesn't work satisfying yet;
- for scale widget, using center didn't work correct anymore (fixed)
- negative scaling didn't even get applied! (fixed)
- but; scaling somethig negative now flips back to positive... ????

Last one i need Martin P for! Note that I had to change Mat3ToSize....

16 years ago - everyone loves prototypes
Daniel Dunbar [Sun, 27 Mar 2005 17:17:53 +0000 (17:17 +0000)]
 - everyone loves prototypes

16 years ago - one last CCG warning patch
Daniel Dunbar [Sun, 27 Mar 2005 14:38:18 +0000 (14:38 +0000)]
 - one last CCG warning patch

16 years ago - more warning removal/cleanup for CCG, apparently GCC is not
Daniel Dunbar [Sun, 27 Mar 2005 14:37:00 +0000 (14:37 +0000)]
 - more warning removal/cleanup for CCG, apparently GCC is not
   happy about coercing (xxx**) to (void**) (sadly enough)

16 years ago - get rid of some warnings in CCG code, thanks lukep
Daniel Dunbar [Sun, 27 Mar 2005 14:17:28 +0000 (14:17 +0000)]
 - get rid of some warnings in CCG code, thanks lukep

16 years agoAdding some docs for camera insertIpoKey additions
Johnny Matthews [Sun, 27 Mar 2005 13:34:59 +0000 (13:34 +0000)]
Adding some docs for camera insertIpoKey additions

16 years agoNew Bpy method: Camera.insertIpoKey()
Stephen Swaney [Sun, 27 Mar 2005 13:28:49 +0000 (13:28 +0000)]
New Bpy method: Camera.insertIpoKey()
Contributed by Johnny Matthews (guitarGeek)

16 years ago - lamp line was drawing in wrong location
Daniel Dunbar [Sat, 26 Mar 2005 21:41:39 +0000 (21:41 +0000)]
 - lamp line was drawing in wrong location

16 years ago - shademodel wasn't being set correctly for normal mesh face draw
Daniel Dunbar [Sat, 26 Mar 2005 19:47:22 +0000 (19:47 +0000)]
 - shademodel wasn't being set correctly for normal mesh face draw

16 years ago - remove some unused variables from cleanup
Daniel Dunbar [Sat, 26 Mar 2005 19:42:37 +0000 (19:42 +0000)]
 - remove some unused variables from cleanup
 - fix for when mesh has no medge (would draw as points always)

16 years agoUpdated Bpy method Object.getData() now supports new Text3d type.
Stephen Swaney [Sat, 26 Mar 2005 18:14:29 +0000 (18:14 +0000)]
Updated Bpy method Object.getData() now supports new Text3d type.
Contributed by Johnny Matthews.

16 years agoAdding some docs for world and lamp insertIpoKey additions
Johnny Matthews [Sat, 26 Mar 2005 18:01:30 +0000 (18:01 +0000)]
Adding some docs for world and lamp insertIpoKey additions

16 years agoMore Bpy goodness!
Stephen Swaney [Sat, 26 Mar 2005 17:30:21 +0000 (17:30 +0000)]
More Bpy goodness!
New insertIpoKey() methods for Lamp and World types.
Contributed by Johnny Matthews (guitarGeek)

16 years ago - integrated get_mvert_weight and color_temperature
Daniel Dunbar [Sat, 26 Mar 2005 17:29:37 +0000 (17:29 +0000)]
 - integrated get_mvert_weight and color_temperature
   into drawobject.c (just used for calculating weight
 - removed two_sided (replace with glLightModeli calls)
 - huge rewrite of drawobject.c for meshes, extracting simple
   drawing functions and then reworking to bring some order
   and clarity back to the code.

   A lot was changed here so it is likely I missed a few
   things in testing although I tried to be very careful.
   Please let me know if you find any changes in drawing.

16 years agoadd new file SumoPHYCallbackBridge.cpp to SConscript for SCons build.
Stephen Swaney [Sat, 26 Mar 2005 13:41:15 +0000 (13:41 +0000)]
add new file SumoPHYCallbackBridge.cpp to SConscript for SCons build.

16 years agoTEMPORAL HACK!!!
Ton Roosendaal [Sat, 26 Mar 2005 10:59:49 +0000 (10:59 +0000)]

Added the is_a_really_crappy_nvidia_card() call in BMF_DrawString(), this
to solve a bug in NVidia 6800 drivers of MacOSX G5. It is #ifdeffed for
OSX only, and queries for a NVidia 6800 card to activate the patch.

The issue is that these drivers forgot to correctly implement viewport()
offset for drawing bitmap fonts, causing text display in Blender to be
invisible, except for the leftmost/bottom sub window.

This hack will be removed when Apple releases a driver upgrade, which is
unknown when to happen. Has to be decided still if this is worth for a
release, or that we provide the hack as separate download.

Thanks Randall Rickert for all testing, and Daniel for code review! :)

16 years ago - made give_mesh_mvert static
Daniel Dunbar [Fri, 25 Mar 2005 21:18:14 +0000 (21:18 +0000)]
 - made give_mesh_mvert static

16 years agoAdded Manipulator Combo mode, with translate/rotate/scale combined. Center
Ton Roosendaal [Fri, 25 Mar 2005 16:59:04 +0000 (16:59 +0000)]
Added Manipulator Combo mode, with translate/rotate/scale combined. Center
remains translate though. Can be activitated as 4th CTRL hotkey cycle.

16 years agoI'll break this commit into two sections in the moto files
Kent Mein [Fri, 25 Mar 2005 16:31:05 +0000 (16:31 +0000)]
I'll break this commit into two sections in the moto files
I got rid of a few warnings about blah shadows a previous declaration.

In the gameengine files I fix the following:
removed some unused vars
removed dos style line breaks
added newlines to last line in a couple of files to remove warnings.


16 years agoAdjusted tooltips for RGB and Grad buttons on particle settings panel. User
Chris Burt [Fri, 25 Mar 2005 16:05:31 +0000 (16:05 +0000)]
Adjusted tooltips for RGB and Grad buttons on particle settings panel. User
pointed out in bug tracker that these weren't entirely accurate.

16 years agoQuickly hacked together a fix for game engine compiling. There were two
Chris Burt [Fri, 25 Mar 2005 14:57:25 +0000 (14:57 +0000)]
Quickly hacked together a fix for game engine compiling. There were two
missing files in Kester's new commits. This commit adds these two files so
that compiling can continue as it is intended to. Emilie M. found a
home for the files rather quickly, Ton recieived the files from Erwin via
email, and we all tested. Works great! Thanks to everyone that helped!

16 years agoSmall fix for the following warning:
Kent Mein [Fri, 25 Mar 2005 14:48:29 +0000 (14:48 +0000)]
Small fix for the following warning:
../include/MT_Quaternion.h:62: warning: declaration of 'angle' shadows a member
of 'this'


16 years ago - removed unused variable
Daniel Dunbar [Fri, 25 Mar 2005 14:28:51 +0000 (14:28 +0000)]
 - removed unused variable

16 years agoTransform fix; in PoseMode you now can do multiple chains again.
Ton Roosendaal [Fri, 25 Mar 2005 13:31:59 +0000 (13:31 +0000)]
Transform fix; in PoseMode you now can do multiple chains again.

16 years agoadded an #include <stdlib.h> to fix this:
Kent Mein [Fri, 25 Mar 2005 13:18:13 +0000 (13:18 +0000)]
added an #include <stdlib.h> to fix this:
KX_RayCast.h:92: error: `NULL' was not declared in this scope


16 years agoA couple of wee transform featurettes;
Ton Roosendaal [Fri, 25 Mar 2005 11:17:59 +0000 (11:17 +0000)]
A couple of wee transform featurettes;

- center of rotation for camera in cameraview rotate has to remain the
  camera center itself, drawing the dashed helpline then doesn't work,
  since it's behind the camera clipplane. Just disabled that line.

- made MMB switch for cameraview grab to become quadratic, for a dolly
  this feels OK, and makes it possible to move in small and large scenes.

- restored SHIFT modifier for translation and scaling. This based on old
  convention that allowed precision editing on top of the transform you
  already applied before pressing SHIFT.
  Solved it with a new flag (T_SHIFT_MOD), since the G.qual cannot be
  used. Transform() innerloop has to detect the SHIFT event itself.
  Also coded it with storing the mouseposition while SHIFT event happened.
  Hope Martin can approve! :)

- Martin's last commit made Manipulator Translate not work, it passed on
  a zero translation to the constrainter, causing NaN's. Nicely catched the

- Fixed 'Trackball' to accept number input too

16 years agoPatch from Erwin Coumans: Abstract the physics engine.
Kester Maddock [Fri, 25 Mar 2005 10:35:31 +0000 (10:35 +0000)]
Patch from Erwin Coumans: Abstract the physics engine.

Reenable ODE in the physics engine buttons.