openframeworks / openframeworks/openFrameworks
nicer stroke mitering/joining and end caps
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
it would be awesome to have lines drawn nicer when they are 1 thick and 2 make sharp edges. processing has some functions strokeCap() and strokeJoin() for setting this behavior, but it doesn't work with OPENGL mode. we could probably adapt a geometry shader to do some smart mitering for us on the GPU.
prompted by the discussion here: http://forum.openframeworks.cc/index.php/topic,7278.0/topicseen.html
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 by reviewing the OpenGL rendering path and the Processing strokeCap() and strokeJoin() references in the issue, then read the linked forum discussion. Define how 1-pixel lines, sharp joins, mitering, and end caps should behave in OPENGL mode. Done means these line-rendering options produce visibly cleaner results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100