openframeworks / openframeworks/openFrameworks

ofMesh draw wireframe with indices on IOS

Open
#1,766 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

test code:

ofEnableAlphaBlending();

ofMesh temp;
temp.setMode(OF_PRIMITIVE_TRIANGLES);

temp.addVertex( ofPoint(200,500));
temp.addVertex( ofPoint(300,500));
temp.addVertex( ofPoint(250,550));
temp.addVertex( ofPoint(300,550));
temp.addVertex( ofPoint(250,600));

temp.addIndex(0);
temp.addIndex(1);
temp.addIndex(2);

temp.addIndex(1);
temp.addIndex(2);
temp.addIndex(3);

temp.addIndex(2);
temp.addIndex(3);
temp.addIndex(4);

ofSetColor(255,255,255, 60);

temp.draw();

ofSetColor(255,0,0);

temp.drawWireframe();

produces odd output on IOS

Screen Shot 2012-12-21 at 4 52 23 PM

vs desktop

Screen Shot 2012-12-21 at 4 52 39 PM

I've seen glitchier things w/ mesh.drawWireframe() on ios when the mesh has indices, this is just a simple test to show that something's not totally right.

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 provided indexed ofMesh reproduction, especially addIndex(), draw(), and drawWireframe(), and compare the iOS rendering path with the desktop result. Confirm the behavior using the same triangle and index data; done means indexed wireframe rendering on iOS matches the expected desktop output without the shown glitches.

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.