blender-staging.git
15 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

15 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

15 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)

15 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

15 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

15 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

15 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...

15 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).

15 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. :)

15 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
   subsurfs.

15 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

15 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

15 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

15 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)

15 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

15 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

15 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
   implementations.

15 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

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

15 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!

15 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.

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

15 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).

15 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.

15 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

15 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.

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

Patch submitted by Dave Jones

Kent

15 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

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

15 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.

15 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
   displist.

15 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

15 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)

15 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!

15 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.

15 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.

15 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!)

15 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.

15 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!

15 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. :)

15 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

15 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'

15 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

15 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

15 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)

15 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)

15 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
   implementations
 - 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.

15 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)

15 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
   used.

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

15 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

15 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.

15 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...

15 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

15 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.

15 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)

15 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

15 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.

15 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.

15 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

15 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.

15 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

15 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....

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

15 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

15 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)

15 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

15 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

15 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)

15 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

15 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

15 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)

15 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.

15 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

15 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)

15 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
   map)
 - 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.

15 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.

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

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! :)

15 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

15 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.

15 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.

Kent

15 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.

15 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!

15 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'

Kent

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

15 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.

15 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

Kent

15 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
  exception.

- Fixed 'Trackball' to accept number input too

15 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.

15 years agoBig patches:
Kester Maddock [Fri, 25 Mar 2005 10:33:39 +0000 (10:33 +0000)]
Big patches:
Erwin Coumans: Abstract the physics engine
Charlie C: Joystick fixes
Me: Moved the ray cast (shadows, mouse sensor & ray sensor)

15 years agoCommented out some old cruft in the Makefile which seemed to be unrelated
Chris Burt [Fri, 25 Mar 2005 04:25:54 +0000 (04:25 +0000)]
Commented out some old cruft in the Makefile which seemed to be unrelated
to the Cygwin platform. This produced some silly error message about files
which haven't existed in the CVS repository for many months now. I can
remember seeing this message for at least a year and since it has *never*
changed I decided to investigate. Looks like unmaintained part of the
build system that nobody pays attention to but just in case I've left it
in tact with the following comment:

This code below seems outdated and doesn't even seem to apply to the
Windows platform. I've commented it out until someone can take a look at it
and confirm or deny. If it breaks anything blame Chris Burt / Desoto

Hopefully that's clear enough, but I really think this is a trivial change
and if after review nobody minds I'll simply erase the offending code.

15 years agoSince Cygwin isn't compatible with all of this fancy AVI codec business we
Chris Burt [Fri, 25 Mar 2005 03:47:19 +0000 (03:47 +0000)]
Since Cygwin isn't compatible with all of this fancy AVI codec business we
need to do a check to be sure that we're not attempting to compile AVI
codec related features on Cygwin.

Prior to Rob's commit today, this setting wasn't exposed to Cygwin by
default because it was hidden by a WITH_QUICKTIME ifdef but when Rob
cleaned up today he removed that and the WIN32 ifdef inspired Cygwin and
the free tools to try and compile these pieces. This resulted in an
undefined reference to get_avicodec_settings.

Rob: Please review this change to be sure its compatible with the rest of
your integration of the avicodec and quicktime. It seems to go flawlessly
here but without your OK I'm not comfortable making this permenant. I based
this modifcation on other instances of this check for FREE_WINDOWS so it
should be just fine.

As always if it breaks something blame Ton. :P

15 years agoaxisProjection can take care of zero-length vector so we don't need to check anymore...
Martin Poirier [Fri, 25 Mar 2005 03:28:08 +0000 (03:28 +0000)]
axisProjection can take care of zero-length vector so we don't need to check anymore. Was giving some problems with cameras looking perfectly down.

Also removed all NEWTRANSFORM defines, using the new code all the time now.

15 years agoReworked the camera dolly/parallel axis constraint code a bit. Works pretty much...
Martin Poirier [Thu, 24 Mar 2005 21:32:52 +0000 (21:32 +0000)]
Reworked the camera dolly/parallel axis constraint code a bit. Works pretty much like the Shrink/Fatten code, meaning pull the mouse toward you pulls the camera, push pushes it away.

Also added a T_CAMERA flag for camera grab, which gets set on TransData conversion.

15 years agoBug fix 2303
Ton Roosendaal [Thu, 24 Mar 2005 21:01:12 +0000 (21:01 +0000)]
Bug fix 2303

The gamma functions in gammaCorrectionTables.c cannot be used to correct
and correct back with identical results... causing banding in rendering
pictures with halos.

15 years agoTransform fixes;
Ton Roosendaal [Thu, 24 Mar 2005 18:47:09 +0000 (18:47 +0000)]
Transform fixes;

- Camera translate in camera view, with MMB, works again. Code needs
  verification by Martin... it does it different now too.
- Camera rotate in camera view works again. MMB switches to 'trackball',
  as formerly. Isn't consistant with other rotate+MMB though...
- rotate camera in cameraview around cursor doesn't 'feedack' anymore

Martin; I only use the TransInfo->persinv[4][4] now, but I think it's
safe to use viewmat and viewinv too?

15 years agoFunction std_rmouse_transform() works with function pointer to denote
Ton Roosendaal [Thu, 24 Mar 2005 13:13:00 +0000 (13:13 +0000)]
Function std_rmouse_transform() works with function pointer to denote
what todo. With the new Transform(), using different args, it's not
easy to do it with single function pointer.

For the time being, the function pointer isn't used for the 3d window.

15 years agoBug fix #2311
Ton Roosendaal [Thu, 24 Mar 2005 09:37:06 +0000 (09:37 +0000)]
Bug fix #2311

File name (40) and dirname (80) were too short in sequence data. Made it
compliant using defines FILE_MAXFILE and FILE_MAXDIR.
Also replaced all strcpy() and strcat() with strncpy/strncat, with the
defines in it.
Oh, also fixed plugin path length for sequence, was just 80!

Bug fix #2366

Restored old convention that made using SHIFT+CTRL while using button-
sliders go with 0.1 stepsize of CTRL.
(noticed too late that Chris Burt assigned to self... sorry!)

15 years agoBug fix #2337
Ton Roosendaal [Wed, 23 Mar 2005 22:19:51 +0000 (22:19 +0000)]
Bug fix #2337

SHIFT+Z shaded view could display Shadeless overflows, due to lack of
clipping float to a char. :)

15 years agobug fix 2353
Ton Roosendaal [Wed, 23 Mar 2005 21:20:27 +0000 (21:20 +0000)]
bug fix 2353

Mesh object with hooks, which was used as duplivertor, didn't render the
duplicated objects on correct locations.
It did show OK in 3d window though, was due to not synced drawing and
render convertor code.