Commit Graph

31382 Commits

Author SHA1 Message Date
Sergey Sharybin
34ce85571f Camera tracking integration
===========================

Return non-blocking behavior to grease pencil sketch mode.

It is needed to implement more accurate line drawing based
on using mouse click on where line "knot" should be added
and allowing pan/zoom between such knots selection.

There are still issues with vertex paint/sculpt modes,
but they aren't critical -- just behavior could be
improved here.
2011-08-11 18:18:46 +00:00
Sergey Sharybin
a8c2759b97 Merging r39251 through r39311 from trunk into soc-2011-tomato
Splash screen is kept to be tomatoes.
2011-08-11 18:16:29 +00:00
Nathan Letwory
3359b7d7b7 use correct libdir for buildbot win64. 2011-08-11 16:43:36 +00:00
Sergey Sharybin
c9216e390c Commiting patch from jensverwiebe for NDOF support on OSX 2011-08-11 15:59:19 +00:00
Sergey Sharybin
944cdf04dd Fix for crash when using undo during sketching session.
Currently, grease pencil conflicts with such operators
as undo and set object mode which makes behavior totally
unpredictable and crash for some cases.

The only way to solve this proper is to ger rid of pointers
to data which can chage stored in operator custom data.
2011-08-11 13:40:47 +00:00
Brecht Van Lommel
9c9cd71a86 Fix #28180: crash running wm.keyconfigs.user.keymaps.new("My Keymap").
There isn't much point in doing this at the moment, but shouldn't crash.
2011-08-11 11:56:02 +00:00
Mitchell Stokes
165e6dbc07 Adding a readonly length_squared property to mathutils.Vector. This is simply vector.dot(vector), so nothing new is really added, but it's nice for writing more intent revealing code. In other words:
if vec.dot(vec) > some_distance*some_distance:
    do_something()

might not be quite as obvious looking as:

if vec.length_squared > some_distance*some_distance:
    do_something()

As to why you'd want to use length_squared over length is that length uses a square root, which isn't always necessary for simple distance checks (e.g., closest object, checks like the ones above, ect).
2011-08-11 09:40:14 +00:00
Campbell Barton
99caa9470e fix [#28213] Imperial unit for 0.001 inches inconsistently displayed as mils and thous 2011-08-11 08:24:56 +00:00
Guillermo S. Romero
80acfdc7a0 SVN maintenance. 2011-08-11 06:40:04 +00:00
Campbell Barton
a7663cc377 use ghash for operator and menu types, was doing string lookup in the operator list (containing over 1000 items) for each button draw.
gives small speedup for UI drawing and overall startup time.
2011-08-11 06:06:17 +00:00
Campbell Barton
0fac849d44 ifdef'd outliner code which is spesific to gsoc pepper with '// GSOC_PEPPER' so its obvious. this will keep merging pepper changes from conflicting and can be removed when its finally merged. 2011-08-11 05:50:05 +00:00
Campbell Barton
e97617e3fb merge outliner refactor so we dont have to keep outliner.c locked in trunk.
this wont build because of changes spesific to pepper, fix coming next.

svn merge source/blender/editors/space_outliner -r36830:38987 https://svn.blender.org/svnroot/bf-blender/branches/soc-2011-pepper/source/blender/editors/space_outliner
2011-08-11 05:46:18 +00:00
Campbell Barton
07e8bfd2f2 unlocking outliner.c and removing... (merging refactor from pepper but looks like this will take a few steps) 2011-08-11 05:43:20 +00:00
Sergey Sharybin
ce02824535 Camera tracking integration
===========================

Make calibration grid "outer" boundaries always be inside frame.
2011-08-10 21:14:12 +00:00
Campbell Barton
50277c48ba fix for regression for shape key UI, values are now editable again in the list, double checked this works for mesh/curve and lattice types. 2011-08-10 20:12:27 +00:00
Sergey Sharybin
d8d8954de0 Camera tracking integration
===========================

Changes to manual calibraiton:

- Grease pencil is now getting distorted, so now workflow is
  changing to making straight GP line line match footage.

  I've tried to make GP lines not changing their start and
  end points from their "keyed" position.

  Should be tested because this could be done not in
  very accurate way.

- Fixed crash when adding new GP layer when there's no
  frames yet and manual calibration is enabled.
2011-08-10 18:44:05 +00:00
Campbell Barton
11aa9ff223 error in own recent commit. set subversion to 0 2011-08-10 16:05:20 +00:00
Thomas Dinges
e8471be5f2 2.59 Splash screen by tomket7. Congratulations!
Chosen by the jury Ben Simonds, Reynante Martinez and Hjalti Hjálmarsson.
2011-08-10 16:03:45 +00:00
Campbell Barton
45d99da8a2 Version bump for 2.59 2011-08-10 16:02:02 +00:00
Campbell Barton
cff2caa8a7 fix [#28206] Motion Paths shown in 3DView even when Only Render option is enabled 2011-08-10 15:53:46 +00:00
Sergey Sharybin
f403102736 Camera tracking integration
===========================

- Fix for reading grease pencil data for movie clips.
- Request from Francois: undistort grease pencil to allow
  manual calibration.

Only strokes made in "Cursor" space are getting undistorted,
strokes made in view space are kept unchanged.

This allows to make such workflow of manual calibration:
- Outline straight line in footage with GP.
- [Optional] mute footage.
- Enable Display->Manual Calibration.
- Tweak distortion coefficients until you'll like result.
- [Optional] Use strokes made in viewspace to help checking
  of straightness of outlined features.

Not ideal but could be nice addition for grid-only calibration
until proper tools are getting ported to libmv/blender.
2011-08-10 13:59:03 +00:00
Sergey Sharybin
284c03f874 Merging r39191 through r39250 from trunk into soc-2011-tomato 2011-08-10 12:16:44 +00:00
Sergey Sharybin
a246d53791 Camera tracking integration
===========================

Fixed wrong jpeg files saved by proxy builder.

Additional changes:
  - Fixed some wrong copyrights in my own files.
  - Added copyrights headers to Peter's indexer files.
2011-08-10 10:29:39 +00:00
Nathan Letwory
3758f125fc Fix for incorrect parameter amount. 2011-08-10 09:30:45 +00:00
Campbell Barton
036077ebc6 fix for error in template 2011-08-10 09:16:35 +00:00
Campbell Barton
958c468b07 fix [#28203] Misplaced string in bone constraints 2011-08-10 07:49:18 +00:00
Nathan Letwory
4da9a8959f Fix [#28195] Particles objects disappear in viewport, and 90° rotation
Reported by Jean Francois Sarazin

Lack of normal normalisation caused scaling issues. SIGGRAPH fix by jahka and jesterKing. Thanks to host dfelinto with entertainment provided by slikdigit.
2011-08-10 07:36:57 +00:00
Campbell Barton
3a9b288bc7 fix for [#28201] blender crashes when "mpeg" selected
2 changes
- When writing OGG only allow Theora encoding, this fixes the crash.
- When setting the MPEG preset, dont allow the 'Codec' to be left as Theora, this is just confusing.

* note that this is highly confusing for users and devs - there are 4 places to set the codec/format, with both python and C presets :S.
2011-08-10 07:36:44 +00:00
Campbell Barton
a10e00dc57 fix for crash undoing grease pencil session, last action would free entire frame which the session held a reference to. 2011-08-09 21:32:46 +00:00
Campbell Barton
3ddbc3869d fix [#28197] Undoing Grease pencil removes last 2 strokes 2011-08-09 20:33:35 +00:00
Campbell Barton
4262bd2906 fix [#28196] Unwrap tris in lightmap pack 2011-08-09 20:00:53 +00:00
Campbell Barton
0207d9ce27 style change, harmless changes while looking into bug [#28196] 2011-08-09 19:59:01 +00:00
Sergey Sharybin
88dbf20896 Camera tracking integration
===========================

Forgot to port draw sensor code to new sensor usa case.
2011-08-09 19:58:14 +00:00
Sergey Sharybin
f2f6ee4af9 Camera tracking integration
===========================

Fixing usage on incorrect pointer to get clip idblock when doing
rna update functions.
2011-08-09 19:26:56 +00:00
Sergey Sharybin
c613a004ab Camera tracking integration
===========================

Fixing some problems caused by modifying imbuf from cache
when building proxy and preventing attempt to load image
duting saving it from cache builder.
2011-08-09 18:26:21 +00:00
Sergey Sharybin
ba8c5977b0 Camera tracking integration
===========================

Use initial pixel aspect ratio of 1.0 for new clips.
2011-08-09 17:51:32 +00:00
Sergey Sharybin
dda38732d1 Camera tracking integration
===========================

Changes into sensor size use case.

There was problem with vertical sensor size which can't actually
affect on things due to we've got fixed image resolution. So
as soon horizontal size gets defined, both of sensor height
and vertical FOV is known and exposing it into UI makes things
difficult to understand.

That's why vertical sensor size was dropped.

Also added pixel aspect to camera settings fo clip editor.
Solver will sue this value rather than value from display
aspect ratio.

This pixel aspect would be copied to render settings after solving
so things should match now between footage, solving anf footage.
2011-08-09 15:12:20 +00:00
Campbell Barton
22694c993a fix [#28186] textboxes properties not animatable 2011-08-09 14:50:40 +00:00
Campbell Barton
da6bc69ca9 fix [#28191] Exception when enabling a script for a newer Blender build 2011-08-09 14:16:22 +00:00
Campbell Barton
08e184f302 note to address issue raised by report [#28190]. 2011-08-09 13:50:27 +00:00
Sergey Sharybin
6058543169 Camera tracking integration
===========================

Fixed tracking speed regression caused by proxies commit.
Use frames from cache when tracking if available and also
but frames read during tracking into cache (if proxying
allows this).
2011-08-09 13:05:18 +00:00
Sergey Sharybin
30a7feffdc Camera tracking integration
===========================

More accurate sliding of undistortion coefficients.
2011-08-09 12:08:46 +00:00
Sergey Sharybin
2a5a5bcd5a Camera tracking integration
===========================

Bundling new version of libmv. It's repo is ready for
bundling again, some patches which were applied on our
side are in libmv repo now.

This new version of libmv also contains patch from John Carpenter
which makes reconstruciton a bit more "stable" -- some kind
of fallback algorithm.
2011-08-09 10:42:39 +00:00
Campbell Barton
f98e2161d0 change doxygen string to 2.59 2011-08-09 07:48:40 +00:00
Thomas Dinges
2dfc51388c Blender 2.59:
* Update the readme file
* Update link to release logs, they point to http://www.blender.org/development/release-logs/blender-259/ now
2011-08-09 07:33:51 +00:00
Campbell Barton
ffd5fa3eea off by 1 error with number keys in ghost/sdl 2011-08-09 07:09:49 +00:00
Sergey Sharybin
6752fe77ec Camera tracking integration
===========================

- Code cleanup.
- Fixed small bug with cleanup operator.
2011-08-08 20:25:00 +00:00
Sergey Sharybin
e19e29481c Camera tracking integration
===========================

Next attempt to fix MSVC compilation.

I wish i've got my laptop by hand..
2011-08-08 19:02:18 +00:00
Sergey Sharybin
2cdf7e3868 Camera tracking integration
===========================

Just another attempt to fix compilation with msvc:
- Use BLI_snprintf instead of snprintf
- Do not use C99 rint function
2011-08-08 18:44:19 +00:00
Sergey Sharybin
3ae193fc77 Camera tracking integration
===========================

Another attempt to fix compilation on windows.
2011-08-08 18:23:56 +00:00