01-19-2023, 04:16 AM
Hi!
Thanks for the suggestion and related documentation, this is quite interesting :-)
Tilengine implements a feature that, albeit not as complex as SNES windowing feature, is quite similar and can do the same trick in most scenarios. This is layer clipping:
https://www.tilengine.org/doc/md_layers....totoc_md37
The idea is simple: each background layer can have a clip region, defined by a rectangle, that masks out what lies outside the rectangle. Playing with the clipping rectangles of two or more layers using raster effects to tweak their shape can lead to very interesting special effects.
The explanation about how windowing works in SNES is very well explained. The SNES has a limited number of layers, so having the ability to combine masking with constant color blending (transparency) within a single layer is important. In Tilengine you can have more layers, and you can also clip and do color math. So, despite having somewhat different implementation, I think I could do all the shown effects with Tilengine without implementing any new feature. Some effects are more difficult than others, however.
What do you think? What effect do you have in mind?
Thanks for the suggestion and related documentation, this is quite interesting :-)
Tilengine implements a feature that, albeit not as complex as SNES windowing feature, is quite similar and can do the same trick in most scenarios. This is layer clipping:
https://www.tilengine.org/doc/md_layers....totoc_md37
The idea is simple: each background layer can have a clip region, defined by a rectangle, that masks out what lies outside the rectangle. Playing with the clipping rectangles of two or more layers using raster effects to tweak their shape can lead to very interesting special effects.
The explanation about how windowing works in SNES is very well explained. The SNES has a limited number of layers, so having the ability to combine masking with constant color blending (transparency) within a single layer is important. In Tilengine you can have more layers, and you can also clip and do color math. So, despite having somewhat different implementation, I think I could do all the shown effects with Tilengine without implementing any new feature. Some effects are more difficult than others, however.
What do you think? What effect do you have in mind?