linebender / linebender/vello

Add a non-AA mode

Open
#1,832 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
4.3k
Forks
300
Avg merge
2d 13h
Merged PRs (30d)
61

Description

Currently `AaConfig` have three different modes for how to calculate AA, but I'm missing one which is perhaps the simplest: Don't do any anti-aliasing.

My need for this is in creating an ID-buffer to power a hitmap. Each object is rendered to the buffer with a color corresponding to the id and a look-up allows you very fast information on what you are hovering over.

The issue is that AA "makes up" ids along the edges of the rendering and thus it needs to be turned off

Contributor guide

No contributing guide indexed for this repository

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 locating AaConfig and the existing anti-aliasing mode handling, then trace how those modes affect rendering. Add a selectable mode that performs no anti-aliasing, and verify that ID-buffer rendering preserves exact object colors at edges for hitmap lookup.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
67/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.