Game Development Asked on November 2, 2021
When I bring my Blender file into Unity, I will attach the texture maps from my Blender material (left) to the Unity material (right) as follows:
diffuse/color map –> albedo
normal –> normal
roughness –> ?
specular –> ?
displace —> ?
metalness –> metalic ?
I haven’t found matches for the roughness, specular, or displacement maps. What should I do with those maps?
the problem is the smoothness parameter does not have the little box on its left where i can drag drop texture there
That's because smoothness only needs a single channel, so it's common to pack this data in as the alpha channel of another map you're using to be more efficient with texture lookups in the shader.
(Remember that since smoothness is the opposite of roughness, you may need to invert the roughness map you're using when applying it as an alpha channel. You'll also want to save the result as something like .TGA or .PSD, as PNG compressors like to assume that zero-alpha regions are transparent/invisible so they can change the colours there to make the image compress better)
In the built-in or Universal Rendering Pipeline default shader, you have the option to take your smoothness from the alpha channel of either your Metalness texture, or the Albedo texture.
If you're using the High-Definition Rendering Pipeline, the setup is a little different, and you have multiple different variants you can use. Since it looks like you're using specular and displacement maps, you can set the "Material Type" to "Specular Color" and the "Displacement Mode" to pixel or vertex displacement, whichever is more appropriate for your effect.
That gives you a set of parameters that looks like this:
Your displacement map would go into the "Height Map" property, and your specular map into the "Specular Color" property.
Color channel Map
-----------------------------
Red Metallic
Green Occlusion
Blue Detail mask
Alpha Smoothness
If you want a material effect that's not adequately covered by the options above, I'd recommend posting a specific question about that. Show what the material should look like (in Blender or other references), and how you've attempted to build it in Unity so far, and users here can recommend options to better-match that effect - even creating your own new material shaders if you need a unique mix of features not present in the built-in assets or options available on the Asset Store.
Answered by DMGregory on November 2, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP