Page 1 of 1

Getting Image from Spritebatch

Posted: Sun Feb 18, 2018 7:48 am
by khamarr3524
So, I'm trying to use Light_World.lua alongside STI and am struggling to get Normals mapped properly. I'm taking tilesets and using them in Tiled and using STI to render them, but after adding Light_World, I found the need to use Normal Maps to properly light tiles. The problem with this is for the Bodies in Light_World it (doesn't explicitly, but based on the callbacks in the code) requires an Image to set the normal map (see documentation for the function here.) I'm taking the tilesets and passing them through the NVIDIA Normals plugin for Photoshop, so if I want to use them in a tiled fashion I have to either
  • use Spritebatch/quads
  • break the tileset up and use the images individually.
The first one doesn't seem possible because I'm not finding a way to get an image object from a spritebatch and a quad, but the second one is seemingly ridiculous. Is there something I'm missing?