Users browsing this thread: 1 Guest(s)
E-Man's Sprite R & D
Yeah, I was talking about the goomba's right foot. You should just focus on making sure the animation is smooth, not the translation stuff. If people makes games with your sprites, the gifs are useless. Baking the translation into the frames would be a headache for others since they've got to undo that.

For the human above, try shading according to the surface normal. I'm no artist, but I messed with 3D graphics programming and one of the first things I did was make a sunlight/directional light shader (no self shading though). The intuition learned from looking at the code is that directional light basically operates on the surface normals, not placement of the surface. So when thinking about what surface you're trying to shade and think about the direction the surface normal is pointing to relative to the sunlight/directional light.

In case this helps with intuition, a part of the code:

Code:
//calculate the amount of light on this pixel
lightIntensity = saturate(dot(pixelNormal,-lightDirection));

dot(): returns a value [-1,1] of how "much" the two vectors (normal, -light direction) are in the same direction.

1 Being same direction, which is why the light direction is negated.
If the pixelNormal and the (positive) light direction face towards eachother, then it's fully lit (but the dot returns -1)

-1 means that the (negative)light direction and the pixel normal point away from eachother, and therefore should not be lit

saturate() just clamps the value to [0,1]

That's all there is to it =p.
Animations - MFGG TKO (scrapped) - tFR
[Image: QUmE6.gif]
"It feels that time is better spent on original creations" - Konjak
Focus on the performance, the idea, not the technical bits or details - Milt Kahl
Thanked by:


Messages In This Thread
E-Man's Sprite R & D - by E-Man - 10-06-2013, 11:06 AM
RE: E-Man's Sprite R & D - by Gwen - 10-06-2013, 11:20 AM
RE: E-Man's Sprite R & D - by E-Man - 10-06-2013, 11:59 AM
RE: E-Man's Sprite R & D - by Vinn - 10-06-2013, 11:23 AM
RE: E-Man's Sprite R & D - by Gwen - 10-06-2013, 12:02 PM
RE: E-Man's Sprite R & D - by E-Man - 10-06-2013, 12:12 PM
RE: E-Man's Sprite R & D - by StarSock64 - 10-06-2013, 02:45 PM
RE: E-Man's Sprite R & D - by E-Man - 10-06-2013, 02:48 PM
RE: E-Man's Sprite R & D - by StarSock64 - 10-06-2013, 03:03 PM
RE: E-Man's Sprite R & D - by Gors - 10-06-2013, 03:16 PM
RE: E-Man's Sprite R & D - by StarSock64 - 10-06-2013, 03:26 PM
RE: E-Man's Sprite R & D - by E-Man - 10-06-2013, 03:56 PM
RE: E-Man's Sprite R & D - by StarSock64 - 10-06-2013, 04:17 PM
RE: E-Man's Sprite R & D - by Gors - 10-06-2013, 04:23 PM
RE: E-Man's Sprite R & D - by E-Man - 10-06-2013, 07:30 PM
RE: E-Man's Sprite R & D - by Bombshell93 - 10-06-2013, 08:01 PM
RE: E-Man's Sprite R & D - by E-Man - 10-07-2013, 09:27 AM
RE: E-Man's Sprite R & D - by Bombshell93 - 10-07-2013, 09:43 AM
RE: E-Man's Sprite R & D - by Vinn - 10-07-2013, 09:53 AM
RE: E-Man's Sprite R & D - by E-Man - 10-07-2013, 10:43 AM
RE: E-Man's Sprite R & D - by Bombshell93 - 10-07-2013, 10:51 AM
RE: E-Man's Sprite R & D - by Gors - 10-07-2013, 11:35 AM
RE: E-Man's Sprite R & D - by E-Man - 10-07-2013, 06:12 PM
RE: E-Man's Sprite R & D - by Virt - 10-07-2013, 08:33 PM
RE: E-Man's Sprite R & D - by E-Man - 10-08-2013, 06:12 AM
RE: E-Man's Sprite R & D - by Gors - 10-08-2013, 07:48 AM
RE: E-Man's Sprite R & D - by E-Man - 10-10-2013, 10:32 AM
RE: E-Man's Sprite R & D - by Neweegee - 10-10-2013, 07:34 PM
RE: E-Man's Sprite R & D - by E-Man - 10-10-2013, 07:58 PM
RE: E-Man's Sprite R & D - by E-Man - 10-11-2013, 04:50 PM
RE: E-Man's Sprite R & D - by Bombshell93 - 10-11-2013, 07:01 PM
RE: E-Man's Sprite R & D - by E-Man - 10-11-2013, 07:07 PM
RE: E-Man's Sprite R & D - by Gors - 10-12-2013, 08:03 AM
RE: E-Man's Sprite R & D - by E-Man - 10-12-2013, 10:48 AM
RE: E-Man's Sprite R & D - by E-Man - 10-14-2013, 07:12 PM
RE: E-Man's Sprite R & D - by Virt - 10-14-2013, 08:24 PM
RE: E-Man's Sprite R & D - by E-Man - 10-15-2013, 07:22 AM
RE: E-Man's Sprite R & D - by Gors - 10-15-2013, 07:59 AM
RE: E-Man's Sprite R & D - by E-Man - 10-15-2013, 08:33 AM
RE: E-Man's Sprite R & D - by Virt - 10-15-2013, 04:38 PM
RE: E-Man's Sprite R & D - by E-Man - 10-15-2013, 04:47 PM
RE: E-Man's Sprite R & D - by E-Man - 10-16-2013, 07:04 PM
RE: E-Man's Sprite R & D - by Hiynastrike - 10-16-2013, 07:35 PM
RE: E-Man's Sprite R & D - by E-Man - 10-16-2013, 07:55 PM
RE: E-Man's Sprite R & D - by Hiynastrike - 10-16-2013, 08:47 PM
RE: E-Man's Sprite R & D - by E-Man - 10-17-2013, 07:59 AM
RE: E-Man's Sprite R & D - by Gors - 10-17-2013, 10:32 AM
RE: E-Man's Sprite R & D - by E-Man - 10-17-2013, 07:09 PM
RE: E-Man's Sprite R & D - by Gors - 10-18-2013, 12:03 AM
RE: E-Man's Sprite R & D - by E-Man - 10-18-2013, 06:38 PM
RE: E-Man's Sprite R & D - by Kriven - 10-19-2013, 05:07 AM
RE: E-Man's Sprite R & D - by Gors - 10-19-2013, 08:10 AM
RE: E-Man's Sprite R & D - by E-Man - 10-19-2013, 02:51 PM
RE: E-Man's Sprite R & D - by E-Man - 10-20-2013, 12:45 PM
RE: E-Man's Sprite R & D - by Hiynastrike - 10-20-2013, 05:17 PM
RE: E-Man's Sprite R & D - by E-Man - 10-20-2013, 05:24 PM
RE: E-Man's Sprite R & D - by Hiynastrike - 10-21-2013, 02:43 PM
RE: E-Man's Sprite R & D - by E-Man - 10-21-2013, 12:34 PM
RE: E-Man's Sprite R & D - by E-Man - 10-21-2013, 02:59 PM
RE: E-Man's Sprite R & D - by E-Man - 10-22-2013, 12:12 PM
RE: E-Man's Sprite R & D - by Virt - 10-22-2013, 03:21 PM
RE: E-Man's Sprite R & D - by E-Man - 10-22-2013, 03:38 PM
RE: E-Man's Sprite R & D - by Virt - 10-22-2013, 05:43 PM
RE: E-Man's Sprite R & D - by E-Man - 10-22-2013, 06:23 PM
RE: E-Man's Sprite R & D - by Virt - 10-22-2013, 06:38 PM
RE: E-Man's Sprite R & D - by Garamonde - 10-22-2013, 06:46 PM
RE: E-Man's Sprite R & D - by E-Man - 10-22-2013, 07:03 PM
RE: E-Man's Sprite R & D - by Virt - 10-22-2013, 07:23 PM
RE: E-Man's Sprite R & D - by E-Man - 10-22-2013, 08:11 PM
RE: E-Man's Sprite R & D - by Virt - 10-22-2013, 08:18 PM
RE: E-Man's Sprite R & D - by E-Man - 10-22-2013, 08:24 PM
RE: E-Man's Sprite R & D - by Virt - 10-23-2013, 05:51 AM
RE: E-Man's Sprite R & D - by E-Man - 10-23-2013, 06:55 AM
RE: E-Man's Sprite R & D - by Ton - 10-23-2013, 08:56 AM
RE: E-Man's Sprite R & D - by Gwen - 10-23-2013, 10:30 AM
RE: E-Man's Sprite R & D - by E-Man - 10-23-2013, 04:20 PM
RE: E-Man's Sprite R & D - by E-Man - 10-24-2013, 04:23 PM
RE: E-Man's Sprite R & D - by Virt - 10-24-2013, 06:54 PM
RE: E-Man's Sprite R & D - by Gors - 10-24-2013, 07:47 PM
RE: E-Man's Sprite R & D - by E-Man - 10-25-2013, 05:44 PM
RE: E-Man's Sprite R & D - by Virt - 10-25-2013, 06:43 PM
RE: E-Man's Sprite R & D - by Kelvin - 10-25-2013, 07:56 PM
RE: E-Man's Sprite R & D - by E-Man - 10-26-2013, 08:02 AM
RE: E-Man's Sprite R & D - by Kelvin - 10-26-2013, 08:26 AM
RE: E-Man's Sprite R & D - by E-Man - 10-26-2013, 10:30 AM
RE: E-Man's Sprite R & D - by Kelvin - 10-26-2013, 10:54 AM
RE: E-Man's Sprite R & D - by Virt - 10-26-2013, 12:44 PM
RE: E-Man's Sprite R & D - by E-Man - 10-26-2013, 04:27 PM
RE: E-Man's Sprite R & D - by Kelvin - 10-26-2013, 04:32 PM
RE: E-Man's Sprite R & D - by E-Man - 10-26-2013, 04:38 PM
RE: E-Man's Sprite R & D - by Virt - 10-27-2013, 12:57 PM
RE: E-Man's Sprite R & D - by E-Man - 10-27-2013, 01:01 PM
RE: E-Man's Sprite R & D - by E-Man - 10-27-2013, 03:33 PM
RE: E-Man's Sprite R & D - by Goemar - 10-27-2013, 05:24 PM
RE: E-Man's Sprite R & D - by E-Man - 10-27-2013, 05:27 PM
RE: E-Man's Sprite R & D - by Virt - 10-27-2013, 06:10 PM
RE: E-Man's Sprite R & D - by E-Man - 10-28-2013, 06:58 AM
RE: E-Man's Sprite R & D - by E-Man - 10-28-2013, 07:47 PM
RE: E-Man's Sprite R & D - by E-Man - 10-29-2013, 04:51 PM
RE: E-Man's Sprite R & D - by Virt - 10-29-2013, 08:12 PM
RE: E-Man's Sprite R & D - by E-Man - 10-30-2013, 08:11 AM
RE: E-Man's Sprite R & D - by Kelvin - 10-30-2013, 09:04 AM
RE: E-Man's Sprite R & D - by Gors - 10-30-2013, 12:50 PM
RE: E-Man's Sprite R & D - by Kelvin - 10-30-2013, 01:46 PM
RE: E-Man's Sprite R & D - by E-Man - 10-30-2013, 03:08 PM
RE: E-Man's Sprite R & D - by Kelvin - 10-31-2013, 09:41 AM
RE: E-Man's Sprite R & D - by E-Man - 10-31-2013, 09:47 AM
RE: E-Man's Sprite R & D - by E-Man - 10-31-2013, 02:38 PM
RE: E-Man's Sprite R & D - by Gwen - 10-31-2013, 02:42 PM
RE: E-Man's Sprite R & D - by E-Man - 10-31-2013, 02:47 PM
RE: E-Man's Sprite R & D - by E-Man - 10-31-2013, 03:54 PM
RE: E-Man's Sprite R & D - by Virt - 10-31-2013, 05:38 PM
RE: E-Man's Sprite R & D - by SchAlternate - 10-31-2013, 08:02 PM
RE: E-Man's Sprite R & D - by E-Man - 11-01-2013, 11:39 AM
RE: E-Man's Sprite R & D - by SchAlternate - 11-02-2013, 06:54 PM
RE: E-Man's Sprite R & D - by E-Man - 11-02-2013, 05:43 PM
RE: E-Man's Sprite R & D - by Goemar - 11-04-2013, 02:05 PM
RE: E-Man's Sprite R & D - by E-Man - 11-05-2013, 09:49 PM
RE: E-Man's Sprite R & D - by Gors - 11-06-2013, 06:10 AM
RE: E-Man's Sprite R & D - by DragonDePlatino - 11-08-2013, 05:25 PM
RE: E-Man's Sprite R & D - by E-Man - 11-08-2013, 06:41 PM
RE: E-Man's Sprite R & D - by DragonDePlatino - 11-08-2013, 11:09 PM
RE: E-Man's Sprite R & D - by Alaby - 11-11-2013, 03:03 AM
RE: E-Man's Sprite R & D - by Kelvin - 11-19-2013, 08:30 PM
RE: E-Man's Sprite R & D - by DragonDePlatino - 11-19-2013, 11:41 PM
RE: E-Man's Sprite R & D - by Kelvin - 11-20-2013, 08:50 AM
RE: E-Man's Sprite R & D - by E-Man - 11-20-2013, 10:33 AM
RE: E-Man's Sprite R & D - by Gors - 11-20-2013, 03:25 PM
RE: E-Man's Sprite R & D - by E-Man - 11-23-2013, 08:59 PM
RE: E-Man's Sprite R & D - by SchAlternate - 11-23-2013, 11:36 PM
RE: E-Man's Sprite R & D - by DragonDePlatino - 11-25-2013, 04:57 PM
RE: E-Man's Sprite R & D - by Kelvin - 11-25-2013, 02:34 PM
RE: E-Man's Sprite R & D - by E-Man - 11-25-2013, 05:47 PM
RE: E-Man's Sprite R & D - by DragonDePlatino - 11-25-2013, 08:32 PM
RE: E-Man's Sprite R & D - by E-Man - 11-25-2013, 08:54 PM
RE: E-Man's Sprite R & D - by Kelvin - 11-26-2013, 02:35 PM
RE: E-Man's Sprite R & D - by E-Man - 01-13-2014, 08:05 AM
RE: E-Man's Sprite R & D - by DragonDePlatino - 01-13-2014, 07:37 PM
RE: E-Man's Sprite R & D - by E-Man - 01-14-2014, 07:52 AM
RE: E-Man's Sprite R & D - by E-Man - 01-17-2014, 03:05 PM
RE: E-Man's Sprite R & D - by TheShyGuy - 01-17-2014, 04:47 PM
RE: E-Man's Sprite R & D - by E-Man - 01-17-2014, 07:01 PM
RE: E-Man's Sprite R & D - by E-Man - 01-18-2014, 08:14 AM
RE: E-Man's Sprite R & D - by TheShyGuy - 01-19-2014, 01:51 PM
RE: E-Man's Sprite R & D - by E-Man - 01-24-2014, 09:39 AM
RE: E-Man's Sprite R & D - by TheShyGuy - 01-27-2014, 09:10 PM
RE: E-Man's Sprite R & D - by Alaby - 01-29-2014, 08:29 PM
RE: E-Man's Sprite R & D - by E-Man - 02-25-2014, 07:02 PM
RE: E-Man's Sprite R & D - by Iocus - 02-25-2014, 10:10 PM
RE: E-Man's Sprite R & D - by E-Man - 03-01-2014, 05:11 PM
RE: E-Man's Sprite R & D - by Iocus - 03-01-2014, 09:52 PM
RE: E-Man's Sprite R & D - by E-Man - 04-28-2014, 09:50 AM
RE: E-Man's Sprite R & D - by Iocus - 04-28-2014, 04:26 PM

Forum Jump: