Monday, April 15, 2019

3d - How do I create a cel-shaded cartoon look?


I am interested in everything related to this kind of effect (modeling, game engine, animation). What sort of stuff is needed?


Here are some sample images of what I mean:


a town in Ni No Kuni enter image description here enter image description here enter image description here



Answer



Cel shading / Toon shading


There might be something more to it, but in general, all of your examples use Cel shading to some extent.


As for your question, whether there are any engines that support this. Well, that should be possible in every engine out there. The ones that aren't hobby projects should actually have such shader available in their standard assets (Unity3D has those dupped Toon shader).


But, the power behind the cel shading is shaders.



2D Games


For 2D applications, using software rendering, you could achieve this by applying a per-pixel modification. That won't be nowhere near fast, but it's doable.
Though, for a software rendered application I'd suggest that you ask your graphics artists to make such sprites out-of-box.


A quick google search gave me these results. There has to be more.


3D Games


As for 3D applications, rendering is done either by OpenGL or Direct3D. Both of these have shader languages implemented, that can do your kind of manipulations and many others.


OpenGL has GLSL — OpenGL Shading Language.
Direct3D has HLSL — High-level Shading Language.


As for tutorials and guides, there are plenty (GLSL, HLSL), due to the release of Borderlands and huge amounts of Indie studios started the past years, the information available about cel/toon shading is aplenty.


There is a specific question on GLSL cel shader right here in GameDev.SE: Is there any opengl cel shading tutorial out there (without GLAUX)?.



Borderlands A screenshot of Borderlands


That should be enough information to get you started with.


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...