Skip to content

Incorrect vertex normals when loading obj file #83

@NarinderS

Description

@NarinderS

I'm trying to load a very simple obj file:

o Plane
v 0.000000 0.000000 0.000000
v 0.353553 0.353553 0.000000
v 0.353553 -0.353553 0.000000
vn -0.0000 -0.0000 1.0000
vt 0.500000 0.250000
vt 0.500000 0.500000
vt 0.250000 0.500000
s 0
f 2/1/1 1/2/1 3/3/1

When I load the vertex normals using the function load_mesh_vn, I get normals that look like:

[[0 0 1]
 [0 0 0]
 [0 0 0]]

when I would expect something like this instead:

[[0 0 1]
 [0 0 1]
 [0 0 1]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions