Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

Lighting - Best practise for 2D renders?

A topic by Chequered Ink created Sep 08, 2017 Views: 227 Replies: 2
Viewing posts 1 to 3

Hey everyone, I'm looking for advice on the best way to export 2D sprites with good lighting - specifically sprites that connect together. Example:

Here is a block that could be the corner of a building or a road or something:

I export it at isometric (30 degrees) in all 8 directions with the batch export tool. I'm left with the following issue:

At different angles the lighting is drastically different. The pieces don't connect together well at all, because there is a clear color difference created by the lighting applied to the model. I've tried different combinations of the shadow / occlusion sliders in the export window but none of them give a decent effect.

Am I doing something wrong / is there a better way to do this? 

I noticed this same thing. This was posted last year and no-one responded so I guess not many people have this concern.

My problem is similar. I am generating top down sprites in 8 (or more) directions.  Each sprite exported seems to simply be a rotation of the initial rendered image. So what happens is the light source appears to move with the sprite rotation (eg, the shadow of a space ship antenna points to the right in one sprite and points to the left in the opposite one). 

If each rotation was rendered separately we would see the shadows and highlights maintain direction as the sprite rotates. The only way I found around this is to manually rotate the model and then render a single image each time.

This is a bit disappointing to be honest. Still great for super quick modelling but I might have to render in something else.

PS. I'm only new to AF so if I'm missing something please let me know!

(1 edit)

I believe you can render without lighting and then add it later in your engine, but idk if that's what you're looking for

EDIT: Actually I've tried setting shadows to 0% and the lighting still doesn't match up right.