Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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
0
Question by lucia22 · Aug 02, 2016 at 01:21 PM · physicstexturesmaps

heightmap or displacement map

Hi What is the difference between heightmap or displacement? Are the same? I use CrazyBump for to generate displacemente map, and I think can use this map in Parallax Diffuse material.

Sorry, I am a beginner in Unity

Thanks.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by Landern · Aug 02, 2016 at 01:22 PM

Google is your friend:

From: What's the difference between displacement mapping and height mapping?

Displacement mapping and height mapping are two names for "almost" the same technique, they aim to do the same effect but are used in different contexts.

To explain more:

Displacement Mapping: Is a technique that aims to render bumps as true geometry, in a very fine mesh. Unlike bump mapping, parallax, and relief mapping which tries to "fake" bumps using normal maps, Displacement mapping actually displaces the surface, creating triangles between the texels. .

Height Mapping: is the same thing, but it's usually used in the context where a displacement map (also called height map) is applied on a terrain where the value are only used to modify the vertex height.

It can be implemented on the CPU or the GPU.

One common CPU approach is to read height or displacement values from a height/displacement map(texture) where each texel directly maps to one vertex. Where each texel encodes a height/displacement value. This is then applied directly to the geometry by displacing each vertex using the looked up value in a unique direction.

Choosing the direction can be in the Up direction (usually in case of terrains), which results in modifying the vertex Y value, or could be in the direction of the face normal usually used on objects other than terrains.

A GPU alternative is to use the vertex texture fetch feature (introduced in Shader Model 3.0) to have a the terrain mesh modified by accessing a displacement/height map The height retrieved from the texture is used by the vertex shading program to modify the vertex's location.

Other uses for Using a texture allows for faster manipulation of data for wave simulations and other animations to apply to the mesh.

Regarding adaptive tessellation:

One draw back of displacement mapping is that for large terrains you need a lot of polygons and vertices to model a detailed terrain which makes displacement maping somehow inefficient for large terrains.

This is where adaptive tessellation and level of detail techniques come to play to make displacement mapping more feasible, especially with the advancement of the GPUs and introducing geometry shaders, performing tessellation on the fly with this advancement has become the dominant technique. It is simple to program and on newer GPUs and has few drawbacks.

Other techniques like relief and bump mapping offer additional realism at a generally reasonable cost, but the fact that the base surface is unperturbed makes collision detection, and therefore object interaction, more challenging.

As a conclusion Displacement mapping and adaptive tessellation brings superior detail and quality with less draw backs at a feasible performance cost.

Comment
Add comment · 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 flaviomadrigueras · Aug 08, 2016 at 02:10 PM 0
Share

Hi. thanks Lander :)

Now. I have a new problem with this project.

alt text The objects have dark spots.

I am using the parallax specular material and the dark spots disappear when don´t use normal map but I think that isn´t the right solution. alt text

What is the problem? the material? or ambient light? Can you help me?

Thanks again.

download-20160808-133444.jpeg (396.7 kB)
download-20160808-133451.jpeg (454.3 kB)

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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

2D 360 degress platformer example needed 0 Answers

Adding physics to various terrain 1 Answer

How can I add all maps from CrazyBump in Unity? 1 Answer

Normal + Displacement + Occlusion + Specular + Diffuse Map 0 Answers

tutorials for web plugin interactive map 0 Answers


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