Feature #1300

Implement PNG format for screenshot

Added by Spyhawk 7 months ago. Updated 6 months ago.

Status:New% Done:


Priority:NormalSpent time:-
Target version:2.77
OS: Arch:


Screenshot are now only available in TGA or JPG format. Add PNG as a better (default) screenshot format.
Also, reduce the screenshot command to one (so it’s less annoying in console, especially in dev mode) and see if TGA code can be removed entirely.

Associated revisions

Revision 0d1781f7
Added by Spyhawk 7 months ago

renderers: use JPEG for screenshots only, refs #1300

Revision 25bb0bac
Added by Spyhawk 7 months ago

mod: removed cg_useScreenshotJPEG cvar, refs #1300

Revision 41fba9a5
Added by Spyhawk 7 months ago

client: adjusted cl_avidemotype for JPEG only, refs #1300


#1 Updated by Spyhawk 7 months ago

  • Description updated (diff)

#2 Updated by Spyhawk 7 months ago

/screenshot is now using JPEG format. Making a screenshot using TGA format isn’t possible anymore, but the underlying code is still there. It could be accessed again with a new r_screenshotType(?) when PNG is also added.

  • implement PNG rendering
  • add a r_screenshotType cvar to define format?
  • rework cl_avidemoType (0 and 2 are now JPEG, TGA is not an option anymore)
  • adjust UI for new r_ cvar
  • move screenshot code in rendercommon (guess it could be shared across all renderers)

#3 Updated by Spyhawk 6 months ago

  • Target version changed from 2.78 to 2.77

(moving to 2.77 so we don’t forget to add format selection cvar - but png support is only a nice to have for the next release)

Also available in: Atom PDF