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.

0
votes
0answers
34 views

How do i update opengl lightning equation in my fragment shader to make my texture less glossy and more like a fabric

I built a model in blender, and am currently trying to import it into my android app using assimp together with opengl, i dont have any issues with the importing but my goal is to make the object look ...
0
votes
1answer
28 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 ...
1
vote
2answers
72 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? ...
0
votes
1answer
40 views

TBN matrix for normal and parallax mapping

I'd like to refer to this question because I didn't completely answer to my problem. I've implemented normal and parallax mapping but because of some assumptions I have to use two different TBN ...
0
votes
0answers
27 views

GLSL and normal mapping

I'm trying to implement normal mapping on my existing shaders, but I'm definitely doing something wrong, probably related to the TBN matrix. The point is, while drawing two perpendicular walls with ...
0
votes
0answers
45 views

Tangent and Binormal direction if FBX file format

What is the consensus on tangent and binormal direction in FBX file format? Where does the binormal and tangent pointing to in uv coordinate system? Is tangent pointing along U axis and binormal ...
1
vote
1answer
18 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 ...
0
votes
1answer
161 views

Tangent space normal mapping visual problem along UV islands (using Vulkan)

I'm learning Vulkan and computer graphics. First time implementing normal mapping. I've been struggling with this for days now and I can't seem to find the problem - so that's the question. What is ...
0
votes
0answers
27 views

Clarifications with generating dynamic Unity Normal Maps

I am dynamically creating a Normal Map in Unity (for my dynamic mesh) but I am having issues, the problem primarily being my weak understanding of Unity's implementation of the Normal Map as used in ...
0
votes
1answer
87 views

Normalmap texture in Unity from SP disorted a lot

As title said, normalmap made from Substance Painter in Unity disorted. Here is the picture: I made red rectangles to see more cleary. You can see that the some of line of normal were disorted ...
0
votes
1answer
127 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 ...
0
votes
1answer
113 views

Spine and 2D Unity Weird Light Issue

While using spine in unity 2D with a spot light, the light from the spot light will shine on the character if he's facing right but only when the light is in front (in the Z direction) of the ...
1
vote
1answer
184 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 <...
0
votes
2answers
90 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 ...
2
votes
1answer
527 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 ...
1
vote
1answer
80 views

Per pixel normal mapping resulting in static on normals starting on Z axis

For the past week I've been trying to implement bump mapping in DirectX 11 using the Frank Luna's '3D Game Programming with DirectX 11' book. I got it working until I tried to add a flat 2D plane ...
1
vote
1answer
1k 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 ...
0
votes
0answers
47 views

Normal map causing abrupt change in shading across UV islands

As you can see in the image above, there is a big change in shading past the uv island on the end. i have no idea what caused this, but I can reproduce my steps as best i can. Model high poly in ...
0
votes
1answer
284 views

Issue with tangents/bitangents generation for normal maps

I'm generating tangents and bitangents for a normal mapping effect and while using the same method as several tutorials, I get tangents that are not very continuous. Here, we can see on the sphere ...
0
votes
1answer
40 views

Simulated 3D hit point from surface normal

Here is an illustration describing what I'm trying to do...
1
vote
1answer
446 views

Using normal maps to output world-space normals

Im using deffered shading and here is my g-pass Vertex shader code: ...
0
votes
2answers
435 views

Simplst possible TBN-Matrix giving weird results

I'm implementing normal mapping and was trying different techniques of doing that. All seemed not to give me a correct result (e.g. the normals point in weird directions). To find the problem, I broke ...
8
votes
1answer
6k 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 ...
0
votes
1answer
90 views

How can I detect handedness of normal maps in a shader?

I've implemented normal maps into my game renderer using the formulas by Christian Schuler. It works OK with most normal maps but some not so much since in some the Y component (green) is reversed. ...
0
votes
2answers
1k views

How to create a normal map for my dice texture?

I have this simple dice texture and would like to create a normal map for it where the black dots are are dents and the edges are trimmed(like on a actual dice) I'm using unity5. I need a explanation ...
1
vote
3answers
931 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 ...
0
votes
1answer
726 views

Custom Terrain Shader Normal Map Issue?

I've been developing a custom terrain shader in Unity. And I've been having problems with my normal maps. Even after hours of fiddling I still haven't fixed it yet. There are 2 noticeable issues: 1. ...
1
vote
1answer
471 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: ...
2
votes
0answers
59 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....
3
votes
1answer
5k 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 ...
0
votes
1answer
838 views

Export normal map from unity?

In unity I can create a normal map out of a black and white image (By changing the type to normal map and select create from grayscale) Im wondering if there is a way to export the normal map like it ...
2
votes
0answers
586 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/...
2
votes
1answer
432 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 ...
4
votes
1answer
246 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 ...
1
vote
1answer
433 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 ...
0
votes
1answer
155 views

Is normal mapping cpu overhead or gpu overhead?

In Unity3D Engine, I usually apply normal mapping using fragment shader. In this case, this normal mapping is cpu overhead or gpu overhead?
0
votes
1answer
359 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 ...
4
votes
1answer
781 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, ...
1
vote
1answer
410 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 ...
5
votes
1answer
721 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?
1
vote
1answer
3k views

HTML5 Canvas 2D lighting and normal maps [closed]

How using the HTML5 Canvas can I create a 2D game with light sources and also add an extra depth using normal maps. I have never really done lighting in 2D before and I'm not sure where to start. ...
1
vote
1answer
923 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 ...
3
votes
1answer
555 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 ...
0
votes
1answer
3k views

Transforming normal vector in GLSL

I'm looking at a basic diffuse light shader here http://en.wikibooks.org/wiki/GLSL_Programming/Unity/Diffuse_Reflection. Diffuse light needs the normal vector in eye-space, so that it can dot it with ...
0
votes
0answers
242 views

How to generate Normal Maps from Lighting Profiles?

How might I go about generating a normal map from a lighting profile(light map)? I saw "Sprite Lamp" however, if possible, if there is some sort of math I can do myself to convert a lighting profile ...
5
votes
1answer
1k 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 ...
3
votes
2answers
541 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: ...
1
vote
1answer
420 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 ...
0
votes
1answer
231 views

Normal Map Issues

I'm experiencing a very strange result in my very simple normal map implementation on iOS 7 - OpenGL ES 2.0. I'm only using the bare parameters necessary and I'm also skipping on all the tangent and ...
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 ...