Questions tagged [displacement-mapping]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Parallex mapping better approximation of displacement UVs

Hey I have a question about finding the offset UVs regarding parallex mapping. I read about the topic in the following article: https://learnopengl.com/Advanced-Lighting/Parallax-Mapping I see ...
1
vote
0answers
30 views

How does displacement mapping generalize bump mapping?

This PDF discusses bump mapping, a special case of displacement mapping. A surface is represented as a function \$\overrightarrow{O}\left(u,\,v\right):\:\Bbb R^2\mapsto\Bbb R^3\$. In bump mapping, we ...
1
vote
2answers
204 views

Calculate position given velocity and acceleration at a given timestep

I am following a Pixar course at Khan Academy and I came across a simulation of a double spring with a given timestep. I understand how it works and why it behaves the way it does, but I want to know ...
0
votes
1answer
190 views

OpenGL Parallax Displacement Mapping Not Working

I am attempting to implement parallax displacement mapping into my OpenGL code but it is not working as it should. https://imgur.com/a/9yIQL As I move around, double-lines moves around and if I am ...
1
vote
1answer
1k views

Vertex Displacement Distortion Correction

I am developing for Mobile VR using GoogleVRSDK and Unity. My target platform is Android. I have a shader which displaces vertices to create a reverse lens distortion. Following is my shader, <...
0
votes
0answers
1k views

2D Distortion shaders for water effect

I'm working on Unity, and I'm trying to improve my water. The water will be seen top down, and I want to apply a shader to it to make it better looking. I understand the concept of distortion shaders ...
4
votes
2answers
5k views

Per-pixel displacement mapping GLSL

Im trying to implement a per-pixel displacement shader in GLSL. I read through several papers and "tutorials" I found and ended up with trying to implement the approach NVIDIA used in their Cascade ...
5
votes
1answer
2k views

Calculating normals after displacement mapping

I'm using C++, DX11 and tessellation. After tessellating a triangle I apply displacement mapping to the new vertices. But they still have the original triangle's normal so the lighting calculation ...
1
vote
1answer
908 views

Tessellation cracks

i'm trying to a mesh tessellate with dx11 with the tessellation factor calculated by the size of the triangle and the distance to the screen. I do the same operation on the 3 edges of the triangle, ...
17
votes
4answers
28k views

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

What's the difference between displacement mapping and height mapping and what is the connection to adaptive tessellation?
1
vote
1answer
163 views

Map displacement transformation to texture space?

I am trying to displace geometry in object space without giving the appearance of texture warping. My idea is to displace the UV lookup by a relative amount to the geometry displacement. Any ...
3
votes
1answer
319 views

rendering rolling hills

I want to render very pretty smooth undulating hills. There are objects snuggled between these hills, so I can't really use naive bump-mapping. I am currently rendering using a very detailed mesh ...