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.

61 questions
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
  • 163
  • 9
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
  • 408
  • 1
  • 5
  • 13
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,652
  • 2
  • 34
  • 65
2
votes
0 answers

GLSL - Bump Mapping based on Noise

I am trying to create a stucco texture similar to the image below in an GLSL fragment and vertex shader. I know there are multiple ways to accomplish this. However, I want to focus on perturbing the surface normal in the fragment shader based on…
Freddy
  • 2,249
  • 1
  • 22
  • 31
2
votes
1 answer

exporting Bump and Specular maps

I have seen the new MeshPhongMaterial Bump and Specular highlights, and can't wait to get them into my game engine. Currently i am using the python converter to convert an OBJ file into a .js file. However release 51 exporter doesn't seem to handle…
1
vote
1 answer

How to prevent Color Banding with GIMP?

Just doing a simple bump_map operation in python GIMP. But the result has color banding! import os, glob, sys, time from gimpfu import * image = pdb.gimp_file_load(img_path, img_path, run_mode=RUN_NONINTERACTIVE) gray =…
user2827214
  • 1,191
  • 1
  • 13
  • 32
1
vote
0 answers

Calculating tangents on a normalized cube

I made a post similar to this one previously, but I have gained a lot more insight since then. For context, I am creating a DX11 based 3D rendering engine where the central focus is a large planet, which is a normalized cube. I am trying to…
1
vote
0 answers

Tangent and Bitangent are not orthogonal to normal

I am trying to calculate the Tangent and Bitangent vectors for my terrain. I followed this tutorial to figure out how to calculate these 2 vectors and from what I understand, Tangent Bitangent and Normal vectors should all be orthogonal to each…
Saik
  • 993
  • 1
  • 16
  • 40
1
vote
1 answer

How do you bump-map large areas in a JavaFX Canvas

I want to apply some lighting effects using JavaFX onto a canvas GraphicsContext. At first I used the Lighting.bumpInput to pass a static bump-map for lighting. However this only lights a certain area of my canvas correct. So now I do the lighting…
mrdlink
  • 266
  • 4
  • 15
1
vote
0 answers

Add generic Bump Map in Fragment Shader

I have a obj with normals and I want to use a surface bump map on it. Can anyone help me how can I calculate the final normal map from the obj normals and the Bump map my fragment shader is: fragment float4 fragmentShaderObj(VertexOutObj…
sabby
  • 99
  • 7
1
vote
1 answer

Three.js bump map not updating

I have a .obj model with the corresponding .mtl file loaded in my scene. I'm applying a bumpMap to it after being loaded: var mtlLoader = new THREE.MTLLoader(); mtlLoader.setPath('/models/'); mtlLoader.load('model.mtl',…
Andres
  • 6,080
  • 13
  • 60
  • 110
1
vote
1 answer

Bump map give no effect on texture in three.js

I am using THREE.ImageUtils to load maps and bumpmaps.The grayscale image of the maps are used as bumpmaps .on adding bump maps it doesnt gives any effect on it. var material = new THREE.MeshLambertMaterial({ side: THREE.DoubleSide…
ArUn
  • 1,317
  • 2
  • 23
  • 39
1
vote
1 answer

Getting the Tangent for a Object Space to Texture Space

A university assignment requires me to use the Vertex Coordinates I have to calculate the Normals and the Tangent from the Normal values so that I can create a Object Space to Texture Space Matrix. I have the code needed to make the Matrix, and the…
1
vote
1 answer

Trying to generate 3D bumpmap text in PHP

I have a website I monetize with numerous original pictures on it, I want people to visit the website to see the original pictures and have search engines only show the pictures with transparent watermarks. The following is an example of what I mean…
Mike -- No longer here
  • 2,064
  • 1
  • 15
  • 37