Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texture path of static object appended twice #187

Open
onorinbejasus opened this issue Oct 31, 2016 · 0 comments
Open

Texture path of static object appended twice #187

onorinbejasus opened this issue Oct 31, 2016 · 0 comments

Comments

@onorinbejasus
Copy link

onorinbejasus commented Oct 31, 2016

When referencing a StaticObject's textures, ImageUtils::loadImage appends the path twice:

!!! ImageUtils::loadImage: could not load D:/Dropbox/Classes/GRAD/UIC/Fall2016/OmegaLibWarmup/OmegaLibWarmup/MODELS\D:\Dropbox\Classes\GRAD\UIC\Fall2016\OmegaLibWarmup\OmegaLibWarmup\MODELS\MINI+cooper+ani\material_15.jpg: file not found.
Error reading file D:/Dropbox/Classes/GRAD/UIC/Fall2016/OmegaLibWarmup/OmegaLibWarmup/MODELS\D:\Dropbox\Classes\GRAD\UIC\Fall2016\OmegaLibWarmup\OmegaLibWarmup\MODELS\MINI+cooper+ani\material_15.jpg: file not found

StaticObject / ModelInfo setup:

houseModel = ModelInfo()
houseModel.name = "house"
houseModel.path = "MODELS/house+with+rooms+4.fbx"
scene.loadModel(houseModel)
houseModel.generateNormals = True
houseModel.optimize = True

house = StaticObject.create("house")
house.setSelectable(True)
house.setEffect("colored")
house.setEffect("textured -C")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant