3Dickulus / FragM

Derived from https://github.com/Syntopia/Fragmentarium/
GNU General Public License v3.0
349 stars 30 forks source link

time rewind does not clear back buffer in progressive mode #137

Closed claudeha closed 4 years ago

claudeha commented 4 years ago

Describe the bug Pressing rewind (for the time slider) does not clear back buffer -> bad accumulation.

To Reproduce Steps to reproduce the behavior:

  1. Stop animation
  2. Drag time slider to the middle
  3. Start progressive rendering
  4. Press rewind button
  5. See error: the subframes from the "middle time" are not cleared before continuing to accumulate subframes from the "start time"

Expected behavior back buffer to be cleared when rewinding (and subframe counter be reset)

Screenshots time-slider-rewind-does-not-clear-subframes

Very Annoying Workaround

  1. press stop
  2. switch to animation mode
  3. switch to progressive mode
  4. press play

Desktop (please complete the following information):

3Dickulus commented 4 years ago

yes annoying, it will redraw properly as soon as you click the gl area, fixed with engine->requireRedraw(true); in rewind() and play() before engine->update()

claudeha commented 4 years ago

Thanks for the fix!