Skip to content

thumun/hw04-stylization

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HW 4: 3D Stylization

Sonic's Beach Day

1. Picking a Piece of Concept Art

I was initially inspired by this concept art from Kingdom Hearts of Sora (and from there, I wanted to do a watercolor beach scene): Kingdom Hearts Concept I unfortunately cannot find the original artist for this piece, but I believe it may be official art/concept art, so in that case, the art is most likely from the official Kingdom Hearts art team.

However, I could not find any (not creepy) models of Sora and, unfortunately, did not have the time to make one myself. So, I borrowed the sonic model from lab! To pay homage to the sonic model, I put a twist on the concept art to look more video game-y (on top of the watercolor shaders). Here are some examples of what I had in mind (all from Sonic Mania):

Sonic Mania Sonic Mania

2. Interesting Shaders

Toon Shader with a custom texture (for the shadows and midtones):

This shader has multiple light supports and melds a custom texture (inspired by the Sora art). This texture is blended most with the shadows and is more subtle for the midtones. There is also rim lighting (also borrowed from the Sora concept art).

Watercolor Shader:

This shader was created using this tutorial. I wanted a more subtle watercolor look without using a texture. This shader works well for the sphere but is too subtle in the main scene. This shader also uses rim lighting!

Vertex Animation Shader:

I added plants that wave in the wind to add depth to the scene and make it more fun. This was accomplished through vertex animation. I used the following model to accomplish this. A clip with the plants can be seen in the gif at the top of the readme.

Water Shader with Foam:

The foam is animated and there is a slight opacity to the water. This can be seen in the image above!

Water Shader using Voronoi:

I wanted an additional water shader for the material swap that has more of a 'toon shaded' look to it (similar to Wind Waker). The water is animated using voronoi noise. This can be seen in the image above!


3. Outlines

Post Process Outlines:

I had help from the following tutorial to create the outlines. I tried the linked tutorials but ran into technical difficulties. I adjusted the lines to be rather subtle because otherwise (with the dither and the hull shader), it looks rather overwhelming. I also only wanted Sonic to have outlines. I also adjusted the outlines such that some of the watercolor effects in the toon shader have some outline noise effect applied since I think that furthers the watercolor effect. This shader graph works via buffer nodes (blit, for making sure lines are separated by color and normal), and the shader is added as a rendering feature to the URP.

Additional Outlines (to add a fun crayon-like effect):

This was accomplished using the Hull Shader. I added distortion to this outline shader using noise that changes based on time. I also angled the outlines such that they're more prominent on the right side of Sonic's body-which adds a neat effect.


4. Full Screen Post Process Effect

I used a dither post-process effect to reference Sonic Mania's pixel art style. This looks better in Unity-taking a screenshot added a weird circle texture for some reason.

6. Interactivity

By pressing the space bar, the shaders get swapped in the scene. This can be seen in the first gif at the top of the readme.

7. 3D Scene (Turn Around)

Attribution:

Tropical Island Skybox

Seaweed 3D Model

Sonic 3D Model: Unfortunately, I'm not sure where this is from originally, but I borrowed it from the lab assignment.

Beach 3D Model/Texture

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 55.3%
  • HLSL 27.2%
  • ShaderLab 17.5%