You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to know how to extract graphics from an .elf file? I can press [I] in Siftulator in order to view the graphics bank currently loaded. Unfortunately I can't quite get the Zoom level to perfectly align 1:1 in pixel ratio to the Asset flash.
The text was updated successfully, but these errors were encountered:
StickyChannel92
changed the title
Extracting graphics from elf file?
Extracting graphics from elf file/Decompiling elf files?
May 2, 2024
I can't quite remember, but you may be able to figure it out yourself by compiling some demos.
According to the asset workflow, assets are first run through stir to generate C++ structs in assets.gen.cpp, then compiled and linked together with other code into the final object file.
There are 2 parts for a image, first is Sifteo::AssetGroup, which contains tile pixel data (i.e. the data in the "graphics bank"), second is Sifteo::AssetImage, which indicates how those tiles combine into a image.
Having these two dumped and you should be fine, which could be achieved by scanning the elf for struct headers. Also these raw data are compressed, so you have to figure out the compression algorithm to decompress it.
It should also be possible to dump the whole asset flash for a cube after upload finishes, in Siftulator. You can hack and re-compile the SDK for this.
I'd like to know how to extract graphics from an .elf file? I can press [I] in Siftulator in order to view the graphics bank currently loaded. Unfortunately I can't quite get the Zoom level to perfectly align 1:1 in pixel ratio to the Asset flash.
The text was updated successfully, but these errors were encountered: