Toon Shader Minecraft

0 views
Skip to first unread message

Astryd Boschee

unread,
Aug 3, 2024, 11:11:00 AM8/3/24
to gaigorrewe

Cartoon shaders typically emphasize bold, bright colors with strong outlines and cel-shading effects. They may also incorporate techniques such as exaggerated textures, simplified shapes, and vibrant lighting to further enhance the cartoon aesthetic.

Please let me know what minecraft (and optifine) version are you using, and if you really wanna help, issue a screenshot of how it looks in your pc, and specially, screenshots of possible weird glitches you get, if any.

You don't only have the hand issue, the whole shader looks incorrect in your screenshots. In my computer it looks completely different (like in the screenshots from the post), but in my laptop it looks different both to that and to what you're showing me.

Both the depth map and the normal map of spiders (and the blocks it occupies?!) gets random noise, causing the random "dust" you see in the picture as the edge detection algorithm goes crazy. In my "good" PC it doesn't do that.

In a normal rendering process the brightness is continues. With a cell shaders this is different. As here the calculated brightness is put trough a filter that results in a few steps of brightness instead of a continuum. This results in a cartoon like effect.

hey guys, i am new to Unity. i am going to be making a fps for my university final major project. i am wondering if anyone can help on how to create cel shade textures without having to buy the pro version. any existing tutorials or anything to do with cel shading would be a great help. thanks[/b]

The thing is, once I do that, anything else I make with a toon shader now has that very same texture on it. What I want is to have an arbitrary number of toon shaded objects, with an arbitrary number of textures.

I -suspect- I must be doing something wrong here, and that the base RGB texture must be for some other purpose than the main texutre. If I want 20 different objects with 20 different textures to have a toon shader, surely I do not have to make 20 different toon shader objects in the project file. Or?

Ever since I was little I have loved how comics and cartoons looked. The first time I've learned about Cel Shading was when I played Zelda Wind Waker. As I've mentioned on my previous Instructable about Cel Shading Real Life Pictures: "Cel Shading is a type of non-photo-realistic rendering designed to make 3-D computer graphics appear to be flat often to mimic comic books or ink paintings." By using Blender, I could achieve creating this aesthetic of a cartoon appearance in two different ways with two different outcomes. One of these methods was accomplished by using Blender Render and the other Bby using Blender Game.

I started off by opening a new file in Blender, and deleting everything in the scene. Then I added 3 meshes: a plane and 2 spheres and applied a modifier called Subdivision Surface Modifier; this will divide the faces of the mesh giving it a smooth appearance. It is important to do this because that way the shading effect will work better. Then apply a Smooth Shading to the mesh so that it doesn't have rough edges. Then add a Sun Lamp to work out the shading for the next steps.

This is the first method to create a Custom Toon Shader. To work this method I used something called Nodes; Nodes use material, light and background as an input source using a network of shading which outputs values, vectors, colours and shaders. These are the Nodes I've used to create the Toon effect:

Add a ColorRamp and connect the Vector Math to the Alpha channel of the the ColorRamp. From this point you can custom the color and the shading, make sure to have the shading diffuses about 0.001 points from is color.

Working with Blender Render's material menu is much easier than working with nodes, and can have a similar outcome or better. For this shader I added also an outline effect which gives it more of a cartoon appearance. Blender by default for Diffuse and Secular have Toon effect already.

Move on to Edit mode and select All Vertices, Duplicate them by using the Ctrl+D and then form its origin, and then just Scale it little bit. With all the faces selected from the duplicated layer apply the outline material and Flip Normal. When heading on back to Object mode, turn on the Material View and the outline effect will be there. But there is a problem with it; I haven't found a way to do a proper Render of the object without turning the whole sphere black. The image of the sphere with the outline is actually a screenshot of a Blender Game Render. Please, if you've found a method for solving this problem write it down.

Unlike most other shaders, Cartoon Shaders almost does not change the light and reflection in Minecraft. It slightly modifies water, and also adds to all blocks a clear display of their boundaries. This makes the graphics as clear as possible and makes it easier to navigate in space.

9Minecraft is a website about Minecraft, where you can easily download free resources such as: minecraft launchers, clients, mods, maps, resource packs, data packs, seeds, mcpe, addons, bedrock, and much more. This website provides a diverse repository for the Minecraft community to customize their experiences.

Cel Shading: an artistic technique involving shading surfaces with few discrete colours instead of a smooth light-dark gradient. Also known as Toon Shading for the cartoon-like feeling it provides. Often incorrectly used to refer to the black edge outline effect that is typically used in conjunction with cel shading.

GI or Global Illumination: technically refers to all lighting, but most commonly used to refer to indirect lighting, aka light that is reflected, or bounced, off (and coloured by) one surface onto another surface. Multiple methods be be used for this, with various pros and cons. The ones relevant to Minecraft are:

Graphics API or Application Programming Interface: translates code into instructions that can be read by your GPU (see above). OpenGL is the API used in Java Edition, and DirectX is the API used in Bedrock Edition. Also relevant is Vulkan, a semi-successor to OpenGL with more advanced features, which Java Edition could potentially be modded to use.

HDR or High Dynamic Range: content where colours can go above 100% brightness. (Content limited to the 0-100% range is referred to as SDR or Standard Dynamic Range.) Allows for more accurate representation of brightness of different scenes and light sources.

Screen-Space: the "space" of all things which are currently visible on your screen. "Screen-Space [Effect]" refers to an implementation of [Effect] that can only take into account things that exist in screen-space.

Shader: code that tells the programmable units on a GPU (see above) what to do. Originally only used for shading, hence the name, but can now do all kinds of advanced graphics. Can also be used in machine learning and other unrelated fields. There are multiple kinds of shaders. The ones most relevant to Minecraft are:

Shadowmapping: the process of rendering the world an additional time from the perspective of a light source. Usually the sun in Minecraft's case, but can be any fixed light source. Multiple shadowmaps can be combined. What is not visible to a light source will be shadowed.

Tonemapping: the process of bringing HDR (see above) content back to standard range for output. Necessary in Minecraft even on HDR displays because Minecraft does not support HDR output. Different processes can be chosen, and each process is referred to as a TMO or Tonemap Operator.

RT or Ray tracing is a family of techniques that revolve around sending rays out into the world and then doing things with them. These rays are typically used as approximations of photons - particles emitted by light sources that can bounce around the scene before reaching your eyes/the camera. RT is slow to process, thus its use in games has traditionally been limited to select screen-space effects.

RT Core/Ray Accelerator/RT Unit: a piece of hardware in a GPU specialized in doing ray tracing-related operations quickly. Contrary to popular belief, this hardware is not required to use RT, but simply allows its processing to be done much faster, enabling (among other things) more widespread RT usage in games. This is what media typically mean when referring to "ray tracing capable GPUs".

VKRT (Vulkan Ray Tracing) and DXR (DirectX Raytracing): extensions to their respective APIs with features that make implementing RT effects easier, along with access to RT hardware acceleration when applicable. This is also what Nvidia RTX enabled titles are using under the hood, specifically DXR in the case of Minecraft RTX on Bedrock Edition. This is what media typically mean when referring to "games with ray tracing".

If there are no dynamic lights in the scene,the avatar will appear as black while using the toon shader,please set brightness to "1" and set a fake shading texture.An example of this is the AVATAREXAMPLEmaterial found in the BracketShader folder.

With the original maintainers of Neverwinter Nights: Enhanced Edition, Beamdog, busy on their upcoming title Mythforce, the community has stepped up with a new patch. The entirely community-driven patch 8193.35 bring several quality-of-life improvements, bug fixes, and a cool new 'toon' shader effect.

As mentioned, this patch really is a labour of love by the community. It's awesome to see how much enthusiasm there is for Neverwinter Nights after all these years. The release notes explicitly gives thanks to the following community members for their contributions to this patch: clippy, Daz, Jasperre, Liareth, niv, Soren, tinygiant, virusman. So thank you again for these updates!

c80f0f1006
Reply all
Reply to author
Forward
0 new messages