Questions tagged [bump-map]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
30 views

How can I access the normal map value in Unity?

I'm simulating laser scanners in Unity with Raycasts, and I've got some "bumpy" items I'd like to scan. I had tried generating the actual geometry for these objects, but there are tons of ...
0
votes
0answers
49 views

Any way to ask assimp to generate Tangents, Bitangents only for the meshes that need them?

I've been using assimp to load large models which reference height and normal maps. So I'm very happy about the aiProcess_CalcTangentSpace option. However, it seems that tangents and bitangents are ...
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 ...
0
votes
2answers
246 views

How to write a shader that only uses a bump map without a normal map

So I understand that for best results one uses a height (or bump) map and a normal map together. And I also understand that one can calculate a normal map from a height map using some sobel operator. ...
0
votes
1answer
337 views

Unity: Change the type of a Texture2D to “Normal map” through script

I am making procedural terrains through c# script, and while I achieve to produce a texture, a heightmap and a normalmap to Texture2D, it seems they are not being ...
0
votes
1answer
155 views

opengl bump mapping (normal mapping) problem with VBO and GLSL

hi i am beginner i am trying to implement bump mapping with vbo and glsl. My question is: did i make bump mapping ? if i did why these edges didnt disappear ? high and low meshes (i used low meshes ...
4
votes
2answers
1k views

How to add a bump map in scene kit?

I'm trying to draw an Earth, as I've found the textures in this site: http://planetpixelemporium.com/earth.html I loaded the diffuse, specular and bump maps: ...
0
votes
1answer
432 views

Normal Mapping issue

The first image shows a spotlight shining correctly on the floor. The second image shows the same spotlight but rotated 180 degrees. The first is correct, the second is not. The third image shows ...
2
votes
1answer
2k views

Is it possible to calculate the TBN matrix in the fragment shader?

Just from model position, model normal and texture uv?
0
votes
1answer
630 views

GLSL to Cg fragment shader

I have found very useful resource on the Swiftless website on OpenGL. Unfortunately, I cannot manage to adapt a GLSL fragment shader to my project, which uses Cg. Here it is: ...
0
votes
1answer
159 views

Unifying Texture-, Bump- and Lightmapping

I would like to implement a rendering component that makes use of texture-, bump- and light mapping. Unfortunately, I am a little bit stuck on some implementation details. In particular, Does each ...
6
votes
1answer
424 views

Transforming Normals in Bump Maps

Question I have a noise texture (perlin noise, to be precise) with its value in the alpha channel and the normal components in rgb. I now wish to, on the fly, ...
1
vote
2answers
189 views

pre-rendering light on texture based on bump map

Using a gray-scale bump-map and N sources of colored light, what is the algorithm to render the light on the textured surface, assuming I have the angle(s) and distance of each light source? (I am pre-...