Commit Graph

49837 Commits

Author SHA1 Message Date
Martin Poirier
9f2f13aa99 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...
2005-03-27 23:13:52 +00:00
Daniel Dunbar
0d19ac1d94 - update NMesh.c to use DerivedMesh API 2005-03-27 22:51:48 +00:00
Daniel Dunbar
57b1660420 - 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.
2005-03-27 22:42:57 +00:00
Daniel Dunbar
e86d5ea498 - added drawMappedEdgeEM function to DerivedMesh with implementations
(draws single mapped edge)
 - updated editmesh code to use new interface (-2 DLM uses)
2005-03-27 22:14:57 +00:00
Daniel Dunbar
2a66e1d73f - added getNum{Verts,Faces} accessors to DerivedMesh with implementations
- updated edit.c to use DerivedMesh interface
2005-03-27 21:27:12 +00:00
Martin Poirier
05685e6ca7 Context parameter for Transform.
For tex space edit, crease (soon) and future use.


Manipulator assumes no context.
2005-03-27 21:25:15 +00:00
Daniel Dunbar
35aa81cd2c 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.
2005-03-27 20:39:28 +00:00
Daniel Dunbar
818d76bdcb NOTE: New file to be added to project files
- add new DerivedMesh type, currently just encapsulates drawing
2005-03-27 20:34:18 +00:00
Ton Roosendaal
9cfcd5d82e 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.
2005-03-27 19:54:18 +00:00
Ton Roosendaal
b8d59ccb69 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....
2005-03-27 18:17:48 +00:00
Daniel Dunbar
642012064b - everyone loves prototypes 2005-03-27 17:17:53 +00:00
Daniel Dunbar
9744f93f0c - one last CCG warning patch 2005-03-27 14:38:18 +00:00
Daniel Dunbar
61c9e1035c - more warning removal/cleanup for CCG, apparently GCC is not
happy about coercing (xxx**) to (void**) (sadly enough)
2005-03-27 14:37:00 +00:00
Daniel Dunbar
3c5a013c2e - get rid of some warnings in CCG code, thanks lukep 2005-03-27 14:17:28 +00:00
Johnny Matthews
c9c47bd44e Adding some docs for camera insertIpoKey additions 2005-03-27 13:34:59 +00:00
Stephen Swaney
9fc5849812 New Bpy method: Camera.insertIpoKey()
Contributed by Johnny Matthews (guitarGeek)
2005-03-27 13:28:49 +00:00
Daniel Dunbar
577f822a40 - lamp line was drawing in wrong location 2005-03-26 21:41:39 +00:00
Daniel Dunbar
f102ee24e1 - shademodel wasn't being set correctly for normal mesh face draw 2005-03-26 19:47:22 +00:00
Daniel Dunbar
b92e0d1723 - remove some unused variables from cleanup
- fix for when mesh has no medge (would draw as points always)
2005-03-26 19:42:37 +00:00
Stephen Swaney
9465bf6881 Updated Bpy method Object.getData() now supports new Text3d type.
Contributed by Johnny Matthews.
2005-03-26 18:14:29 +00:00
Johnny Matthews
24e52b703e Adding some docs for world and lamp insertIpoKey additions 2005-03-26 18:01:30 +00:00
Stephen Swaney
c9c0e8d50c More Bpy goodness!
New insertIpoKey() methods for Lamp and World types.
Contributed by Johnny Matthews (guitarGeek)
2005-03-26 17:30:21 +00:00
Daniel Dunbar
5c87aefa4b - 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.
2005-03-26 17:29:37 +00:00
Daniel Dunbar
9b40577d3a - made give_mesh_mvert static 2005-03-25 21:18:14 +00:00
Ton Roosendaal
fe3b127e23 Added Manipulator Combo mode, with translate/rotate/scale combined. Center
remains translate though. Can be activitated as 4th CTRL hotkey cycle.
2005-03-25 16:59:04 +00:00
Chris Burt
589240926b Adjusted tooltips for RGB and Grad buttons on particle settings panel. User
pointed out in bug tracker that these weren't entirely accurate.
2005-03-25 16:05:31 +00:00
Daniel Dunbar
f49d7133d0 - removed unused variable 2005-03-25 14:28:51 +00:00
Ton Roosendaal
c4971c2082 Transform fix; in PoseMode you now can do multiple chains again. 2005-03-25 13:31:59 +00:00
Ton Roosendaal
727a056de4 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
2005-03-25 11:17:59 +00:00
Kester Maddock
cf30d9443d Patch from Erwin Coumans: Abstract the physics engine.
Reenable ODE in the physics engine buttons.
2005-03-25 10:35:31 +00:00
Chris Burt
b9da61202b 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
2005-03-25 03:47:19 +00:00
Martin Poirier
ea15126d75 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.
2005-03-25 03:28:08 +00:00
Martin Poirier
4bcf80bf4f 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.
2005-03-24 21:32:52 +00:00
Ton Roosendaal
9e90f1407e 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.
2005-03-24 21:01:12 +00:00
Ton Roosendaal
76f2346080 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?
2005-03-24 18:47:09 +00:00
Ton Roosendaal
5348fcd293 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.
2005-03-24 13:13:00 +00:00
Ton Roosendaal
7b6ec97182 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!)
2005-03-24 09:37:06 +00:00
Ton Roosendaal
8b69f0cfd9 Bug fix #2337
SHIFT+Z shaded view could display Shadeless overflows, due to lack of
clipping float to a char. :)
2005-03-23 22:19:51 +00:00
Ton Roosendaal
90caa93d67 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.
2005-03-23 21:20:27 +00:00
Rob Haarsma
b86dc81cf3 Removed a couple of redundant "FTF_api.h" includes,
removed leftovers from Freeimage/Imagemagick experiments
and removed stuff from a Quicktime for linux implementation.

Also removed the (win32) Fullscreen button from the UI and
disabled the corresponding commandline option. The code is
still present to reenable the option whenever the ATI issues
get solved.
2005-03-23 21:10:03 +00:00
Ton Roosendaal
6be51da81a Moved init of new gridview variable, for adaptive grid steps, out of
function that was only called in ortho... grid snapping otherwise can
not work. Thanks i-Alexander for reporting!
2005-03-23 21:08:15 +00:00
Ton Roosendaal
0ad76a613d bug fix #2367
Activate object in oops, while in posemode (or even editmode) was possible,
potentially causing all kinds of nasty stuff.
2005-03-23 19:21:43 +00:00
Daniel Dunbar
b264636469 Fix for bug #1444
- this changed creasing behavior at vertices with >2 adjacent creased
   edges. Hope no one minds (new behavior should be nicer).
2005-03-23 19:00:57 +00:00
Ton Roosendaal
d02b83cf66 - Fix for CTRL (and possible ALT, SHIFT) as hotkey; now also works while
moving mouse around :)
- Shift+D duplicate uses new transform
2005-03-23 18:50:03 +00:00
Kent Mein
0ae9af34a0 a fix for: https://projects.blender.org/tracker/index.php?func=detail&aid=1173&group_id=9&atid=126
blender now does a little more homework to figure out what type of avi file is
being loaded.

Kent
2005-03-23 18:33:52 +00:00
Ton Roosendaal
7c1303bf25 Bug fix #2375
Akey in ipowindow didn't deselect anymore. Or worse... each main refresh
in ipowindow selected all ipos!

Was related to trying to fix mess from jK's commit last year... now its
scientifically ok again! :)
2005-03-23 16:55:22 +00:00
Ton Roosendaal
5412cab522 Bug fix #2349
Outliner click on mesh in screen without 3d window crashed. NULL pointer!
2005-03-23 15:40:50 +00:00
Ton Roosendaal
09ed2cef75 New feature, since long on todo;
The grid function (transform translate, snap-to) now uses the grid step as
displayed in the 3d window, so it depends on how much you zoomed in/out.

The threshold for it is a bit tricky... it follows the drawing, but the
blending in/out of grid makes it sometimes not obvious.  might need slight
tweak?
2005-03-23 14:24:43 +00:00
Ton Roosendaal
7e6a65bc62 Monkey got accidentally 'recalcnormalled'. Causing eyes to have normals
pointing inside. Fixed!
2005-03-23 13:09:22 +00:00
Ton Roosendaal
1bbc60f63e Bug #2444
Jkey, for showing spare render page, didn't work when using ztransp
material, or buttons F5 open or shaded view.... quite strange eh!
Caused by init-render-material setting R.flag to use Ztransp render.
Globals causing havock yes...
2005-03-23 12:47:23 +00:00