openframeworks / openframeworks/openFrameworks

imageSequenceExample should use a vector of ofPixels not ofImages

Open
#1,690 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

development-strategy example feature
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

imageSequenceExample
Beginners trying to build off of this example will run into problems because each frame will have its own texture reference and will rapidly eat gfx memory.
See this thread for an example of someone trying to extend it and getting stuck.

The imageSequenceExample should use a vector of ofPixels objects and an ofTexture to display the pixels when they are needed.

ofImage should only be used for loading in this case. actually ofLoadImage() can load directly into an ofPixels object so ofImage really isn't needed at all.

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 with examples/graphics/imageSequenceExample/src/testApp.cpp and inspect how frames are loaded and displayed. Run the imageSequenceExample to confirm its current behavior, then verify that frames use ofPixels with an ofTexture for display rather than retaining per-frame texture references. Done means the example still displays the sequence without rapidly consuming graphics memory.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.