shonumi / gbe-plus

DMG/GBC/GBA emulator and experimental NDS emulator.
GNU General Public License v2.0
530 stars 80 forks source link

Material maps #48

Closed lyonhrt closed 6 years ago

lyonhrt commented 7 years ago

Would it be possible to have the ability to add a material map to a tile, and perhaps setting a tile as a light source, it could open up a lot of interesting looks to the game

Example: 9gq1jd1jv1j71j71jz1ir9gq Normal 9gq1jd1jv1j71j71jz1ir9gq_n so.. with normal applied it could look like this.. example

shonumi commented 7 years ago

About the material map, I think it's better for artists to apply it to whatever image they want to load up. E.g. just do Source + Material_Map beforehand and have GBE+ load up the results. The final look would be the same, and this keeps the scope of CGFX focused on just loading the images rather than manipulating them. IMO, GBE+ shouldn't care about source images, and it should leave them unaltered.

For the lighting, it'd be possible in limited circumstances but kinda onerous to implement. I'm not too warm on the idea due to the associated code complexity involved, and it strays a bit from what I envisioned for CGFX (i.e. nothing more than replacing 1 original tile with 1 custom tile, with some tricks to correctly pull that off). Now, I'm not going to say "No, end of story", just that I don't see it happening. I'll keep an open mind about it nonetheless. If I ever come up with some crazy method of passing CGFX info to the post-processing shaders, that might work.

EDIT: pesky grammar