openframeworks / openframeworks/openFrameworks

ofFbo needs better support for MRT

Open
#1,863 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core feature section-3D
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

ofFbo does support MRT, but it is not very flexible i regards to targets of various formats, nor is it possible to set the format and attachment of the render buffer.

I suggest:

  1. createAndAttachTexture() and createAndAttachRenderbuffer() are made public.
  2. adding a function called attachTexture(const ofTexture& tex) that allows attaching various types of textures.
  3. making all private variables and functions "protected", so that it becomes easier to inherit from ofFbo.

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 locating the ofFbo implementation and its current MRT setup. Review createAndAttachTexture(), createAndAttachRenderbuffer(), texture attachment, and the requested protected inheritance surface. Done means the requested target formats and attachments are supported while existing MRT behavior continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.