U3: Good way for metallic material

Hi all,

I need to realize a good and realistic metal material to display some mechanical items.

Here you can find objects to display:


How I can realize this in unity? …I am a coder and not a very good artist. :sweat_smile:

Any help is really appreciated… thanks in advence!

Kenshin

Try Specular.

Or bump specular.

Ok, but I am not sure about what type of diffuse texture to use.

Thanks for your hints.

Kenshin

I would suggest a cubemap reflection shader, with a very blurred cubemap

Hello,

thank’s for all help… but I haven’t good results. :rage:

I need to realize a realistic material, like this:

402635--13840--$822a3db9-864f-4c81-b854-bdd2009a0ee3.jpg 402635--13841--$metal.jpg

Sorry I am a really noob artist and I have a question: is possible to reach this type of results with unity material system?

Kenshin

Objects that show reflections of other objects dynamically in the scene need to be rendered with raytracing, and unfortunately that isn’t an option with Unity materials.

True, but you could bake the reflected scene using a script on the wiki and then, as reissgrant suggested, use a cubemap reflection shader.

Hello Andeeee,

you are right! …that’s my fault in explanation. :slight_smile:
I am not searching for a raytraced material (pictures are just as reference), for me it’s enought use a good reflection cubemap.

My problem is that I am not a good artist and I am not able to create a good metal material.

Any further hint or help? :slight_smile:

Kenshin

Hello bigkahuna,

do you mean this one? http://www.unifycommunity.com/wiki/index.php?title=MirrorReflection2

I’d use this script:
http://www.unifycommunity.com/wiki/index.php?title=Take3DScreenshot
to create the skybox textures and then use the “Reflective/Bumped Specular” shader in the standard assets.

Thanks Bigkahuna, I’ll try making some experiments with this.

Be advised that you may need to flip / mirror the 3D screenshot textures in order for them to look right in the shader. But otherwise, you could be able to get something very close to what you’re looking for.

Also, for the unity3D custom surface shader, could’ve written a cook-torence lightning model for metalic material.

Very interesting! …any sample?

Ok, I haven’t posted here for a while, so it high time to get back.

I have done it some time ago, but didn’t ported to U3 yet, however I’m sure someone is going to find that useful. I’ve optimised it a LOT and it can be run on shader model 2.0 cards (almost, had to do per vertex but still looks nice).

Screen: I put there some random settings, so it probably can get better.

404033–13906–$Cook-Torrance.shader (16.4 KB)