• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Unislash · Jan 27, 2011 at 12:16 AM · texturenormalmapbumpmapzbrush

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

Comment
fireDude67
soulzero

People who like this

2 Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Unislash · Feb 05, 2011 at 09:00 PM 1
Share

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!

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

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.

Comment

People who like this

0 Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Unislash · Jan 27, 2011 at 01:23 AM 0
Share

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!

avatar image Unislash · Jan 27, 2011 at 01:32 AM 0
Share

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-Maps

avatar image Justin Warner · Jan 27, 2011 at 02:09 AM 0
Share

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.

avatar image

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.

Comment
Eric5h5

People who like this

1 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Unislash · Jan 27, 2011 at 01:22 AM 0
Share

In my case, my displacement map does not work as a heightmap, but thanks for the suggestion :-).

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Importing and configuring Normal Maps at runtime ? 2 Answers

Bumped Diffuse Issue 0 Answers

Normal map (Bump Diffuse) turns objects dark. 1 Answer

Normal maps problem 1 Answer

Normal Map Code word? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges