Skip to content

Cubical reflection map reading in mtl creates only one material from the last specified side. #269

@Geomazzix

Description

@Geomazzix

When trying to load in a cubical reflection map it returns the wrong amount of materials. In my mtl file I have this code specified:
` newmtl skybox
Ns 10.0000
Ni 1.5000
d 1.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.0000 0.0000 0.0000
Kd 0.5880 0.5880 0.5880
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000

refl -type cube_top "../../textures/skyboxes/space/top.png"
refl -type cube_bottom "../../textures/skyboxes/space/bottom.png"
refl -type cube_front "../../textures/skyboxes/space/front.png"
refl -type cube_back "../../textures/skyboxes/space/back.png"
refl -type cube_left "../../textures/skyboxes/space/left.png"
refl -type cube_right "../../textures/skyboxes/space/right.png"`

this should be correct according to:

Though I am only getting one material back, with the last cube side specified (in this scenerio the "../../textures/skyboxes/space/right.png". I do not receive any warnings or errors from the tinyobjloader and am wondering if this is defined behaviour.

It also did not matter how much I searched for it, but I could not find any pieces about cubical reflection map loading in tinyobj. Hence I am creating this forum. In case I am wrong on this, please notify me of my wrongdoings, since I am still new to the wavefront file format.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions