tracksperanto 2.9.7 → 2.9.8

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.9.8
2
+
3
+ * Ensure that Boujou vertical coords start off 1, not off 0 - both in import and export
4
+
1
5
  === 2.9.7
2
6
 
3
7
  * Add Syntheyes "All tracker paths" support
data/lib/export/boujou.rb CHANGED
@@ -30,6 +30,6 @@ class Tracksperanto::Export::Boujou < Tracksperanto::Export::Base
30
30
  def export_point(frame, abs_float_x, abs_float_y, float_residual)
31
31
  height_inv = @height - abs_float_y
32
32
  # Frames in Boujou are likely to start from 0
33
- @io.puts(POINT_T % [@tracker_name, frame, abs_float_x, height_inv])
33
+ @io.puts(POINT_T % [@tracker_name, frame, abs_float_x, height_inv + 1])
34
34
  end
35
35
  end
data/lib/import/boujou.rb CHANGED
@@ -20,7 +20,7 @@ class Tracksperanto::Import::Boujou < Tracksperanto::Import::Base
20
20
  end
21
21
 
22
22
  report_progress("Extracting frame #{frame} of #{name}")
23
- @last_tracker.keyframe!(:frame => (frame.to_i - 1), :abs_y => (@height.to_f - y.to_f), :abs_x => x)
23
+ @last_tracker.keyframe!(:frame => (frame.to_i - 1), :abs_y => (@height.to_f - y.to_f - 1), :abs_x => x)
24
24
  end
25
25
 
26
26
  yield(@last_tracker) if @last_tracker && @last_tracker.any?
data/lib/tracksperanto.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Tracksperanto
5
5
  PATH = File.expand_path(File.dirname(__FILE__))
6
- VERSION = '2.9.7'
6
+ VERSION = '2.9.8'
7
7
 
8
8
  module Import; end
9
9
  module Export; end
@@ -3,42 +3,42 @@
3
3
  # Creation date : Thu Apr 15 17:21:26 2010
4
4
  #
5
5
  # track_id view x y
6
- Parabolic_1_from_top_left 0 0.000 0.000
7
- Parabolic_1_from_top_left 1 96.000 205.200
8
- Parabolic_1_from_top_left 2 192.000 388.800
9
- Parabolic_1_from_top_left 3 288.000 550.800
10
- Parabolic_1_from_top_left 4 384.000 691.200
11
- Parabolic_1_from_top_left 5 480.000 810.000
12
- Parabolic_1_from_top_left 6 576.000 907.200
13
- Parabolic_1_from_top_left 7 672.000 982.800
14
- Parabolic_1_from_top_left 8 768.000 1036.800
15
- Parabolic_1_from_top_left 9 864.000 1069.200
16
- Parabolic_1_from_top_left 12 1152.000 1036.800
17
- Parabolic_1_from_top_left 13 1248.000 982.800
18
- Parabolic_1_from_top_left 14 1344.000 907.200
19
- Parabolic_1_from_top_left 15 1440.000 810.000
20
- Parabolic_1_from_top_left 16 1536.000 691.200
21
- Parabolic_1_from_top_left 17 1632.000 550.800
22
- Parabolic_1_from_top_left 18 1728.000 388.800
23
- Parabolic_1_from_top_left 19 1824.000 205.200
24
- Parabolic_1_from_top_left 20 1920.000 0.000
25
- Parabolic_2_from_bottom_right 0 1920.000 1080.000
26
- Parabolic_2_from_bottom_right 1 1824.000 874.800
27
- Parabolic_2_from_bottom_right 2 1728.000 691.200
28
- Parabolic_2_from_bottom_right 3 1632.000 529.200
29
- Parabolic_2_from_bottom_right 4 1536.000 388.800
30
- Parabolic_2_from_bottom_right 5 1440.000 270.000
31
- Parabolic_2_from_bottom_right 6 1344.000 172.800
32
- Parabolic_2_from_bottom_right 7 1248.000 97.200
33
- Parabolic_2_from_bottom_right 8 1152.000 43.200
34
- Parabolic_2_from_bottom_right 9 1056.000 10.800
35
- Parabolic_2_from_bottom_right 12 768.000 43.200
36
- Parabolic_2_from_bottom_right 13 672.000 97.200
37
- Parabolic_2_from_bottom_right 14 576.000 172.800
38
- Parabolic_2_from_bottom_right 15 480.000 270.000
39
- Parabolic_2_from_bottom_right 16 384.000 388.800
40
- Parabolic_2_from_bottom_right 17 288.000 529.200
41
- Parabolic_2_from_bottom_right 18 192.000 691.200
42
- Parabolic_2_from_bottom_right 19 96.000 874.800
43
- Parabolic_2_from_bottom_right 20 0.000 1080.000
44
- SingleFrame 0 970.000 530.000
6
+ Parabolic_1_from_top_left 0 0.000 1.000
7
+ Parabolic_1_from_top_left 1 96.000 206.200
8
+ Parabolic_1_from_top_left 2 192.000 389.800
9
+ Parabolic_1_from_top_left 3 288.000 551.800
10
+ Parabolic_1_from_top_left 4 384.000 692.200
11
+ Parabolic_1_from_top_left 5 480.000 811.000
12
+ Parabolic_1_from_top_left 6 576.000 908.200
13
+ Parabolic_1_from_top_left 7 672.000 983.800
14
+ Parabolic_1_from_top_left 8 768.000 1037.800
15
+ Parabolic_1_from_top_left 9 864.000 1070.200
16
+ Parabolic_1_from_top_left 12 1152.000 1037.800
17
+ Parabolic_1_from_top_left 13 1248.000 983.800
18
+ Parabolic_1_from_top_left 14 1344.000 908.200
19
+ Parabolic_1_from_top_left 15 1440.000 811.000
20
+ Parabolic_1_from_top_left 16 1536.000 692.200
21
+ Parabolic_1_from_top_left 17 1632.000 551.800
22
+ Parabolic_1_from_top_left 18 1728.000 389.800
23
+ Parabolic_1_from_top_left 19 1824.000 206.200
24
+ Parabolic_1_from_top_left 20 1920.000 1.000
25
+ Parabolic_2_from_bottom_right 0 1920.000 1081.000
26
+ Parabolic_2_from_bottom_right 1 1824.000 875.800
27
+ Parabolic_2_from_bottom_right 2 1728.000 692.200
28
+ Parabolic_2_from_bottom_right 3 1632.000 530.200
29
+ Parabolic_2_from_bottom_right 4 1536.000 389.800
30
+ Parabolic_2_from_bottom_right 5 1440.000 271.000
31
+ Parabolic_2_from_bottom_right 6 1344.000 173.800
32
+ Parabolic_2_from_bottom_right 7 1248.000 98.200
33
+ Parabolic_2_from_bottom_right 8 1152.000 44.200
34
+ Parabolic_2_from_bottom_right 9 1056.000 11.800
35
+ Parabolic_2_from_bottom_right 12 768.000 44.200
36
+ Parabolic_2_from_bottom_right 13 672.000 98.200
37
+ Parabolic_2_from_bottom_right 14 576.000 173.800
38
+ Parabolic_2_from_bottom_right 15 480.000 271.000
39
+ Parabolic_2_from_bottom_right 16 384.000 389.800
40
+ Parabolic_2_from_bottom_right 17 288.000 530.200
41
+ Parabolic_2_from_bottom_right 18 192.000 692.200
42
+ Parabolic_2_from_bottom_right 19 96.000 875.800
43
+ Parabolic_2_from_bottom_right 20 0.000 1081.000
44
+ SingleFrame 0 970.000 531.000
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  require File.expand_path(File.dirname(__FILE__)) + '/../helper'
3
3
 
4
- class NukeExportTest < Test::Unit::TestCase
4
+ class BoujouExportTest < Test::Unit::TestCase
5
5
  include ParabolicTracks
6
6
  P = File.dirname(__FILE__) + "/samples/ref_boujou.txt"
7
7
 
@@ -25,6 +25,6 @@ class BoujouImportTest < Test::Unit::TestCase
25
25
 
26
26
  kf = tracker1[0]
27
27
  assert_in_delta 306.906, kf.abs_x, DELTA
28
- assert_in_delta 40.79, kf.abs_y, DELTA
28
+ assert_in_delta 39.79, kf.abs_y, DELTA
29
29
  end
30
30
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tracksperanto"
8
- s.version = "2.9.7"
8
+ s.version = "2.9.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Julik Tarkhanov"]
12
- s.date = "2012-03-17"
12
+ s.date = "2012-03-21"
13
13
  s.description = "Converts 2D track exports between different apps like Flame, MatchMover, PFTrack..."
14
14
  s.email = "me@julik.nl"
15
15
  s.executables = ["tracksperanto"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracksperanto
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.7
4
+ version: 2.9.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-17 00:00:00.000000000 Z
12
+ date: 2012-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: obuf
16
- requirement: &4013890 !ruby/object:Gem::Requirement
16
+ requirement: &12522820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *4013890
24
+ version_requirements: *12522820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: progressive_io
27
- requirement: &4013530 !ruby/object:Gem::Requirement
27
+ requirement: &12522580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *4013530
35
+ version_requirements: *12522580
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: flame_channel_parser
38
- requirement: &4013220 !ruby/object:Gem::Requirement
38
+ requirement: &12522340 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '4.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *4013220
46
+ version_requirements: *12522340
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: progressbar
49
- requirement: &4012820 !ruby/object:Gem::Requirement
49
+ requirement: &12522100 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - =
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.10.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *4012820
57
+ version_requirements: *12522100
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: update_hints
60
- requirement: &4012430 !ruby/object:Gem::Requirement
60
+ requirement: &12521860 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '1.0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *4012430
68
+ version_requirements: *12521860
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jeweler
71
- requirement: &4011740 !ruby/object:Gem::Requirement
71
+ requirement: &12521620 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *4011740
79
+ version_requirements: *12521620
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rake
82
- requirement: &4010310 !ruby/object:Gem::Requirement
82
+ requirement: &12521380 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *4010310
90
+ version_requirements: *12521380
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: flexmock
93
- requirement: &4010050 !ruby/object:Gem::Requirement
93
+ requirement: &12521140 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0.8'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *4010050
101
+ version_requirements: *12521140
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: cli_test
104
- requirement: &4009660 !ruby/object:Gem::Requirement
104
+ requirement: &12520900 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,7 +109,7 @@ dependencies:
109
109
  version: '1.0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *4009660
112
+ version_requirements: *12520900
113
113
  description: Converts 2D track exports between different apps like Flame, MatchMover,
114
114
  PFTrack...
115
115
  email: me@julik.nl
@@ -295,6 +295,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
295
295
  - - ! '>='
296
296
  - !ruby/object:Gem::Version
297
297
  version: '0'
298
+ segments:
299
+ - 0
300
+ hash: 648854317
298
301
  required_rubygems_version: !ruby/object:Gem::Requirement
299
302
  none: false
300
303
  requirements: