Skip to content

UV coordinates ignored by MeshOBJLoader #3012

@ScheiklP

Description

@ScheiklP

Problem

When passing an .obj file and texture .png to OglModel, they are correctly loaded and mapped.

visual_node.addObject(
        "OglModel",
        filename="mesh.obj",
        texturename="texture.png",
)

image

For the MeshOBJLoader the UV coordinates are ignored.


loader = visual_node.addObject(
        "MeshOBJLoader",
        filename="mesh.obj",
        handleSeams=True,
)

visual_node.addObject(
        "OglModel",
        texcoords=loader.texcoords,
        texturename="texture.png",
)

image


Environment

Context

  • System: Ubuntu 20.04
  • Version of SOFA: master branch at commit 06899d4
  • State: Install directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bug (minor)Bug affecting only some users or with no major impact on the framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions