Questions tagged [bump-mapping]

Bump mapping is a technique in computer graphics for simulating bumps and wrinkles on the surface of an object.

Bump mapping is a technique in computer graphics for simulating bumps and wrinkles on the surface of an object. This is achieved by perturbing the surface normals of the object and using the perturbed normal during lighting calculations. The result is an apparently bumpy surface rather than a smooth surface although the surface of the underlying object is not actually changed. Bump mapping was introduced by Blinn in 1978.

60 questions
18
votes
3 answers

What's wrong with my normal mapping? I think it's my tangents

edit: you might want to start at "Edit 3" because I've solved a lot of this Here's a screenshot of my normal cubemap applied to an icosphere: The tangents for my cubemapped icosphere are generated with the following code. m_indices in an…
NeomerArcana
  • 1,651
  • 1
  • 17
  • 42
7
votes
1 answer

Normal Mapping and translation disrupts my lighting

I got a normal mapping issue. I have a texture and a normal texture on each model loaded via the ASSIMP library. I am calculating the tangent vectors on each object with the help of the ASSIMP library so these should be fine. The objects work…
Joey Dewd
  • 1,734
  • 3
  • 16
  • 43
6
votes
0 answers

SKSpriteNode lighting doesn't work with textures from SKTextureAtlas

I ran into a problem with SpriteKit (tried Xcode 7 beta and Xcode 6.4 on OS X 10.11 beta) where normal-mapped lighting breaks down if I create a SKTextureAtlas from the image and normal files that work when used individually. See this example: From…
LearnCocos2D
  • 63,754
  • 20
  • 125
  • 213
6
votes
3 answers

Unity3D, round the edges of a box, cube?

What's the usual way to round the edges on a cube, a rectangular object as in the examples? The ideal result would look pretty much exactly like these images. (Naturally, you could literally use a mesh that has carefully rounded edges and corners,…
Fattie
  • 30,632
  • 54
  • 336
  • 607
4
votes
1 answer

Normal mapping: TBN matrix different result in vertex shader compared to fragment shader

I'm working on a normal mapping implementation for a tutorial and for teaching purposes I'd like to pass a TBN matrix to the fragment shader (from the vertex shader) so I can transform normal vectors in tangent space to world-space for lighting…
Joey Dewd
  • 1,734
  • 3
  • 16
  • 43
4
votes
2 answers

Normal mapping on flat water surface produces incorrect specular highlights

I have a flat water surface with a dudv and a normal map attached to it. The dudv map works correct and the normal map is attached correct as well (visualizing the normal map looks like it should). The specular highlights are always showing at the…
ABHAY
  • 221
  • 2
  • 11
4
votes
1 answer

Setting Up GLSL Ocean Water Shader Following Nvidia GPU Gems Chapter 1

I am following the Nvidia GPU Gems Chapter 1 regarding water simulation using shaders. I am trying to follow the chapter to create an ocean water shader using glsl in OpenGL es 2.0 (iOS). I am able to create the geometric waves as described in the…
LOP_Luke
  • 2,870
  • 3
  • 20
  • 25
3
votes
1 answer

libgdx and pre-built shaders?

I am coming from an XNA background and it was really cool to re-use shaders that other people made. There was a really cool bloom shader that was available and easy to reuse. Is there an official or are there any unofficial collections of reusable…
smuggledPancakes
  • 8,687
  • 18
  • 64
  • 104
3
votes
2 answers

Normal mapping and lighting gone wrong, not displaying correctly

I'm working on an implementation of normal mapping, calculating the tangent vectors via the ASSIMP library. The normal mapping seems to work perfectly on objects that have a model matrix close to the identity matrix. As long as I start translating…
Joey Dewd
  • 1,734
  • 3
  • 16
  • 43
3
votes
1 answer

Repeating a bump map

I'm trying to apply a bump map to a plane to create a vaguely felt-like surface using Three.js r55. Here's my code: var mapHeight = THREE.ImageUtils.loadTexture("images/felt.png"); mapHeight.repeat.set(2, 2); mapHeight.wrapS = mapHeight.wrapT =…
Drew Noakes
  • 266,361
  • 143
  • 616
  • 705
2
votes
1 answer

OpenGL Normal Mapping

I'm trying to implement Normal Mapping, using a simple cube that i created. I followed this tutorial https://learnopengl.com/Advanced-Lighting/Normal-Mapping but i can't really get how normal mapping should be done when drawing 3d objects, since the…
Fra
  • 45
  • 4
2
votes
1 answer

GLSL3 Tangent space coordinates and normal mapping

First of all, I must apologize for posting yet another question on this subject (there are a lot already!). I did search for other related questions and answers, but unfortunately none of them showed me the solution. Now I'm desperate! :D It is…
Smoove
  • 115
  • 7
2
votes
0 answers

ThreeJS: Does bumpMap for Phong Material uses UV Mapping?

I got crazy trying bumpMap working on a PhongMaterial in ThreeJS (r61). The diffuse and normal are working fine. Here is my code: var params = { map: new THREE.ImageUtils.loadTexture("models/displ/"+configObj.name+"_diffuse.jpg"), bumpMap:…
2
votes
0 answers

threejs bump map scale/tiling

I'm trying to apply a bump map to a mesh imported at runtime, using Three.js. I can actually apply the bumpMap, but I need to specify the vertical and horizontal scaling for the map (somebody call it tiling). I saw that for bumpMapping there is only…
rastafermo
  • 358
  • 1
  • 3
  • 12
2
votes
1 answer

JavaFX material's bump and spec maps

When JavaFX8 code loads the color, bump and spec maps, the color and spec work as expected, but bump map is causing strange effects. All three are Mercator maps of Earth. Generally, there is no 3d effect added by the bump map. Bump map only causes…
ajeh
  • 2,372
  • 2
  • 28
  • 52
1
2 3 4