Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [normal-mapping]

The tag has no usage guidance.

1
vote
1answer
69 views

How are the three plane equations derived in the NVIDIA's CG Tutorial chapter 8?

I'm reading the chapter 8 of the Cg tutorial and I could not understand 8.4.1 : Because all these coordinates lie in the plane of the same triangle, it is possible to derive plane equations for x, ...
1
vote
0answers
139 views

Normal Artifacts On Grazing Angles

I am currently experiencing a very obvious artifact that occurs when looking at objects on very grazing angles Here is a picture of the artifact: I noticed that the issue was coming from my ...
3
votes
1answer
91 views

How to compute normal of surface from implicit equation for ray-marching?

I want to represent ovaloids with ray-marching. I have ovaloids defined with an implicit equation. For instance, we can consider the equation of an ellipsoid given as: $$ \frac{x^2}{a^2} + \frac{y^2}...
1
vote
1answer
90 views

How do I build my tangent space matrix?

I'd like to understand how the process of building the "tangent space" matrix for normal mapping works. I'm following several tutorials, and other stackexchange questions, but I'm unfamiliar with the ...
2
votes
0answers
64 views

What does different tangent basis mean for a normal map

What does it mean that a normal map was computed with a different tangent basis and is the reason why the normal map does not render correctly. I used the following code (very generic) for my ...
4
votes
2answers
143 views

Inconsistent shading in pathtraced image

I am currently building a pathtracer, which has support for vertex normals and face normals. There seems to be an issue when it comes to rendering objects with triangles exported from Blender. ...
1
vote
1answer
150 views

How do you implement perspective correct Gouraud shading across a triangle?

What's the algorithm for doing so? I have flat shading working and I have perspective correct texture mapping working. Is the way your raster Gouraud shading much different from the perspective ...
3
votes
2answers
633 views

Inverse-Transpose of Vertex Normals

For the past month, I have been learning on my own and writing a little graphics library and am currently working on the transformation of vertex normals to soon support lighting/shading. I understand ...
4
votes
1answer
558 views

Compute sphere tangent for normal mapping

I'm implementing normal mapping on my toy pathtracer. I need to compute the tangent (and bitangent) of any sphere point in order to create the matrix that will transform tangent space to world space. ...
4
votes
1answer
353 views

Correct way to set normal strength

I am working on a normal mapping. I need to have the ability to scale normal vectors to adjust the normal strength of the surface. Currently the way I am doing it basically shows plausible results. ...
2
votes
2answers
468 views

Extract visible vertices from a 3D geometry model

Let's assume we have a 3D model consisted of XYZ-formatted vertices (such as point cloud model). My problem is given the position and normal of camera or camera ...
5
votes
1answer
252 views

How are Normal Maps created?

How does one go about taking a single photograph, like a picture of a rock wall, and getting a decent normal map out of it? If you can, I'd like to learn about the mechanics behind it, and not a ...
5
votes
1answer
313 views

Rotation matrix for a 3D object in space

This is the follow-up question from here: Minimum requirements to uniquely represent a 3D object in space Assume I have 3 original points in a 3D object (in 3D space) as ...
4
votes
2answers
221 views

Minimum requirements to uniquely represent a 3D object in space

Let's assume we have a 3D object (in 3D space). We get a single representation vertex from this whole 3D object. Given the fact that the object can be moved and rotated in the space in any direction, ...
8
votes
2answers
226 views

Does normal mapping make sense for a view of earth from space?

I am working on a planet visualizer, which at this point is little more than the NASA blue marble image applied as a diffuse texture. For the atmospheric rim, I am simply blending in a constant color ...
12
votes
2answers
1k views

Derivative maps vs. Tangent Space Normal maps

I discovered that some engines use derivative maps instead of tangent space normal maps. After some reading, it seems to be a really awesome way to replace tangent space normals but are there some ...
4
votes
1answer
104 views

NormalMap problems: bumps work, but shade does not

I've been trying to figure this out for a few days now, but I just can't get it right. I've read multiple tutorials and possible explanations, I even watched a java tutorial without finding the ...
7
votes
0answers
803 views

Bump mapping a ray-traced sphere

I'm attempting to apply a height map to a ray-traced sphere. The height map is stored as a texture. I have the intersection point on the sphere $p$, and I compute the normal vector at that point $N = ...
7
votes
2answers
190 views

Sampling against geometry normals

I am writing a basic raytracer and have implemented normal maps. However, when using normal maps, sometimes the rays generated are opposite to the surface's geometry normal, so that the rays are ...
5
votes
0answers
109 views

How is glint rendering done in Ray Tracing?

How is glint rendering done with ray tracing in the photo below? Is it just a simple normal map? I found a paper online that describes the exact same method used in the photo above but I have no ...
8
votes
1answer
3k views

Programmatically generating vertex normals

I'm working with Kinect face api, it provides an array of vertices and indices for triangles which is to be rendered to make the face image. The no of vertices and their order in array as well as the ...
5
votes
2answers
693 views

Screenspace Normals - Creation, Normal Maps, and Unpacking

I'm trying to condense my Deferred Rendering G-Buffer. So I have some questions about getting 2-component Screenspace Normals. I know Frostbite and Killzone (the only two AAA company's G-Buffers I ...
3
votes
1answer
575 views

How to blend World Space Normals

I am trying to blend two world space normals inside a shader. One comes from a tangent space normal map converted into world space using a classic TBN matrix and the other one is a mesh normal map in ...
5
votes
1answer
118 views

Image based lighting, tangent space coordinates, and optimization

When I saw an implementation of normal mapping that computed the TBN matrix in the vertex shader and converted everything (in particular the view vector and light vector) to tangent space at that ...