Skip to content

BUG: incorrect index calculation for "bottom-right to up-left" scan in void Texturing::generateTexturesSubSet(...) #644

@ChaoJia

Description

@ChaoJia

Got Abnormal program termination: received signal 11 (SIGSEGV) in step [11/11] Texturing.

I built and compiled AliceVision with vcpkg and VS 2017 (15.9.12) under Windows 10 from the lastest commit in develop branch (commit 132ac39), and ran the photogrammetry pipeline through python bin/meshroom_photogrammetry.

dataset_monstree/mini3 was used.

After changing

617 unsigned int yoffset = (outTextureSide - y) * outTextureSide;
...
620     unsigned int xyoffset = yoffset + (outTextureSide - x);

to

617 unsigned int yoffset = (outTextureSide - y - 1) * outTextureSide;
...
620     unsigned int xyoffset = yoffset + (outTextureSide - x - 1);

in file ${AliceVision_root}/src/aliceVision/mesh/Texturing.cpp, the problem went away, and the generated texture seems to be correct.

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