openframeworks / openframeworks/openFrameworks

ofCamera / ofEasyCam - add easy way to save/load settings.

Open
#1,683 23 comments 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

I spent a few hours trying to find which data within ofEasyCam needed to be load / saved to disk to save and restore a view.

I found it pretty unclear ( due to the multiple levels of inheritance ), where this core data lies.

In the end I resorted to memcpy-ing the entire object to a buffer and writing it to disk as a binary file.
This works well for my needs - but maybe we could make it a little easier? :)

This could relate to ofParameter and ofParamList->serialize() or something like that.

@elliotwoods @arturoc

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 tracing the ofEasyCam and ofCamera inheritance, then review the mentioned ofParameter and ofParamList serialization APIs. Determine which camera state must be persisted and define a stable save/load approach; done means a documented way to restore a view without copying the whole object as binary data.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.