def loadModel(name, path):
model = ModelInfo()
model.path = path
model.optimize = False
model.usePowerOfTwoTextures = False
scene.loadModel(model)
model = StaticObject.create(name)
model.setEffect("textured -d /home/evl/jhwang47/SENSEI-Panama/v1/")
loadModel("Terrain", modelPath+"/stripPathTerrain.fbx")
I have created an fbx file that is texture mapped using Blender. I exported the fbx in several ways. 1 with relative paths. 2 with stripped paths. I keep running into the same error that it cannot find the texture file.
Loading model....../home/evl/jhwang47/SENSEI-Panama/v1/stripPathTerrain.fbx
!!! ImageUtils::loadImage: could not load /home/evl/jhwang47/SENSEI-Panama/v1//home/evl/jhwang47/SENSEI-Panama/v1/50Island.png: file not found.
It seems as though it is appending the working directory twice. Am I improperly using the filesystem in omegalib or is this a blender issue?