openframeworks / openframeworks/openFrameworks

nicer stroke mitering/joining and end caps

Open
#730 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core feature
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.