# [Fabian 23Oct15]
# adjust DA_Turntable from /da/proj/paulBourke for loading general geometry
# TODO: append GeoLoader package to python search path in omegalib: workaround
import sys
sys.path.append('/local/examples')

from euclid import Vector3
from omega import getDefaultCamera, Color, setEventFunction, setUpdateFunction
from GeoLoader.GeometryFile import GeometryFile
from GeoLoader.DAEventHandler import DAEventHandler

#fileToLoad = "/da/mannequinShoot/exports/Mook/Mook_mix1_initial.fbx"
#fileToLoad = "/home/fabian/Code/paulBourke/weld/take1.obj"
fileToLoad2 = "/home/fabian/Code/examples/box/box.obj"
#fileToLoad = "/home/fabian/Code/examples/box/box_translated.obj"

cam = getDefaultCamera()
cam.setControllerEnabled(False)
cam.setPosition(Vector3(0, 0, 3) - cam.getHeadOffset())
cam.setNearFarZ(0.001, 50)
cam.setEyeSeparation(0.0007)
cam.setBackgroundColor(Color(0,0,0,0))

#geo = GeometryFile(fileToLoad)
geo2 = GeometryFile(fileToLoad2)

handler = DAEventHandler()
#handler.addGeo(geo)
handler.addGeo(geo2)
setEventFunction(handler.onEvent)
setUpdateFunction(handler.onUpdate)

# [Fabian 23Oct15]
# adjust DA_Turntable from /da/proj/paulBourke for loading general geometry
# TODO: append GeoLoader package to python search path in omegalib: workaround
import sys
sys.path.append('/local/examples')

from euclid import Vector3
from omega import getDefaultCamera, Color, setEventFunction, setUpdateFunction
from GeoLoader.GeometryFile import GeometryFile
from GeoLoader.DAEventHandler import DAEventHandler

#fileToLoad = "/da/mannequinShoot/exports/Mook/Mook_mix1_initial.fbx"
#fileToLoad = "/home/fabian/Code/paulBourke/weld/take1.obj"
#fileToLoad2 = "/home/fabian/Code/examples/box/box.obj"
fileToLoad2 = "/local/examples/box/box.obj"
#fileToLoad = "/home/fabian/Code/examples/box/box_translated.obj"

cam = getDefaultCamera()
cam.setControllerEnabled(False)
cam.setPosition(Vector3(0, 0, 3) - cam.getHeadOffset())
cam.setNearFarZ(0.001, 50)
cam.setEyeSeparation(0.0007)
cam.setBackgroundColor(Color(0,0,0,0))

#geo = GeometryFile(fileToLoad)
geo2 = GeometryFile(fileToLoad2)

handler = DAEventHandler()
#handler.addGeo(geo)
handler.addGeo(geo2)
setEventFunction(handler.onEvent)
setUpdateFunction(handler.onUpdate)

change path for vm