- Home /
Importing a model with Displacement, Normal, and Texture map
Hello all,
I have recently made a model in zbrush, where I have generated a Displacement Map, Normal Map, and a Texture (color) map. I have imported this into 3ds max as well as maya, and they both render just fine. Now I want to import this into unity, however, I am stumped on how to get a displacement map working, let alone both a Displacement and Normal map working at the same time.
Does anyone have any ideas or advice for me?
EDIT: Upon importing from an FBX with embedded material (containing the displacement, normal, and texture maps), i'm getting the following error:
Texture import error [Assets/Imported/Objects/FBXOutEmbed.fbm/TorsoFBust_Final_2_DM.tif]: Texture import error: Assets/Imported/Objects/FBXOutEmbed.fbm/TorsoFBust_Final_2_DM.tif
The _DM file is the displacement map.
Cheers,
Unislash
This is just a follow up comment :-). For now, I'm simply using a bumped diffuse (or bumped whatever) shader. It uses my normal map, but does not use my displacement map. Remember to switch your green channel (photoshop->channels->invert while hiding all but green), to flip your maps vertically (some programs use a different coordinate system for their maps). Also, a little tip is that you can almost make up for not having a displacement map by making your normal map stronger: Photoshop->duplicate layer->layer blend mode->overlay. Smudge out what you don't like :-) Cheers!
Answer by Justin Warner · Jan 27, 2011 at 12:29 AM
Make your own shader for the displacement map...
Most people use the normal map shader that Unity comes with as making shaders I believe can be tedious... Just my viewpoint.
But yea, look up shader lab for Unity on google, it'll come up with its documentation.
Yes, I was afraid of that. I will look up shaders and see what I can come up with. However, if anyone has managed to create a shader that incorporates displacement maps, or if anyone has more suggestions, don't hesitate to post them!
I just managed to come across a forum post that mentions implementing a displacement map using shader lab. From what I gather, dreamora says that it's impossible to do. If you could, please check it out to see if he's simply stating that the current shaders don't support it, or that the entire shader engine doesn't:
http://forum.unity3d.com/threads/15549-Will-%28does%29-Unity-support-Displacement-$$anonymous$$aps
I think what they meant is, none of the current shaders support it... But I think if you can write one, it should be possible... I don't know what DX version Unity uses, but if it's DX10+ then it can be done.
Answer by kennypu · Jan 27, 2011 at 12:29 AM
I'm assuming displacement map is a height map? Look at different material shaders. for eg. Parallax Specular will allow you to set all 3 of those textures.
In my case, my displacement map does not work as a heightmap, but thanks for the suggestion :-).
Your answer
Follow this Question
Related Questions
Normal map (Bump Diffuse) turns objects dark. 1 Answer
Normal maps problem 1 Answer
Importing and configuring Normal Maps at runtime ? 2 Answers
Bumped Diffuse Issue 0 Answers
Assigning UV Map to model at runtime 0 Answers