openframeworks / openframeworks/openFrameworks
ofMesh drawWireframe
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
i came across an issue today when trying to draw a ofMesh wireframe.
when the wireframe is drawn inside ofGLRenderer, the draw mode is always set to GL_LINES.
but the result was an incomplete wireframe.
when i set the draw mode to GL_LINE_STRIP it was rendering correctly.
i think when choosing between GL_LINES and GL_LINE_STRIP to draw wireframes,
it depends on the way the triangle vertices are stores,
OF_PRIMITIVE_TRIANGLES, OF_PRIMITIVE_TRIANGLE_STRIP etc...
but this is a bit of a guess atm...
has anyone else come across this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in libs/openFrameworks/gl/ofGLRenderer.cpp around line 101, where wireframe drawing selects GL_LINES. Reproduce the incomplete ofMesh wireframe and compare GL_LINES with GL_LINE_STRIP for the primitive arrangements mentioned in the issue. Done means wireframes render completely with the relevant ofMesh draw modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100