openframeworks / openframeworks/openFrameworks

3DModelLoaderExample example .ply file on windows

Open
#5,995 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

When running the example 3DModelLoaderExample on windows an pressing the key 3, the mesh fails to load and this message appear in the console. I think it is because of the .ply file, that it is not created in a correct way.

Exception thrown at 0x75BB3EF2 in 3DModelLoaderExample_debug.exe: Microsoft C++ exception: DeadlyImportError at memory location 0x0019F19C.
[ error ] ofxAssimpModelLoader: loadModel(): Validation failed: aiMesh::mVertices[2] is referenced twice - second time by aiMesh::mFaces[1]::mIndices[1]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the 3DModelLoaderExample and the .ply asset used when pressing key 3 on Windows. Reproduce the load failure and inspect the reported duplicate vertex reference in the model data. Done means the example loads the mesh without the DeadlyImportError on Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.