openframeworks / openframeworks/openFrameworks

bug with ofxAssimpModelLoader / ofVboMesh / ofMesh on iOS

Open
#1,723 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

addon bug iOS prelim-analysis section-3D
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

buggy assimp

in the attached image you can see a model ( http://theo.tw/OF/http://theo.tw/OF/Island_001.dae )

being rendered in the same release of OF with the desktop OF version on the left and the iOS version on the right.

In the iOS version you should be able to see weird visual glitches in the mesh.
the desktop version loads fine however.

note: this is true for both the simulator and an iOS device.

I've tried newer versions of assimp and this doesn't fix it.

I suspect it might not actually be an assimp issue but an ofMesh / ofVboMesh one as I have had issues drawing meshes on iOS that rendered fine in OS X ( GL_TRIANGLES MESHES ).

To reproduce try loading the .dae file linked above into the iOS assimp example.

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 iOS assimp example and reproduce the issue using the linked Island_001.dae model on both the simulator and an iOS device. Inspect the ofMesh and ofVboMesh rendering path, especially GL_TRIANGLES, and compare it with desktop rendering. Done means the mesh renders without the reported visual glitches on iOS while remaining correct on desktop.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ios
Domain
computer-graphics, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.