fixed: auto_ptr -> unique_ptr
[opensg.git] / Tools / osgBench / beetle.py
blob8e9b141a0a1afea0de51baa7b211694b3b7ef6ad
1 # Simple OpenSG Benchmark
2 from osgbench import *
4 # Load the scene
5 print "Loading Beetle..."
6 scene=loadScene("/home/reiners/models/mybeetle/BeetleAlles_opt.fhs")
8 # Define the Window's parameters
9 win=TestWindow()
10 win.open()
11 win.setSize(900, 900)
12 #win.setFullscreen()
14 # Define the Test(s)
15 test=Test()
16 test.setWindow(win)
17 test.setScene(scene)
18 test.setNFrames(500)
20 test.clear()
21 test.addFov(42)
22 test.addFromOri("-2191.82 -1100.77 1722.85, -1300.51 -2792.8 890.801, 1039.72 -3752.02 589.886, 1126.16 -1396.48 520.712, 2013.53 -1023.08 936.491, 3950.44 -1110.91 1398.72, 4236.92 18.9668 1118.02, 1985.81 3001.34 806.649, -1082.25 2142.65 747.017, -2800.93 -75.5585 505.049", \
23 "0.619884 -0.479794 -0.62092 1.65974, 0.865916 -0.248026 -0.434364 1.6686, 0.999546 -0.00861513 -0.0288809 1.54227, 0.999546 -0.00861513 -0.0288809 1.54227, 0.84729 0.273698 0.45518 1.41943, 0.653772 0.49471 0.572577 1.6211, 0.531041 0.534708 0.65733 1.98363, 0.0649892 0.671099 0.738513 2.89454, -0.289388 0.641949 0.710039 3.70718, 0.578083 -0.583372 -0.570524 2.06364")
25 test.run()
26 print "Beetle path took %f seconds: %f fps" % (test.getTime(), test.getFPS())
28 win.close()