Getting Image from Spritebatch

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Posts: 41
Joined: Thu Sep 05, 2013 8:48 pm

Getting Image from Spritebatch

Post by khamarr3524 » Sun Feb 18, 2018 7:48 am

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?

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 110 guests