Questions tagged [bump-map]

The tag has no usage guidance.

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

How can I prevent height map artifacting when wrapping a texture around a sphere?

So, I have been on a bit of a journey wrapping a texture around a sphere. So, if you are reading this looking for spherical texture wrapping solutions, I would suggest checking out my last post as ...
Harper Rhett's user avatar
0 votes
1 answer
150 views

Surface normal vs tangent space

I am having a hard time being convinced why calculating the tangent space the way most textbooks do is the best thing to do? Why shouldn't we just simply use the edges of our triangle as Tangent and ...
Sina Dasht's user avatar
0 votes
1 answer
658 views

High-resolution bump map displays bad in Godot

I made a model in Blender, with a normal map. There it renders good. Now I imported that model to Godot 3.4 stable, and in the far distance, it looks ugly. If camera is close enough "steps" ...
Stdugnd4ikbd's user avatar
1 vote
1 answer
1k 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 ...
Chuck's user avatar
  • 249
0 votes
0 answers
37 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 ...
J.G.'s user avatar
  • 151
0 votes
3 answers
2k 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. ...
Ray Hulha's user avatar
  • 103
0 votes
1 answer
1k 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 ...
Nicolas Cailloux's user avatar
0 votes
1 answer
245 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 ...
Emre Kaya's user avatar
  • 535
4 votes
2 answers
2k 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: ...
Ramy Al Zuhouri's user avatar
0 votes
1 answer
556 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 ...
Nick's user avatar
  • 113
5 votes
1 answer
3k views

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

Just from model position, model normal and texture uv?
Viktor Sehr's user avatar
0 votes
1 answer
794 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: ...
Ety's user avatar
  • 133
0 votes
1 answer
175 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 ...
scttrbrn's user avatar
  • 103
6 votes
1 answer
612 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, ...
rspencer's user avatar
1 vote
2 answers
219 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-...
AturSams's user avatar
  • 10.5k