Add support for per-point opacity in (RVPaint) strokes

オープン
#956 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp

調査の方向性

このIssueでは、ファイル、テスト、エントリーポイントが指定されていません。まず、RVPaintがポイントごとのストローク幅をどのように保存し、レンダリングしているかを追跡し、その後、オパシティデータをどこで表現し、補間するかを特定してください。既存の一様なオパシティの動作を変更せずに、ストロークでポイントごとのオパシティにベースカラーのアルファを乗算して使用できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

OpenRV currently supports variable stroke width in RVPaint nodes, where each point in a stroke can have a distinct width value. It would be very useful to extend this capability to include per-point opacity, allowing artists or tools to create strokes with varying transparency along their length.

Current Behavior

A stroke definition such as the following allows different widths per point, but opacity (alpha) must currently be uniform for the entire stroke via the color’s alpha channel:

sourceGroup000000_paint : RVPaint (3)
{
    paint
    {
        int nextId = 1
    }

    "frame:1001"
    {
        string order = "pen:1:1001:pjurkas"
    }

    "pen:1:1001:pjurkas"
    {
        int mode = 0
        string brush = "circle"
        float[4] color = [ [ 0 1 0 1 ] ]
        float width = [ 0.01 0.02 0.03 ]
        float[2] points = [ [ -0.25 -0.25 ] [ 0.25 -0.25 ] [ 0.25 0.25 ] ]
    }
}
Proposed Enhancement

Introduce an additional opacity parameter similar to width parameter. The opacity parameter could be handled similarly to width, interpolated between stroke points and multiplied with the alpha component of the base color at render time. For example:

float opacity = [ 0.5 0.8 1.0 ]
主要言語
C++
スター
797
フォーク
259
平均マージ
4日 4時間
マージ済み PR(30日)
34

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AcademySoftwareFoundation/OpenRV のほかの issue

AcademySoftwareFoundation/OpenRV の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。