openframeworks / openframeworks/openFrameworks
GPU particle example with alpha
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
It's not obvious from the result but the GPU particle example doesn't use alpha for the render fbo so you can't layer on top of other stuff. Simply change this line to GL_RGBA32F should be enough
(I personally prefer to use alpha channel on ping pong fbos as well so you can pass other attributes such as particle age - but maybe this is a stretch for this example)
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
Open examples/gl/gpuParticleSystemExample/src/ofApp.cpp at the framebuffer setup around line 74. Check how the render FBO is allocated, then verify the example builds and that its output can be layered over other content with alpha. The issue is done when the render FBO uses the requested alpha-capable format and the example still runs correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100