Feature #2192
Procedural images generated based on a text file (.deimage)
Description
Perform one-time, load-time operations on image data to procedurally generate pixel content.
A ScriptedInfo file with “.deimage” file extension would be interpreted as de::ImageFile. The .deimage would then describe various layering etc. actions — in a declarative way — to generate the output of the de::ImageFile (i.e, de::Image at runtime). ScriptedInfo would enable performing load-time scripts to determine the final output size/content.
Such a “.deimage” could be used wherever one would use a regular image file (assuming FS2 is used for loading the image data).
The “.deimage” could look something like:
size <512, 512> format: rgba32 layer { filter = grayscale layer "background" { path = "someimage.png" } layer "decal" { opacity = 0.25 offset <25, 50> path = "decal.png" } }
Related issues
History
#1 Updated by skyjake almost 8 years ago
- Related to Feature #1647: Replace FS1 with FS2-based resource management added
#2 Updated by skyjake over 7 years ago
- Priority changed from Normal to Low