Questions tagged [normal-mapping]

A technique used for faking the lighting of bumps and dents – an implementation of bump mapping. It is used to add details without using more polygons.

Filter by
Sorted by
Tagged with
18
votes
1answer
5k views

Normals vs Normal maps

I am using Assimp asset importer (http://assimp.sourceforge.net/lib_html/index.html) to parse 3d models. So far, I've simply pulled out the normal vectors which are defined for each vertex in my ...
12
votes
2answers
9k views

Why aren't tangent space normal maps completely blue?

Why aren't normal maps just blue? I would think that normal maps should be predominantly blue in color because the Z component of the normal is represented by blue. Normals point out of the surface in ...
11
votes
1answer
1k views

Deferred decals normal problem

I've been working on a deferred decal system. So far I have finished the projection part, meaning I can click something in the scene and it will properly project a decal onto the surface of the object....
10
votes
4answers
3k views

How does normal mapping really work?

I'm trying to grasp the concept of normal mapping, but I'm confused by a few things. In short, I'm not sure whether a normal map is viewpoint dependent or not (i.e. whether you'll get a different ...
10
votes
2answers
5k views

Blender - baking normal map - weird colors

I have a metal drum mesh, and when I bake its normal map, I get the weird colors (see attached pic). I'm talking about the horizontal gradient shift of color. There's no deformation like that on my ...
9
votes
1answer
10k views

How does Mikktspace work for calculating the tangent space during normal mapping?

Increasingly the 3D industry is adopting the standard of Mikktspace for calculating tangent space for normal mapping and other effects which rely on accurate and consistent calculation of tangent ...
7
votes
5answers
8k views

Why don't we use the whole color depth for normal maps?

All normal maps I've seen are pinkish or bluish. It seems like only a small color range is used. Why do game developers give away so much precision?
7
votes
1answer
3k views

TBN Matrix : Eye vs. World Space Conflict

I am tired of misleading and insufficient articles making me more confused each time I read, I need a clarification that will solve my TBN matrix problem forever. Each article I read informs me ...
6
votes
1answer
4k views

How to do simple bump mapping

I'm trying to do bump mapping, and I'm getting fairly close at achieving my goal. I miss one crucial piece of my puzzle to have bump mapped effect in my scene; I need to transform the normals from my ...
5
votes
3answers
2k views

For normal mapping, why can we not simply add the tangent normal to the surface normal?

I am looking at implementing bump mapping (which in all implementations I have seen is really normal mapping), and so far all I have read says that to do this, we create a matrix to convert from world-...
5
votes
4answers
468 views

Where can I find free or buy "next-gen" 3D Assets? [closed]

Usually I buy 3D Assets from sites like turbosquid.com or similar. My problem is that I have lately implemented glow, normal maps, specular (and specular power) maps and reflection maps and I can't ...
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 ...
5
votes
1answer
2k views

Understanding normal maps on terrain

I'm having trouble understanding some of the math behind normal map textures even though I've got it to work using borrowed code, I want to understand it. I have a terrain based on a heightmap. I'm ...
5
votes
1answer
1k views

Normal map does not export into .dae file. Does Collada not support normal maps?

Every time I try to use DAE FBX export in Autodesk Maya and export a .dae file the normal map doesn't export with it? Does Collada not support normal maps?
4
votes
1answer
961 views

I want to render some surfaces in GLSL with normal maps, and some without

I have normal mapping working in my game, but I want to only use normal mapping for some surfaces, and not others. Right now, as far as I can tell, my shader is applying an incorrect normal of (0, 0, ...
4
votes
1answer
335 views

Optimization for Normal maps with lots of wasted space?

I'm working on level/character assets where I'm finding that I use only very little amounts of normal mapping on them, resulting in 2048x2048 textures that are mostly blue/purple. Is there any method ...
4
votes
1answer
5k views

Deferred Rendering and Normal Mapping

I'm working on a deferred renderer and need a bit of help getting normal maps working. What I've been doing with them so far is just multiplying the normal texture with the object normals (...
4
votes
2answers
3k views

XNA 4.0 - Normal mapping shader - strange texture artifacts

I recently started using custom shader. Shader can do diffuse and specular lighting and normal mapping. But normal mapping is causing really ugly artifacts (some sort of pixeling noise) for textures ...
4
votes
0answers
854 views

Normal Mapping a Cubemap

I posted a question on Stackoverflow and it was suggested that it would be better asked here. I have a sphere. It was created via the icosphere method outlined here: http://blog.andreaskahler.com/2009/...
4
votes
0answers
453 views

Normal maps in 3dsMax - OgreMax - how to view associated tangent vectors?

Reading this post I found out that 3dsMax might not use the same tangents when rendering normal mapped objects. In my case, I was using Ogre and OgreMax to analyze results and they were very ...
3
votes
2answers
1k views

How can I make orange/lemon skin normal map?

What would be the easiest way to make a bump map of the dimples on a citrus fruit such as an orange or lemon in gimp/photoshop without using pictures of it? e.g:
3
votes
2answers
783 views

Trying to understand relatively simple normal map antialiasing paper

See this paper: ftp://download.nvidia.com/developer/Papers/Mipmapping_Normal_Maps.pdf They describe the very simple implementation of an algorithm for antialiasing normal maps. I don't understand ...
3
votes
1answer
474 views

Complex shading using one single (small) texture

Recently I stumbled upon a demo reel in UDK about how one can attain beautiful results using just one (rather tiny) texture that's being sent to the shader pipeline. The famous link is this one. ...
3
votes
1answer
7k views

Create a normal map using a script? Unity

I don't have a software that can create normal maps from an image so I usually make a grayscale image and then let unity make the normal map from that image. But I can't save the image to use for ...
3
votes
1answer
719 views

Generating Normal map from a Image with a given Albedo map

I am working on a research problem part of which involves generating normal map from a given image of a rusted object. I searched the internet for techniques to achieve the above and apparently ...
3
votes
2answers
699 views

Sampling Heightmap Edges for Normal map

I use a Sobel filter to generate normal maps from procedural height maps. The heightmaps are 258x258 pixels. I scale my texture coordinates like so: ...
3
votes
0answers
3k views

Normal mapping does not work correctly using GLSL and OpenGL [closed]

Hello I wrote a simple OpenGl program using GLSL to render a simple uv mapped plane using the normal mapping technics. Here's the display with a simple phong shading (without normal mapping) : Now ...
2
votes
1answer
1k views

How can I make a beveled edge with bump mapping?

I say bump mapping for lack of a better term, but that may not be what I need. I'm trying to make my corners of various objects look bevelled as opposed to square: I can't just create a physical ...
2
votes
2answers
258 views

A little bit confused on how to set normals in this case

I'm learning how to use VBOs and I'm following up on the tutorial at the bottom of this page. So I went ahead and created a structure Vertex to hold vertex data.(coordinates and normals). ...
2
votes
1answer
5k views

Normal mapping for Android and iOS

I'm making a mobile game for Android and iOS on Unity. At the moment I am researching and designing the technical aspects of the game. Since it is not plausible to use highly detailed models for ...
2
votes
0answers
305 views

Unity normal maps look wrong (URP, iOS)

We're building an AR-enabled app with Vuforia and Unity 2019.3, using the Universal Render Pipeline. Trouble is, on iOS our models that have normal maps in their materials look totally bad, as you ...
2
votes
0answers
67 views

Weird warping with per-vertex normals

I've had this little problem for a while now, where for some reason my calculations for per-vertex normals results in a weird distortion or warping, skewing my lighting, shading, and reflection passes....
2
votes
1answer
561 views

Proper normal vector transformations in normal mapping

Hello! This question is about transforming normal vectors from normal maps properly. I have tried methods from over five sources, still can't get it to work, and I'm really desperate. Included are ...
1
vote
2answers
569 views

Why are normal maps in tangent space but not in normal space?

I want to implement normal mapping in my little game engine. When getting into normal mapping, I wonder why normal maps are typically in tangent space but not in normal space? That normal maps in ...
1
vote
2answers
673 views

Why is a baked normal map more efficient to render than additional physical detail?

I was just contemplating about why I improve performance by baking additional details into the object rather than just rendering the more detailed model. How does the GPU get to take a shortcut to ...
1
vote
1answer
647 views

Normal matrix space has to be eye space?

I'm doing lighting in world space (not in eye space), so I set the normal matrix as follows: ...
1
vote
1answer
2k views

Sampling from Normal Map and Diffuse Map in Pixel Shader

I'm having some issue changing a basic lighting shader to take a normal texture and a diffuse texture for a model and then using the normal texture for lighting. The code is very simple and i can't ...
1
vote
1answer
4k views

How do you compute the tangent space vectors with normals given in the mesh?

Suppose you are given a mesh with normals for each vertex. These normals might not correspond to the face normals, as the artist could have tweaked them. In this case, how would you go about computing ...
1
vote
2answers
762 views

Correct normal map for rotated sprites

I am trying to find the best way to correctly do normal mapping in a 2D batched sprite renderer. For each sprite sheet (aka texture atlas) I render all sprites as a textured quads with a single <...
1
vote
1answer
611 views

Averaging normals, or tangents

I am using a library to load an obj but it doest compute the tangets for each vertex, which I need for normal mapping and pom. I computed my tangets, and bitangents, everything appears to be fine, but ...
1
vote
1answer
1k views

Normal Mapping space confusion

I've been reading today about normal mapping. Up to now, the only normal mapping I encountered was with maps already in world space so I just extracted the info from the texture and transformed them ...
1
vote
1answer
471 views

Blinn, Normal maps & Fresnel?

So something came up today when I was going over my Blinn shader. As I've been taught, the half-angle vector is calculated in the fragment shader, and is equal to ...
1
vote
1answer
144 views

Normal map causing certain faces to get shaded

I added a normal map to a MR arch & design material in Max 2012. I have a specular in the reflection color slot and a diffuse in the diffuse slot. As i increase the intensity of the normal map i ...
1
vote
2answers
419 views

Texturize a shape of multiple triangles in 2D

This is an example of a shape consisting of multiple points, triangles and eventually a shape: Red Dots = Vector3 (X, Y, Z) or Vector2 (X, Y) If I have a Texture of a certain size, how do I ...
1
vote
1answer
113 views

How to use Texture2DArray with Normal map and Normal Unpack node in Shader Graph

I am extracting Normal Map from Texture2DArray in shader graph and then converting it to normal using ...
1
vote
1answer
418 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 ...
1
vote
2answers
83 views

Baking details to a low poly model asset - used on enviroment or “world” geometry?

Usually for the game objects a high poly model is prepared, to then transfer the details onto a low poly model, so that it can be rendered in realtime. Is this workflow always used, with any object? ...
1
vote
1answer
25 views

Normal doesn't appeared on shadow/dark area in Mobile Shader

Let's look at this picture: You can see the red rectangles, those are shaded by normalmap. Here, is the same model with different light angle, there's no normal shading in dark area. It only ...
1
vote
3answers
1k views

Is it possible (and practical) to dynamically create normal maps from graphics in Pixi.js?

I am building a tile game using Pixi.js. The game features dynamically-generated terrain and a day/night cycle. I'd like to use a normal map to give the sense of sloping hills or mountains. Luckily ...
1
vote
1answer
507 views

The math of normal mapping without a dot product

As far as I understand the technical details about a good normal mapping they go like this: everything gravitates around the concept of vertex the artist provides an RGB image and an UV map, the UV ...