Project

General

Profile

Feature #2192

Procedural images generated based on a text file (.deimage)

Added by skyjake over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Low
Assignee:
Category:
Enhancement
Target version:
Start date:
2017-01-10
% Done:

0%


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

Related to Feature #1647: Replace FS1 with FS2-based resource managementProgressed2013-10-31

History

#1 Updated by skyjake over 3 years ago

  • Related to Feature #1647: Replace FS1 with FS2-based resource management added

#2 Updated by skyjake over 3 years ago

  • Priority changed from Normal to Low

Also available in: Atom PDF