Skip to content
Get App

2D Characters in 3D Worlds (and how I improved them)

Jay the Dev Guy explores making a 3D platformer with 2D characters, avoiding turnaround sprites and paper cutouts, using blob shadows, normal maps, and distance fields in Unreal Engine 5.

Key Takeaways

  • 2D characters in 3D worlds can avoid turnaround sprites by rotating around the feet and using a clever camera-aware setup.
  • Simple visual cues like blob shadows and particle trails are essential for depth and spatial clarity in 3D platformers.
  • Normal maps and distance-field outlines let stylized 2D art integrate convincingly with 3D lighting and zoom.
  • Texture resolution is one of the most demanding parts of game performance, so efficient texture use matters.

What the video covers

  • The creator loves the aesthetic of 2D characters placed in 3D worlds, comparing it to classic hand-drawn cartoons and iconic games like Paper Mario and Doom.
  • Common compromises in this style include turnaround sprites (many animation angles per action) and fixed cameras, which the creator wants to avoid.
  • The goal is 2D characters in a 3D world with no turnaround sprites, an unrestricted camera, and no paper-thin cardboard look.
  • Rotating characters around the bottom of their feet rather than their sprite center makes camera movement acceptable without extra animations.
  • A fake blob shadow beneath each character, shrinking with height, restores depth perception, a technique dating back to Mario 64.
  • Particle effects such as running trails help orient the player in the 3D space.
  • Normal maps are introduced as a lighting trick that makes flat textures react to light, and the creator notes high-resolution textures are a major performance cost.
  • Separating black outline line work from colors and rendering it via distance fields lets sprites be zoomed in without blurring.
  • Other indie projects such as Here Comes Nico use similar techniques, so the creator aims to go beyond basics using Unreal Engine 5 rendering techniques.
  • The video ends by previewing a raccoon-themed game prototype and a collaboration with developer Morgan McKay on a first-person platformer.

Answers

Questions about this video

Why does the creator dislike turnaround sprites?

Turnaround sprites require separate animations for many camera angles, such as facing the camera, three-quarter views, and side views, which makes the workload very large. The creator considers this too much work for a reasonable project.

How does the creator add depth perception to flat characters?

They add a fake blob shadow directly beneath each character's feet that gets smaller as the character rises off the ground. This technique, familiar from Mario 64, helps ground the character in 3D space.

What are distance fields used for in this project?

By separating the black outline line work and rendering it with distance field information through a shader, the sprites stay clean and sharp even when zoomed in, without becoming blurry.

Full Transcript — Download SRT & Markdown

00:01
Speaker A
[Music] hey I'm Jay the dev guy and I love 2D characters in 3D worlds something about the confidence to have one art style for the characters and a completely different art style for the environments and just sort of shoving
00:20
Speaker A
them in a room together and making it work like it reminds me of old hand-drawn cartoons where you know you can always tell what's going to move based on what's drawn on the animation cell instead of painted in the
00:30
Speaker A
background it just has this janky charm and I can't help but love it when I see it but what really surprised me about this style isn't just the fact that the Jank is charming but that despite the obvious
00:41
Speaker A
Jank some of the most iconic games ever made look like this like it's not some Niche some of the most classic Classics are styled this way and it's got such range I mean anywhere from the cartoony storybook aesthetic of the original
00:55
Speaker A
Paper Mario To the Gory youth corrupting violence of the original Doom we all just like take these games seriously and for something as janky is having a little 2D guy in a 3D space I don't know I just find that kind of beautiful
01:12
Speaker A
[Music] so when I decided to take learning game development seriously I mean this style seemed like the perfect fit for me because I could take the 2D character skills I already had which is great because rigging and animating 3D
01:31
Speaker A
characters is like kind of a nightmare but I could put them in the 3D worlds that I really wanted to make and play but as soon as I started really prototyping it seemed like all of the games that do 2D characters in 3D worlds
01:44
Speaker A
do one of a few compromises that I really wanted to avoid some will create a ton of turnaround Sprites so no matter which angle the camera is looking at them they'll always have a set of Sprites that's drawn in
01:57
Speaker A
the proper perspective so I mean this means you can't have just a run animation but you have to have a run animation for when they're facing the camera directly or an animation for when they're facing three quarters of the
02:07
Speaker A
camera or an animation for when they're facing the side of the camera or an animation for when they're three quarters away run animation form they're completely away it's it's a ton of work I mean props to the people who do it but
02:16
Speaker A
this is way too much work for me to consider reasonable so I definitely didn't want to do that but the games that avoid doing all those turnaround Sprites typically avoid it by just locking the camera completely so all
02:28
Speaker A
those tough angles that would break the illusion of the flat characters in this 3D World just aren't accessible at all and if fixed cameras fine for some games obviously but a lot of the types of games that I really wanted to make and
02:40
Speaker A
play like a shooter or Souls like just can't really be done with a fixed camera like that and I mean some games just say it they're made of paper but I I didn't want to do any of these things I wanted
02:51
Speaker A
to have 2D characters in a 3D World with no turnaround Sprites and an unrestricted camera and and no paper which is maybe an ambitious goal but I mean this ambition is worth nothing if I can't get it working with something
03:05
Speaker A
simple like a a basic 3D platformer so my mission right now is clear can I make a basic 3D platformer with 2D characters in 3D World no turnaround Sprites unrestricted camera and no paper so let me walk you through what that was
03:21
Speaker A
like so here we have a really basic scene of mine 2D character 3D World no turnout's price unrestricted camera and it sort of seems like as soon as I do the most basic action imaginable at moving the camera at all the whole thing sort of
03:36
Speaker A
seems to fall apart I mean the character just creepily slides along the ground to keep the camera on its good side but while this was janky if I stopped to think about it this sort of just felt like that Charming Jank that Drew me to
03:51
Speaker A
this style to begin with so I was kind of fine with this I mean as long as I have the characters rotate at the bottom of their feet instead of the center of the Sprite like this I don't know I kind
04:01
Speaker A
of liked this which is fantastic because I just saved myself a ton of work by not needing to animate all those turnaround Sprites and I was really happy with the result so in my opinion that first compromise of the turnaround Sprites is already
04:16
Speaker A
taken care of but I mean before I could get too excited the character looking acceptable while the camera moves a little bit is pretty much the bare minimum and art style needs to be able to handle so I
04:28
Speaker A
have a few more things to take care of before all my basic needs are met and I would say one of the most basic needs of a 3D platformer is depth perception I mean okay depth perception in 3D games
04:38
Speaker A
has always been hard but let me tell you when your characters have literally no depth of themselves it doesn't help so one of the first things I did was create this fake blob Shadow that's always directly underneath the character's feet and I mean this
04:52
Speaker A
will trick as old as Mario 64 and it really helps ground the character and the 3D space around them you will feel its absence if you play a 3D platform or without one of these tossing some codes so the shadow gets
05:05
Speaker A
smaller the further the character is from the ground and throw in some particle effects so that when they're running it sort of illustrates the trail that they've moved on so far and Orient you in the direction that you're going
05:16
Speaker A
and this 3D platformer is feeling pretty good to me I mean modern fully 3D Platformers still use all these tricks so their effectiveness for me here is really just a testament to how important little details like this can be and how
05:29
Speaker A
especially the important they are if you're doing something a little unconventional like having flat characters like I am but with all these tricks I think the basic needs of my simple 3D platform are met and okay the basics being possible
05:42
Speaker A
did surprise me and I am proud of this but I can already see you commenters pointing this out in the comments below that other Indie devs have done this before I mean Here Comes Nico a game that came
05:56
Speaker A
out last year does literally everything I've talked about so far and I mean there are a lot of Indies for that matter doing really cool and interesting things with the 2D characters in 3D World space right now and I definitely
06:09
Speaker A
want to talk about those but it seems clear to me that it's going to take going beyond the basics to even be on par with what others are doing in this space right now and thankfully with a few modern rendering techniques and
06:23
Speaker A
Unreal Engine 5 I think I've got a few more tricks left that can impress even the smuggest of commenters out there so let's bring this prototype into the Modern Age but before I start layering on more tricks it's worth taking a quick moment
06:36
Speaker A
to step aside and point out that even though this scene here looks basic with just a few characters in a simple scene it's actually already way more modern than it appears and this is because the high resolution textures like all these characters have
06:50
Speaker A
is actually way more demanding than you'd probably think in fact textures even with Modern Hardware and Unreal Engine 5 are one of the most demanding parts of running games even still and it's especially worth noting that because if I could save any space on the
07:07
Speaker A
resolution or size of these textures going forward it could really help me push the boundaries of how many characters I could have on screen or how many animations each of those characters have so just try to remember that any
07:19
Speaker A
space I can save on these textures is going to be a really big deal going forward so anyway the first real trick that me and a lot of the other Indie devs use is something called normal maps and normal maps are the reductive
07:32
Speaker A
version that I'm going to be explaining for this video are basically a texture that tell the engine how to light a surface and I mean okay some of you may be wondering how this weird purple texture says anything about lighting and there
07:46
Speaker A
are a ton of actually good videos out there that'll explain this way better than I will I'll link them in the description but most of you probably understand how a typical texture works I mean you have a grid of pixels and each of those
07:58
Speaker A
pixels contains one color and put a bunch of those pixels together and you get a pretty picture but the important thing to understand is that this purple pixel isn't purple it's 96 red 42 green and 116 blue it can be broken down as
08:14
Speaker A
just a bunch of numbers we're just telling the computer in this case that the number is 96 42 and 116 should add up to that desired color and okay I mean it's probably not surprising that under the hood colors
08:28
Speaker A
are numbers because you know computers and code are just numbers right so I understand that that part's not surprising but the part where things get really interesting is understanding that these numbers can mean color like they do in this case but these numbers can
08:45
Speaker A
also communicate anything to the computer using this texture and I mean I mean anything like seriously anything so here on screen right now I have a black and white texture where the values of each pixel spell out my real personal
09:02
Speaker A
phone number in ASCII here I have a red and green texture where the value of red in each pixel correlates to a class in Team Fortress 2 and a value of green in that same pixel is the required IQ it
09:13
Speaker A
takes to play them here's a texture where the values of red green and blue just spell out steam keys to undertale dusk and golf with your friends good luck with that one and so you know what if instead of all
09:25
Speaker A
that stupid stuff we could have the values of a texture communicate what angle a surface should be lit as see because light and games are the reductive version of light and games that I'm going to be explaining for this
09:38
Speaker A
video basically works by taking the angle of a light source and calculating it relative to the angle of a surface so if a light is at 80 degrees and a surface is fully facing towards it it'll be rendered as fully lit and if the
09:51
Speaker A
light is 80 degrees and the surface is fully away from it it'll be rendered as fully dark everything in between is shaded in between but what we can do is intercept that calculation with a texture and essentially lie to the light and say hey
10:06
Speaker A
instead of lighting the surface at the angle of the surface light this surface at the angle that this texture is telling you instead and that's basically again basically how normal Maps work normal maps have been used in games for
10:21
Speaker A
a long time to light flat surfaces as if they had way more depth and complexity to them than they actually do and this is perfect for me because all of my characters are completely flat so by adding a normal map to them like this
10:34
Speaker A
they can now be lit as if they had real depth and volume to them as you can see here it creates this really nice Rim lighting effect to them that not only do I think just looks better but also
10:46
Speaker A
really grounds the characters and the environment around them by having them react to the lighting in the environment just like the environment itself does so not only does this add polish but it's that little bump of the lamp that really
10:59
Speaker A
separates the The Who Framed Roger rabbits from the cool worlds nobody wants to be a cool world and so with normal Maps I think that I've brought this prototype into the Modern Age I mean to me this looks at
11:12
Speaker A
least as good as a lot of the other Indies in the 2D character 3D World space right now and this is awesome but my commitment to that last compromise the the unrestricted cameras still causing me one problem when the
11:26
Speaker A
camera gets too close the Sprite gets really blurry like really blurry and the first instinct to fix this made it just be increase the resolution of the characters so make him a 4K texture that way the camera can get pretty close
11:40
Speaker A
and it won't get blurry for a while right but as I elaborated on earlier making large textures like that is really not ideal I mean Modern Hardware and Unreal Engine 5 are really good but having a bunch of characters on screen
11:53
Speaker A
with that many animated 4K textures like that is just not possible in Modern Times And even if I wanted to upscale every single character sprite to 4K eventually the camera is going to get close enough to them where it will just
12:07
Speaker A
get bullied regardless so even if I wanted to upscale the 4K which again I couldn't it doesn't even really solve the problem anyways and really zooming in on complicated multi-colored textures like this is always going to result in blurriness
12:22
Speaker A
eventually but thankfully because of the way I draw my characters they all have this cartoony black outline for their line work so I realized that if I could separate the line work from those colors render that black line work cleanly and
12:38
Speaker A
overlay it back on top of all the blurry colors underneath it I could effectively have a character sprite that the camera could get infinitely close to because those clean black lines are covering any of the blurriness underneath and
12:51
Speaker A
thankfully distance fields are the perfect trick for this so distance fields are traditionally used for things like text or putt elements things that need to be rendered on screen sometimes really large and always need to be rendered very crisp and they basically
13:05
Speaker A
again basically work by instead of the values on this black and white texture being simply what the shape is and what the shape isn't a fully white pixel soul is as close to the shape as possible and a fully black pixel is pretty far from
13:21
Speaker A
the desired shape so in this case the value of the pixels just communicate distance from that shape so again white is as close as possible black is pretty far and all the shades in between are the distance in between
13:34
Speaker A
and through a Shader Unreal Engine can take this distance information and use it to create this beautiful clean crisp image that we can zoom in as close as we want to to and it'll never really get blurry I'm not gonna go over the math on how
13:49
Speaker A
Unreal Engine takes this distance information and somehow uses it to spit out of really clean image frankly I had a friend figure this part out for me but the bottom line is because textures are full of numbers and those numbers can be
14:01
Speaker A
used to communicate anything in this case distance we can use that to our advantage to create really cool character work like this and now we have a hand-drawn 2D character that holds up to scrutiny no matter how close the
14:14
Speaker A
camera gets and the coolest part of all this is that normal Maps distance fields and the simple colors that my characters use all work really well in low resolution my character sprites can be as small as 128 pixels by 128 pixels across which is
14:30
Speaker A
insane I mean compare it on screen right now to a normal 128 pixel by 128 Pixel character and you can see the difference that this makes and again since textures are such an expensive part of video games still the savings here are huge in
14:45
Speaker A
fact this Sprite size is probably the biggest accomplishment in this video so far I actually don't know of any other game that uses distance fields in this way to create characters or something like that that can be zoomed in really
14:57
Speaker A
closely too so the people in the comments if you know of any uh please let me know I'd actually really appreciate that and so with all these tricks combined this art style can handle pretty much anything and I mean this is really
15:11
Speaker A
liberating to me I feel like I can create any game I want with this any idea I want with this which is great because boy do I have ideas okay first idea I have written down you play as a Ratatouille secret agent and
15:24
Speaker A
as a rat you have this slick 3D platformer moveset that you can use to like stealth around an enemy base but as soon as you jump on someone's head to control them it becomes this goofy physics-based disaster so you're
15:35
Speaker A
constantly switching between really tight 3D platforming and this goofy physics-based quap Fest it's it's Hitman meets Octodad I swear it would be the hottest game of 2014 and even now you people aren't ready for it okay next idea I have you play as this mother
15:50
Speaker A
raccoon and you need to break into the backyard of this recently built mcmansion and steal their food so again you have to use this 3D platformer moveset to like find and collect food and you drop it off at the perimeter of
16:00
Speaker A
the house to feed your babies but it works on this like day night cycle so you have to replenish your resources and make sure that your family can survive the night but I mean you're a raccoon so the whole time you're just causing all
16:11
Speaker A
sorts of shenanigans along the way it's it's Untitled Goose game meets rain World meets Over the Hedge the next idea I've written down it's uh Super Mario Sunshine but it's depressing that's that's actually all I've written down for it just the 3D platforming and
16:27
Speaker A
environmentalist messaging of Super Mario Sunshine but instead of fighting Bowser you fight climate change uh oh and lose so uh be sure to ring that Bell to get notified when that drops and so yeah I mean if any of those
16:43
Speaker A
stupid ideas interest you or you just liked any of what you saw here today consider you know doing the YouTube stuff and liking the video and subscribing to see what's next a lot of the work here was actually done with the
16:54
Speaker A
help of an old friend of mine Morgan McKay and they're actually still developing a real game right now it's it's a first person platformer inspired by surf maps and Wind Waker it's called under Peak so give them a follow too
17:05
Speaker A
while you're at it I'll be releasing videos as often as I can in 2023 and hopefully have something fun and playable soon too this is my first video and I'm sure that that shows I I don't really know how to end them yet so you
17:21
Speaker A
know uh you can check me out at Jay the dev guy at any of the places I I haven't posted anything so you know maybe just go check out Morgan McKay instead and don't get ring that Bell if you want uh
17:34
Speaker A
depressing Super Mario Sunshine I will not make it unless you do so seriously thanks for watching and see next time [Music]
Topics:2D characters in 3Dgame development3D platformerUnreal Engine 5normal mapsdistance fieldsindie gamessprite renderingblob shadowstylized art

Get More with the SozAI App

Transcribe recordings, audio files, and YouTube videos — with AI summaries and speaker detection. 30 minutes free.

Or transcribe another YouTube video here →