tracksperanto 2.3.3 → 2.4.1

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.4.0 / 2011-19-05
2
+
3
+ * Added an official PFTrack 2011 exporter that is verified
4
+
1
5
  === 2.3.3 / 2011-12-05
2
6
 
3
7
  * Fixed parsing of stereoscopic PFTrack exports
data/Manifest.txt CHANGED
@@ -16,6 +16,7 @@ lib/export/mux.rb
16
16
  lib/export/nuke_script.rb
17
17
  lib/export/pfmatchit.rb
18
18
  lib/export/pftrack.rb
19
+ lib/export/pftrack_2011.rb
19
20
  lib/export/pftrack_5.rb
20
21
  lib/export/shake_text.rb
21
22
  lib/export/syntheyes.rb
@@ -71,6 +72,7 @@ test/export/samples/ref_Mayalive_CustomAspect.txt
71
72
  test/export/samples/ref_NukeScript.nk
72
73
  test/export/samples/ref_PFMatchit.2dt
73
74
  test/export/samples/ref_PFTrack.2dt
75
+ test/export/samples/ref_PFTrack2011.txt
74
76
  test/export/samples/ref_PFTrack5.2dt
75
77
  test/export/samples/ref_ShakeText.txt
76
78
  test/export/samples/ref_Syntheyes.txt
@@ -88,6 +90,7 @@ test/export/test_maya_live_export.rb
88
90
  test/export/test_mux.rb
89
91
  test/export/test_nuke_export.rb
90
92
  test/export/test_pfmatchit_export.rb
93
+ test/export/test_pftrack2011_export.rb
91
94
  test/export/test_pftrack5_export.rb
92
95
  test/export/test_pftrack_export.rb
93
96
  test/export/test_shake_export.rb
@@ -96,6 +99,7 @@ test/helper.rb
96
99
  test/import/samples/3de_v3/3de_export_v3.txt
97
100
  test/import/samples/3de_v4/3de_export_cube.txt
98
101
  test/import/samples/boujou_features_text/boujou_txt_export.txt
102
+ test/import/samples/flame_stabilizer/Flame_Stabilizer_2012.stabilizer
99
103
  test/import/samples/flame_stabilizer/fromCombustion_fromMidClip_wSnap.stabilizer
100
104
  test/import/samples/flame_stabilizer/fromTracksperanto.stabilizer
101
105
  test/import/samples/flame_stabilizer/hugeFlameSetup.stabilizer
@@ -0,0 +1,30 @@
1
+ # Export for PFTrack .2dt files for version 2011
2
+ class Tracksperanto::Export::PFTrack2011 < Tracksperanto::Export::PFMatchit
3
+
4
+ def self.desc_and_extension
5
+ "pftrack_2011.txt"
6
+ end
7
+
8
+ def self.human_name
9
+ "PFTrack 2011 .txt file (single camera)"
10
+ end
11
+
12
+ def export_point(frame, abs_float_x, abs_float_y, float_residual)
13
+ @frame_count += 1
14
+ # PFTrack 2011 wants one-based frames
15
+ line = KEYFRAME_TEMPLATE % [frame + 1, abs_float_x, abs_float_y, float_residual / 8]
16
+ @tracker_io.write(line)
17
+ @tracker_io.write(linebreak)
18
+ end
19
+
20
+ private
21
+
22
+ def camera_name
23
+ "1"
24
+ end
25
+
26
+ # PFT2011 wants \n
27
+ def linebreak
28
+ "\n"
29
+ end
30
+ end
data/lib/tracksperanto.rb CHANGED
@@ -4,7 +4,7 @@ require 'tempfile'
4
4
 
5
5
  module Tracksperanto
6
6
  PATH = File.expand_path(File.dirname(__FILE__))
7
- VERSION = '2.3.3'
7
+ VERSION = '2.4.1'
8
8
 
9
9
  module Import; end
10
10
  module Export; end
@@ -0,0 +1,54 @@
1
+
2
+
3
+ "Parabolic_1_from_top_left"
4
+ 1
5
+ 19
6
+ 1 0.000 1080.000 0.000
7
+ 2 96.000 874.800 0.006
8
+ 3 192.000 691.200 0.012
9
+ 4 288.000 529.200 0.018
10
+ 5 384.000 388.800 0.024
11
+ 6 480.000 270.000 0.030
12
+ 7 576.000 172.800 0.036
13
+ 8 672.000 97.200 0.042
14
+ 9 768.000 43.200 0.048
15
+ 10 864.000 10.800 0.054
16
+ 13 1152.000 43.200 0.071
17
+ 14 1248.000 97.200 0.077
18
+ 15 1344.000 172.800 0.083
19
+ 16 1440.000 270.000 0.089
20
+ 17 1536.000 388.800 0.095
21
+ 18 1632.000 529.200 0.101
22
+ 19 1728.000 691.200 0.107
23
+ 20 1824.000 874.800 0.113
24
+ 21 1920.000 1080.000 0.119
25
+
26
+
27
+ "Parabolic_2_from_bottom_right"
28
+ 1
29
+ 19
30
+ 1 1920.000 0.000 0.000
31
+ 2 1824.000 205.200 0.006
32
+ 3 1728.000 388.800 0.012
33
+ 4 1632.000 550.800 0.018
34
+ 5 1536.000 691.200 0.024
35
+ 6 1440.000 810.000 0.030
36
+ 7 1344.000 907.200 0.036
37
+ 8 1248.000 982.800 0.042
38
+ 9 1152.000 1036.800 0.048
39
+ 10 1056.000 1069.200 0.054
40
+ 13 768.000 1036.800 0.071
41
+ 14 672.000 982.800 0.077
42
+ 15 576.000 907.200 0.083
43
+ 16 480.000 810.000 0.089
44
+ 17 384.000 691.200 0.095
45
+ 18 288.000 550.800 0.101
46
+ 19 192.000 388.800 0.107
47
+ 20 96.000 205.200 0.113
48
+ 21 0.000 0.000 0.119
49
+
50
+
51
+ "SingleFrame"
52
+ 1
53
+ 1
54
+ 1 970.000 550.000 0.000
@@ -0,0 +1,19 @@
1
+ require File.expand_path(File.dirname(__FILE__)) + '/../helper'
2
+
3
+ class PFTrack2011ExportTest < Test::Unit::TestCase
4
+ include ParabolicTracks
5
+
6
+ def test_human_name
7
+ assert_equal "PFTrack 2011 .txt file (single camera)", Tracksperanto::Export::PFTrack2011.human_name
8
+ end
9
+
10
+ def test_desc_and_ext
11
+ assert_equal "pftrack_2011.txt", Tracksperanto::Export::PFTrack2011.desc_and_extension
12
+ end
13
+
14
+ P = File.dirname(__FILE__) + "/samples/ref_PFTrack2011.txt"
15
+
16
+ def test_export_output_written
17
+ ensure_same_output Tracksperanto::Export::PFTrack2011, P
18
+ end
19
+ end