Featured post

Hello and Welcome to my Blog!

A-k-a, my public learning diary for my 3D animation degree and since graduating, my free-time independent 3D studies and personal projects ...

Showing posts with label Substance Painter. Show all posts
Showing posts with label Substance Painter. Show all posts

Sunday, 14 March 2021

Panda Hut: Ceiling Planks - Stylised Wood and Intro to Normal Map Baking

There are 2 main ways to do stylised wood, a material that could go on a plane or sculpting individual planks and baking it onto a low poly mesh. For this exercise I'm doing the latter.

There are loads of videos on sculpting stylised wood on youtube and here are some great free resources I came across for sculpting stylised wood:

A big difference I've noticed between modelling for games and modelling for film is, for games you have to optimise so much more - optimisation is king. Because games are played in real time, the engines have to be able to calculate the scene every moment otherwise you get lagging.

So here's the wood I sculpted! I figured style-wise less is more with these planks and didn't do loads of sculpting.


I figured now I zremesh to reduce topology and export it into Maya to UV map, ready for baking. However, I came across a few obstacles and had to decide what was a better workflow and how to optimise most.


ZRemeshing comes with a few cons:
1. It doesn't give you nice topology to work with when UV mapping by hand. Edge selection is a lot more complicated and lines drift into one another like a spiral rather than a loop. Also edges don't tend to meet corner to corner like as if you had modelled or hand retopoed it.

Solution: Retopologising by hand is the best solution. But if you really don’t want too, I found ZBrush's auto unwrap to give better results than Maya's auto, it's not perfect but you can easily use Maya's UV tools to improve where the cut lines are and straighten UVs.

2. ZRemeshing softens hard edges. 

Problem solving: I thought about creating a displacement map, but that would be completely unnecessary and complicate things if anything, not to mention it would give the engine more to calculate, not less.

* Something new I've learned about optimising textures is that you can pack 3 texture maps into 1 using the RGB channels in Photoshop. I've come across a few names this goes by: ORM (Occlusion in Red, Roughness in Green and Metal in Blue) or occlusion maps or RGB maps or texture channel packing.

Solution: I returned to the block mesh in Maya with the high poly sculpt as a reference and tweaked the low poly by adding in some of the edge cuts I put in when high poly sculpting. This way I could keep the poly count very low AND have the edge cuts actually there (not faked in a normal map). It's a tiny detail but I feel it's important to have to give the planks some sort of character instead of looking all the same. Also this saves time retopologising from scratch.

3. You can't decimate and remesh. For a plank of wood you would only want topology mainly on the edges and not in the middle which decimation would do with messy topology. Zremeshing puts topology all over, not only where it's needed. For a rock or a character's head, zremeshing is perfect because you would want topology all over to hold its form.

Solution to problem 3 was same as problem 2.


I came across another problem whilst baking the normal map, the process of baking was successful but I didn't like the results in some areas which are pretty self explanatory below.

Problem Solving: Initially I brought the baked normal map into photoshop to paint. This was very difficult as I couldn't see how exactly this would look on the model. The process of painting, exporting, updating felt very long and tedious.

Solution: I baked the normal map in substance painter but then remove it from the Mesh Maps window where it automatically places it (under Texture Set Settings). Instead create a fill layer and add a mask, turn off all the channels except normal, and plug in the normal map you baked there instead. Now you can mask out the undesired areas of the normal map. 



So that's the journey I had learning stylised wood! 


To summarise the process:

Step 1: Low poly block mesh in Maya.

Step 2: Sculpt high poly details in ZBrush

Step 3: Add details if necessary to the block mesh edges depending on sculpt.

Step 4: UV map and add ID colours if necessary.

Step 5: Bake the normal and ID map in substance painter.

Step 7: Texture in substance.


If I were doing something like a rock, I would go straight in with the high poly and then retopologise it to create the low poly. 


Here's a simple video explaining ID maps and how you use them: https://www.youtube.com/watch?v=kP0pG2PJIqI&t=373s&ab_channel=MichaelWilde 

Saturday, 31 October 2020

Art Heroes Monster Challenge 2020

Happy Halloween!



From the 19th - 25th, Art Heroes hosted a Halloween themed Zbrush character challenge where entrants created their own original monster characters. I decided to join in the challenge and push my Zbrush skills to create my first character solely with Zbrush for the modelling - no Maya. I used substance painter for texturing.

For the first 5 days of the challenge, they hosted a nightly livestream lesson in Zbrush. 

I am shocked by what I created because it's very unlike me to create something so repulsive... I loved it! Meet Benjamin the Zombie Knight, adapted from my uni character design project "The Nervous Knight".

Sculpted in Zbrush.     Textured with Substance Painter.      Rendered with IRAY.

Idea:

The story I created for The Nervous Knight was that he was anti-heroic - scrawny and clumsy who survived only on dumb luck. (You can view the production bible HERE). In this adaptation his dumb luck ran out and he died. Many eras passed and a new one was sparked by a pandemic - the zombie virus. Overnight, the dead crawled out of their graves and began to walk the Earth, feasting on the living. Zombie Knight is how I imagine Benjamin looking once he crawled out of his grave - and after he had his first meal. I also imagine the virus would have regenerated him enough (wearing what he wore when he died) to be substantial enough on the surface.


Work in Progess Images Below:

Days 1-3: Head and Body Sketching




Day 4&5: Adding Details and Imperfections




Days 6&7: Texturing, Ground Creation, Rendering and Compositing




Saturday, 12 September 2020

Improving Textures, PBR Workflow and Substance Painter

It's been a while since I last posted and that's because I've been dedicating a lot of time to learning Substance Painter and Substance Designer, also delayed by my iMac being a non-upgradable machine containing a graphics card unable to run Substance...

Textures have always been a weak spot for me and I realise now that's because I never really understood them beyond painting a UV map in Photoshop and tweaking Maya's shader settings. I'll cut to the chase by showing the result and explain after how PBR workflow and Substance Painter helped me achieve it, in comparison to the textures I created in Photoshop back in December 2016. 

(Left: PBR textures, HDR lighting, rendered with Arnold in 2020. 
Right: Non-PBR textures, Maya lighting, rendered with Mental Ray in 2016).
 
 


PBR Workflow:


PBR stands for Physically Based Rendering, it aims to realistically and accurately simulate light from the real world and how an object would react to it. PBR is increasing in popularity, especially in the games industry. Substance Painter is a programme created by Adobe that allows you to correctly create and author both PBR and Non-PBR textures.

Both Substance programmes light your scene using a selection of HDR (High Dynamic Range) lighting maps. HDR images are saved as exr files and contain real-world lighting information, renderers use that information to replicate real-world lighting digitally. PBR texturing means that when you render your object, it will look correct under all lighting conditions i.e. indoor, outdoor, daylight, sunset, night time, overcloud, in a forest or cave etc. 
 
I'm of the understanding that non-PBR textures are similar as in you have the colour, metal/spec, rough/gloss maps, but they are not authored with the ability to react to HDR maps like PBR maps would, in other words they are not designed to look realistic and will work better in scenes with artificial/designed lighting.

In texturing there are two main workflows, Metal-Roughness and Specular-Glossiness. Both workflows use Ambient Occlusion Maps, Normal Maps and Height Maps. (If you want to know what each map is for, there is an article linked further down).

Screenshot taken from: https://www.youtube.com/watch?v=ueC2qGzWrgQ

Metal-rough is the favourite workflow among artists because it is less prone to F0 errors. (F0 = fresnel reflectance value). When light hits an object, it does so straight on at a 0 degree angle, light being reflected back at a percentage creates a specular highlight. This is the F0 value. Non-metals such as wood tend to have a F0 value of 2-5%, metals on the other hand range from 70-100%. The specular-glossiness workflow gives you more control over F0 unlike metal-rough. For more information on the two workflows and F0, watch the following video from Substance Academy: https://www.youtube.com/watch?v=ueC2qGzWrgQ

When revamping my scuba, I chose the metal-rough workflow as it made more logical sense to me. However, if I were to texture something like a creature I might choose the Specular-Glossiness workflow. My favourite thing about substance painter is that it gives artists the ability to paint directly onto their models and UV maps simultaneously and view the results in real time. You can also switch on and off which layers apply to which map types aka channels, and when you need to, isolate them. Below are my base colour, metalness and roughness channels isolated. 


In the metal channel, white represents what is metal, the darker colours represent what is not metal such as dirt and rust. In the roughness channel, black represents how shiny the texture is and the white represents how matte/non-shiny that texture is - rougher elements like dirt and rust appear white. I know glass is a dielectric and should appear black in the metal channel, the reason it appears white is because for the glass I worked with a glass preset as my starting point. It had mostly the look I was going for, just needed a few tweaks, its metal preset was white (value of 1) and changing it to black destroyed the look altogether.


Individual Map Explanations


For an explanation of the individual maps and a bit more on PBR and Non-PBR, see this great article "Texture Maps: The Ultimate Guide For 3D Artists" at: https://conceptartempire.com/texture-maps/

Plugging Textures into Maya Arnold


For help plugging your maps into Maya and rendering with Arnold, here's a really good article from Substance Academy that I used. Don't forget, if you don't use the same HDR map as in substance then it won't look the same in Maya/Arnold:

PBR Render (not game) Engine Compatability Chart: (Not my Chart)