mapeditor / tiled

Flexible level editor
https://www.mapeditor.org/
Other
11.17k stars 1.76k forks source link

Allow TileSets to support Normal Maps #830

Open Chaoseiro opened 9 years ago

Chaoseiro commented 9 years ago

So, as softwares like SpriteLamp are becoming popular, it seems that some people want/are using Normal Maps for Pixel Art. Some softwares, like AutoTileGen, already generates a Color Map and a Normal Map for tilesets.

So I believe Tiled could support such feature by enabling TileSets to reference a Color Map and a Normal Map. Visualization inside Tiled would be awesome, but costly, so just letting TileSets reference two textures would be okay.

(I did not buy nor am filiated to those softwares in any way)

bjorn commented 9 years ago

It's a nice idea, and I'd definitely would like to support also visualization inside Tiled. But unfortunately I have no time for it.

Fortunately, if you just want to reference another image, you can use a custom tileset property for this. Alternatively you can match such images up automatically by their filename.

khamarr3524 commented 6 years ago

What I ended up doing for tile normals was splitting them and creating an index that has a given custom property like normal\<int>:x and in the game code just pull the property and grab the normal from the index.

In all honesty this is the best solution I can hope for (for now) because of the libraries I'm using to incorporate Tiled and to generate my lighting. For me it's a pipeline dream to get this resolved since it would require Tiled to have it implemented, then implement into the tiled map library, then adding support to pull those images in the lighting library, which is just not viable for me.