Commit Graph

25984 Commits

Author SHA1 Message Date
Sergey Sharybin
08c4aaa01b Camera tracking integration
===========================

Initial integration of proxies into movie clip editor.

Known issue: marker preview area uses proxyed image,
             hopefully fix would be available soon.
2011-08-08 12:18:32 +00:00
Sergey Sharybin
33e829819e Camera tracking integration
===========================

Commiting VSE-proxies patch from Peter Schlaile.

Description is here: http://lists.blender.org/pipermail/bf-committers/2011-May/032152.html
Git commit hash: baaecf244b83c70cb57e1bf6fdd51dd8591bde5b
2011-08-08 12:18:20 +00:00
Sergey Sharybin
14e7aa25de Merging r39173 through r39178 from trunk into soc-2011-tomato 2011-08-08 12:11:40 +00:00
Campbell Barton
24acf58fc4 quiet harmless py resource warning - file opened but not closed. 2011-08-08 09:01:09 +00:00
Campbell Barton
cc0ec3aa33 fix [#28178] make single user copy of object data doesn't work 2011-08-08 08:22:01 +00:00
Sergey Sharybin
08d4cde0f9 Camera tracking integration
===========================

Fixed incorrect check for selected bundles count in scene orientation operators.
2011-08-08 07:17:18 +00:00
Sergey Sharybin
b49d6a6f60 Merging r39135 through r39172 from trunk into soc-2011-tomato 2011-08-08 07:14:59 +00:00
Campbell Barton
349c838996 add missing header to cmake files (else some IDE's wont index it) 2011-08-08 05:43:04 +00:00
Campbell Barton
22d2764d50 use static sets rather then tuples, python optimizes this case.
minor change to lightmap unpack collecting unique meshes.
2011-08-08 05:21:37 +00:00
Campbell Barton
0160901c90 - update X3D and FBX testing checksums
- building with GHOST/SDL now adds the PREFIX
- image.external_edit operator errors out if the filepath isnt set (was annoying and loaded gimp while running tests)
2011-08-08 03:31:25 +00:00
Mike Erwin
28ae6d85fe fixed typo 2011-08-07 18:57:39 +00:00
Campbell Barton
5681380db0 simplify x11 path code, had unneeded NULL checks and std namespace 2011-08-07 17:38:36 +00:00
Mike Erwin
f12df1e386 ndof data change: operators can access values as vectors or components, as both are handy 2011-08-07 17:22:47 +00:00
Mike Erwin
3a55da7616 removed old ndof transform code, to be replaced with modern stuff in 2.6 2011-08-07 17:01:44 +00:00
Sergey Sharybin
cc2df8bfee Camera tracking integration
===========================

Corrected focal length initialization. Now it'll be 24mm, not 24px.
2011-08-07 16:10:14 +00:00
Sergey Sharybin
0dea4df764 Changed do_version condition for noodle_curving.
It should be re-set to 5 for files saved in 2.58.1 release.
2011-08-07 14:57:25 +00:00
Sergey Sharybin
f1b80669bd Camera tracking integration
===========================

Request from some artists and initial idea: own frame scrubber for clip editor.

- Display current frame number in small rectangle near current frame marker
  in clip editor.
- Mouse can be used to change current frame. It is almost the same as
  for timeline. Changing of frame happens when mouse is slidding in 16px
  height area in the bottom of clip editor.
2011-08-07 12:09:56 +00:00
Sergey Sharybin
a2db93d842 Merging r39121 through r39134 from trunk into soc-2011-tomato 2011-08-07 12:08:58 +00:00
Sergey Sharybin
470317587b Camera tracking integration
===========================

Switch from UI_DrawString to BLF_draw. No functional changes.
2011-08-07 11:11:07 +00:00
Brecht Van Lommel
a02d7c1ba7 Fix #28169: keymap bug when using a preset configuration, e.g. object mode keymap
was also being used in edit mode.
2011-08-07 11:01:55 +00:00
Sergey Sharybin
8c0fb2ad64 Camera tracking integration
===========================

Expose parameters for feature detection into redo panel.
2011-08-07 08:58:03 +00:00
Sergey Sharybin
0bb5f21655 Merging r39102 through r39120 from trunk into soc-2011-tomato 2011-08-07 08:56:13 +00:00
Campbell Barton
117ec4a91a comment unused vars 2011-08-07 04:22:33 +00:00
Mike Erwin
6c821f4078 stricter NDOF guards for Windows (forgot in earlier commit) 2011-08-06 23:13:36 +00:00
Mike Erwin
5dd2b3e06f fixed crash when NDOF operators were called without an NDOF_MOTION event 2011-08-06 22:31:16 +00:00
Campbell Barton
79e359f92a rna/ui: avoid duplicate property gHash lookups by passing the property when its already been found.
added _prop suffix to ui functions which take a prop rather then a propname, may change this later since its not that nice but for gsoc branches this keeps existing UI functions working the same.
2011-08-06 16:00:00 +00:00
Campbell Barton
2f5809d831 make ui_def_but_rna into 2 functions, once which takes a prop, another which takes a propname, no functional change yet but lets us avoid duplicate hash lookups. 2011-08-06 14:57:55 +00:00
Sergey Sharybin
462670b845 Merging r39050 through r39101 from trunk into soc-2011-tomato 2011-08-06 14:52:45 +00:00
Campbell Barton
dc4dede802 for UI text drawing use BLF_ascender(fs->uifont_id) rather then BLF_height(fs->uifont_id, "2"), while profiling draw noticed that the hash lookup on the character and utf8 next were being called on every text draw, use BLF_ascender since it doesn't do any lookups. 2011-08-06 06:38:18 +00:00
Campbell Barton
d78be1f762 remove copy modifiers function, now handled in link data operator. 2011-08-06 04:19:30 +00:00
Brecht Van Lommel
e6e4c7ef8b KEYMAP REFACTORING
Diff Keymaps

User edited keymaps now no longer override the builtin keymaps entirely, but
rather save only the difference and reapply those changes. This means they can
stay better in sync when the builtin keymaps change. The diff/patch algorithm
is not perfect, but better for the common case where only a few items are changed
rather than entire keymaps The main weakness is that if a builtin keymap item
changes, user modification of that item may need to be redone in some cases.

Keymap Editor

The most noticeable change here is that there is no longer an "Edit" button for
keymaps, all are editable immediately, but a "Restore" buttons shows for keymaps
and items that have been edited. Shortcuts for addons can also be edited in the
keymap editor. 

Addons

Addons now should only modify the new addon keyconfiguration, the keymap items
there will be added to the builtin ones for handling events, and not get lost
when starting new files. Example code of register/unregister:

km = wm.keyconfigs.addon.keymaps.new("3D View", space_type="VIEW_3D")
km.keymap_items.new('my.operator', 'ESC', 'PRESS')

km = wm.keyconfigs.addon.keymaps["3D View"]
km.keymap_items.remove(km.keymap_items["my.operator"])

Compatibility

The changes made are not forward compatible, i.e. if you save user preferences
with newer versions, older versions will not have key configuration changes that
were made.
2011-08-05 20:45:26 +00:00
Sergey Sharybin
da7851aabc Camera tracking integration
===========================

Interpolate camera location and orientation for frames
where's no reconstruction data.

This fixes motion blur compositor node (first and last camera's
position was at origin, so motion vector was totally incorrect).
2011-08-05 17:50:21 +00:00
Campbell Barton
3a82a690ab ifdef out support for for python owning and freeing BPy_StructRNA because this is only used for doc generation and it makes _every_ blender/python instance 4 bytes bigger - vertex/bezier point/object/scene/group etc. 2011-08-05 16:29:38 +00:00
Campbell Barton
85fe36ab61 pyrna - add own callable function type rather then using a standard python method, gives small speedup drawing buttons since every layout.prop/col/operator/menu etc creates and throws away one of these. 2011-08-05 16:21:37 +00:00
Campbell Barton
db319f8544 move the ndof menu into the userpref's since it adjusts preferences, also renamed VIEW3D_MT_ndof_settings -> USERPREF_MT_ndof_settings since it has no view3d specific settings. 2011-08-05 14:53:13 +00:00
Sergey Sharybin
2187d7e166 Camera tracking integration
===========================

Added back Scale factor for scene orientation in toolshelf.
But now it's used in a bit other way -- invoke function
checks if operator's property is set and if not -- value
set in toolshelf is used.
2011-08-05 11:43:09 +00:00
Campbell Barton
a157112ac5 fix for icon scaling with the DPI setting
- icons were scaling by the sqrt(dpi)/8.48528, but infact they only need to be scaled by (dpi/72).
- UI_icon_get_width value was being used without multiplying by dpi scale.
2011-08-05 10:45:32 +00:00
Campbell Barton
ad7ea2f892 get a tad more vertical space in the toolbar. 2011-08-05 09:04:11 +00:00
Sergey Sharybin
c56f6cda7e Camera tracking integration
===========================

Fixed possible errors with non-unique naming when syncking
currently tracking tracks with list of tracks used in clip.
2011-08-05 07:54:25 +00:00
Sergey Sharybin
c3ef2963c3 Merging r39029 through r39049 from trunk into soc-2011-tomato 2011-08-05 06:47:37 +00:00
Sergey Sharybin
080e063336 Camera tracking integration
===========================

- Cleanup wouldn't affect on hidden or locked tracks.
- "Track" operator wouldn't take locked tracks into account
  when checking if there's something to track.
2011-08-05 06:43:20 +00:00
Campbell Barton
f48631e9a4 fix [#28160] Pressing Y on an image sequence to seperate the images takes them out of their meta strips
dont show a popup anymore, was silly because you had to change the value for before anything was done, can use f6 redo popup instead, sequencer should eventually have a view3d operator redo panel.
2011-08-05 06:26:54 +00:00
Campbell Barton
c946969bb9 fix for possible uninitialized RNA strings, when RNA_string_get property is not found, initialize the string to "". 2011-08-05 06:09:30 +00:00
Campbell Barton
82e863bdae fix [#28102] Typing 'C:' into the file selector's directory asks to make a new directory. 2011-08-05 06:06:15 +00:00
Campbell Barton
f77af0a8ce change BLO_library_append_begin to take a main argument rather then a context, means the BGE doesnt need to make a new empty context just to pass as an arg.
added doxygen description too.

this quiets the print when the BGE does linking.
2011-08-05 05:26:19 +00:00
Sergey Sharybin
a3844678bf Camera tracking integration
===========================

Do not register tracking operator in redo panel.
2011-08-04 16:54:26 +00:00
Sergey Sharybin
ec5a7d6206 Merging r38993 through r39028 from trunk into sox-2011-tomato 2011-08-04 16:52:26 +00:00
Sergey Sharybin
6529882e9e Camera tracking integration
===========================

- Request from Sebastian/Francois: default lens
  for clip set to 24.0
- Added some additional camera presets from Francois request.
  Not sure all things from GENERIC section of that request
  would be actually useful.

  Probably the whole sensor size workflow would be changed...
2011-08-04 16:06:24 +00:00
Sergey Sharybin
1e7203ce07 Camera tracking integration
===========================

- Added function to calculate per-track average error.
  Made this in libmv c-api, probably should be ported
  to libmv pipeline.
- MovieTrackingTrack now holds average reprojection error
  which is displayed in Active Track panel and information
  text in clip editor (if displaying of names are enabled).
- Make "Clean Tracks" take average error on account.
2011-08-04 15:40:28 +00:00
Sergey Sharybin
6cc4952ca3 Camera tracking integration
===========================

- Fixed bug with resetting marker's flag for non-transforming
  tracks when canceling transformation.
- Fixed bug with keyframing non-selected tracks when initializing
  tracking tools.
- Changed selection policy: now invisible parts of marker
  can be selected.
- Added operator redo panel to Clip Editor.
- Set Scale operator now uses operator property for scale.
- Added operator "Clean Tracks" which currently checks if tracks
  are tracked long enough and can select bad tracks, delete them
  or delete tracking segments which are too short.
2011-08-04 14:39:37 +00:00