Skip to content

Texture path of static object appended twice #187

@onorinbejasus

Description

@onorinbejasus

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions