forked from icosa-foundation/open-brush
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Working based branch:
https://github.com/Daniel-Fan/open-brush/tree/add-strokeIndicator
ReadMemory
- Read the strokes info from memory, then add stroke into a MemoryList https://github.com/Daniel-Fan/open-brush/blob/add-strokeIndicator/Assets/Scripts/Save/SketchWriter.cs#L306
- All the stroke is stored in that memoryList
- The memoryList will be sorted by the timestamp of initial control point of each stroke. https://github.com/Daniel-Fan/open-brush/blob/add-strokeIndicator/Assets/Scripts/SketchMemoryScript.cs#L906
Workflow for playback
- BeginDrawingFromMemory is used to initialize the playback object.
- Before passing memoryList into the ScenePlayback, we should have finished the computation of camera position.
- After the scene started, we only only to consider the redraw part, see details below
- In Redraw(which should be used for scale change and zoom in and out), after it is sorted, we will start the
ScenePlaybackByTimeLayeredorScenePlaybackByStrokeDistance
- In Redraw(which should be used for scale change and zoom in and out), after it is sorted, we will start the
Data Structure of Stroke
- There is a list in each Stroke called
m_ControlPointswhich stores the specific position and orientation of each point in this list. https://github.com/Daniel-Fan/open-brush/blob/add-strokeIndicator/Assets/Scripts/StrokeData.cs#L31 - structure of control point https://github.com/Daniel-Fan/open-brush/blob/add-strokeIndicator/Assets/Scripts/PointerManager.cs#L70
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels