tracksperanto 2.9.7 → 2.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/lib/export/boujou.rb +1 -1
- data/lib/import/boujou.rb +1 -1
- data/lib/tracksperanto.rb +1 -1
- data/test/export/samples/ref_boujou.txt +39 -39
- data/test/export/test_boujou_export.rb +1 -1
- data/test/import/test_boujou_import.rb +1 -1
- data/tracksperanto.gemspec +2 -2
- metadata +23 -20
data/History.txt
CHANGED
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,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
|
7
|
-
Parabolic_1_from_top_left 1 96.000
|
8
|
-
Parabolic_1_from_top_left 2 192.000
|
9
|
-
Parabolic_1_from_top_left 3 288.000
|
10
|
-
Parabolic_1_from_top_left 4 384.000
|
11
|
-
Parabolic_1_from_top_left 5 480.000
|
12
|
-
Parabolic_1_from_top_left 6 576.000
|
13
|
-
Parabolic_1_from_top_left 7 672.000
|
14
|
-
Parabolic_1_from_top_left 8 768.000
|
15
|
-
Parabolic_1_from_top_left 9 864.000
|
16
|
-
Parabolic_1_from_top_left 12 1152.000
|
17
|
-
Parabolic_1_from_top_left 13 1248.000
|
18
|
-
Parabolic_1_from_top_left 14 1344.000
|
19
|
-
Parabolic_1_from_top_left 15 1440.000
|
20
|
-
Parabolic_1_from_top_left 16 1536.000
|
21
|
-
Parabolic_1_from_top_left 17 1632.000
|
22
|
-
Parabolic_1_from_top_left 18 1728.000
|
23
|
-
Parabolic_1_from_top_left 19 1824.000
|
24
|
-
Parabolic_1_from_top_left 20 1920.000
|
25
|
-
Parabolic_2_from_bottom_right 0 1920.000
|
26
|
-
Parabolic_2_from_bottom_right 1 1824.000
|
27
|
-
Parabolic_2_from_bottom_right 2 1728.000
|
28
|
-
Parabolic_2_from_bottom_right 3 1632.000
|
29
|
-
Parabolic_2_from_bottom_right 4 1536.000
|
30
|
-
Parabolic_2_from_bottom_right 5 1440.000
|
31
|
-
Parabolic_2_from_bottom_right 6 1344.000
|
32
|
-
Parabolic_2_from_bottom_right 7 1248.000
|
33
|
-
Parabolic_2_from_bottom_right 8 1152.000
|
34
|
-
Parabolic_2_from_bottom_right 9 1056.000
|
35
|
-
Parabolic_2_from_bottom_right 12 768.000
|
36
|
-
Parabolic_2_from_bottom_right 13 672.000
|
37
|
-
Parabolic_2_from_bottom_right 14 576.000
|
38
|
-
Parabolic_2_from_bottom_right 15 480.000
|
39
|
-
Parabolic_2_from_bottom_right 16 384.000
|
40
|
-
Parabolic_2_from_bottom_right 17 288.000
|
41
|
-
Parabolic_2_from_bottom_right 18 192.000
|
42
|
-
Parabolic_2_from_bottom_right 19 96.000
|
43
|
-
Parabolic_2_from_bottom_right 20 0.000
|
44
|
-
SingleFrame 0 970.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
|
4
|
+
class BoujouExportTest < Test::Unit::TestCase
|
5
5
|
include ParabolicTracks
|
6
6
|
P = File.dirname(__FILE__) + "/samples/ref_boujou.txt"
|
7
7
|
|
data/tracksperanto.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "tracksperanto"
|
8
|
-
s.version = "2.9.
|
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-
|
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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *12522820
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: progressive_io
|
27
|
-
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: *
|
35
|
+
version_requirements: *12522580
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: flame_channel_parser
|
38
|
-
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: *
|
46
|
+
version_requirements: *12522340
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: progressbar
|
49
|
-
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: *
|
57
|
+
version_requirements: *12522100
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: update_hints
|
60
|
-
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: *
|
68
|
+
version_requirements: *12521860
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: jeweler
|
71
|
-
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: *
|
79
|
+
version_requirements: *12521620
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rake
|
82
|
-
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: *
|
90
|
+
version_requirements: *12521380
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: flexmock
|
93
|
-
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: *
|
101
|
+
version_requirements: *12521140
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: cli_test
|
104
|
-
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: *
|
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:
|