# Questions tagged [lighting]

The tag has no usage guidance.

159 questions
Filter by
Sorted by
Tagged with
22 views

### Rendering equation - brdf / pdf > 1?

I am creating a path tracer and I got some strange results when calculating the strength of light. I am using a rendering equation inspired by this diagram: When I use the cosine everything gets ...
48 views

### Are virtual point lights in many-light global illumination the same light probes?

There are several papers like this one here that refer to a concept called many-light global illumination using Virtual Point Lights (VPL). That is, the problem of global illumination is reduced to a ...
54 views

### OpenGL old-style diffuse shading producing unexpected effects

Question: What is going wrong with the shape of the contours of constant illumination in the below picture ? Detail: Although Lambertian shading might be ill-regarded because it exposes the hard edges ...
74 views

### How are point and pure directional lights sampled in an unbiased path tracer?

To perform importance sampling on a light source, a probability density function must be provided for the sampling distribution. For most light sources, a valid probability distribution can be found, ...
60 views

### Next Event Estimation for Triangle-based Light Sources

I have a question regarding the NEE for light sources that are composed from triangles. I implemented the next event estimation (explicit light source sampling) for spherical light sources but after ...
105 views

### Specular reflection with different viewing direction where reflection direction and viewing direction coincide

Suppose $P_1$ and $P_2$ two different points on surface. And let $l$: be the light source direction, $n$: normal vector $r$: specular reflection direction $v$: viewing direction . In case 1 (at $P_1$...
76 views

37 views

### [Subsurface Scattering]What's the meaning of diffuse coefficient Rd in bssrdf

Recently, i am reading the papaer A Practical Model for Subsurface Light Transport . I have understand the radiative transport equation : and the approximation of the diffusion equation: . In BRDF ...
43 views

### [Subsurface Scattering]Reflection from Layered Surfaces due to Subsurface Scattering

Recently, I am doing some research about subsurface scattering. i am a little confused about the backscattered radiance mentioned in this paper Reflection from Layered Surfaces due to Subsurface ...
56 views

I am writing a raytracer which is meant to support shadows. Previously, I have naively implemented hard shadows by casting a shadow ray towards the light (+ offset) and seeing if it hits anything ...
51 views

### What is meant by ‘NEE’ in computer graphics?

I am reading this paper [Practical Path Guiding for Efficient Light-Transport Simulation, Müller et al, 2017] and it contains the following sentence: In practice, however, we recommend combining path-...
90 views

### Trying to understand how to render a volumetric point light

My goal is to render a volumetric point light as explained in this book's chapter 10: FGED Rendering The book explains the math pretty well, but I'm not sure I understand what is the required setup ...
56 views

### Motivation behind tesselation

This question is NOT about the hardware difficulties and shortcomings of tesselation shaders I am trying to understand the motivation behind tesselation shaders. Why/when/where tesselation is a good ...
61 views

### Techniques to implement a glow that encompasses a volume

I have an old renderer from years ago written with OpenGL immediate mode. I've decided to learn Vulkan and I'm converting my old project as a way to learn the new concepts. One of the things my old ...
60 views

### Area-light approximation in 2D

I’m trying to render a 2D image something like this: …where an arbitrary shape has its border illuminated by a line in a relatively physically accurate way, i.e. with less illumination reaching the ...
71 views

### Ray tracing Bug with Diffuse material

I am trying to do ray tracing in python (following the tutorial given in Ray Tracing in a weekend). Basically I am shooting rays from eye and the recursively bounce around, each time they hit ...
32 views

### Is spectral response curve and spectral power distribution the same thing?

I'm reading section 5.2 of pbrt 3rd edition and came across the part where they explain the concept of RGB colors. When we display an RGB color on a display, the spectrum that is actually displayed ...
60 views

### Why do materials have both an ambient color and a diffuse color?

One of the first things I learned about computer graphics lighting (and light in general) is that when a ray of light hits a surface, the surface absorbs certain colors and the light retains the rest. ...
51 views

### How's this laser cutting effect with backlight achieved?

Sorry for the general question, I don't even know how to tag it: https://www.youtube.com/watch?v=61UkkpsASwQ In this video, the effect is such as if there were a laser cutting a shape with a light ...
950 views

### Path Tracing With Multiple Lights

I've got my path tracer working great for a single light, but I'm having trouble coming up with a solution for scenes with multiple lights. My first thought was to just send a ray to each light and ...
10k views

### How is a light probe different than an environmental cube map?

Looking at a light probe texture, it looks like a blurry environment map. What's the difference between the two, how is a light probe made, and what is the benefit of it being blurry?
828 views

### Energy Conservation in Lighting Equation

I am currently making a Ray-tracer as a personal project. My lighting equation looks like this ...
11k views

### How to Calculate Surface Normals for Generated Geometry

I have a class that generates a 3D shape based on inputs from the calling code. The inputs are things like length, depth, arc, etc. My code generates the geometry perfectly, however I am running into ...
253 views

### What is wrong with my metallic PBR shader?

I feel like my light conservation math isn't correct, but I am not sure which part is wrong. Is reflected light supposed to influence the diffuse light? Does metalness only affect the reflected ...
3k views

### Physically Based Area Lights

So after reading https://www.guerrilla-games.com/read/killzone-shadow-fall-creating-art-tools-for-a-new-generation (a guerilla games presentation on PBR) I noticed the Area lights as opposed to the ...
87 views

### "whiteness" in center of bright colored lights - what is it called?

When a source of colored light is very bright, it's center appears white. What is the term I need to look for so I can implement this in my shader? I have added an image which is an example of what I ...
45 views

### How to use IES Light Profile with an area light source?

I want to use IES profile with an area light. My understanding is that the IES file assume the source to be a point light. That is in case of (large)area light the measurements are taken at a distance(...
82 views

### What effects are used to light this scene?

I am interested how that image on the right of the slider (just albedo) can produce such a realistic looking scene as the scene on the left. What effects (at a minimum) does this scene seem to be ...
39 views

### I am trying to find a clip about the art of old computer graphics

I have saw a clip where a guy talked about the art of squeezing some nice graphics into a very small space that was available on old computers. Come to think of it, it sounded something like today's ...
105 views

### IBL looks too dark with uniform sampling

I'm making a program that illuminates a sphere using an environment map. For each fragment in the sphere, I compute a many random directions in the hemisphere along the surface normal (no importance ...
41 views

### Problem sampling uniformly envmap with GGX

I have made a program that samples uniformly an environment map and computes the lighting using the GGX BRDF. I have made a small example that reproduces the issue I'm having. You can check it out ...
50 views

According to Phong's reflection model, there are different reflection constants (k) and different intensities of the light source (i) for ambient, diffuse, and specular terms: $I_p=k_ai_a+\sum_{m \in ... 1answer 108 views ### Raytracer help - Background color writing over some colors? I'm implementing Peter Shirley's "Raytracer in a Weekend: The next week" and I'm having some trouble with rendering a scene with a light. I'm not sure if the issue is the background color or ... 1answer 122 views ### Prove radiance contributions of deeper paths fade away When ray tracing, I find it intuitively clear that deeper paths have a lower contribution to the overal picture than shorter paths. This is the main reason why it is generally okay to render a picture ... 2answers 260 views ### OpenGL - Recreate position in viewspace from depth values Current state: I belive the reconstructed positions are correct. However, I still have the same problem as all the time. When I rotate around my single pointlight appears to be moving around also. I ... 2answers 3k views ### Better Shadow Mapping Techniques Currently I have basic shadow mapping setup in my engine. I am currently trying to implement something more realistic like PCSS (percentage closer soft shadows), to get a more physically accurate ... 1answer 174 views ### Light Falloff through a grid I'm playing with a grid-based lighting system, where light is transported and accumulated through a grid. I initially tried attenuation based on ... 1answer 1k views ### What is a vertex normal used for? I'm new to the graphics area, and when it comes to the light part, the concept of vertex normals confuses me a lot. First, I cannot imagine how a vertex could have a normal, and second, when ... 2answers 939 views ### Phong: Real-time rendering of Metal and Plastic Materials Using a shader that works like Phong, what would be the difference between painted Metal and plastic? I seem to remember reading in books years ago, that I no longer have access to, the following: ... 0answers 134 views ### Pdf division in BRDF sampling While following scratchapixel's tutorial on indirect diffuse implementation in path tracing, the samples gets divided by the pdf, which in case of a uniform pdf results in$1/2\pi$so we have that the ... 2answers 79 views ### Techniques for making tesselated shapes appear smoother? What are some common techniques for making the edges on a tesselated shape less apparent without increasing the amount of tesselation which is actually carried out? As an example, I followed along ... 1answer 109 views ### Confusion about light PDF I have a doubt regarding shape lights pdfs, specifically various sources point at the fact that the pdf is a constant: $$lightpdf = 1/A$$ Where$A$is the area of the light surface. Expressed in ... 0answers 25 views ### Adding specular reflections to a ripple simulation I am following the algorithm shown in this code here. Essentially there is a simple simulation of heights and then the difference in heights on the x and y axis respectively (sampling adjacent points) ... 3answers 607 views ### Ambient Lighting On the Wikipedia page for the Phong model, it says that the ambient term is a constant, and just gets added on to the other terms. But on other pages like LearnOpenGL it says you should take the ... 0answers 49 views ### Formula for non area light BRDFs I'm reading a graphics book and it talks about BRDFs being the ratio between differential outgoing radiance and differential irradiance. The formula it gives is f(l, v) = dL(v)/dE(l) Where l is the ... 0answers 275 views ### Why does Schlick's approximation contain a \$(1-\cos\theta)^5\\$ term?

The approximation writes the reflection coefficient as$$R(\theta)=R_0+(1-R_0)(1-\cos\theta)^5,\,R_0=\left(\frac{n_1-n_2}{n_1+n_2}\right)^2.$$Why is the exponent 5? Schlick 1994 introduces this ...
246 views

### Rendering equation for spherical lights

I am currently implementing spherical lights in my DirectX game engine. I decided to build the shading formula from the classical rendering equation. Here is what I get: The simplifications show that ...
107 views

### Irradiance field approximation with black probes

I'm posting here after some time searching the Internet and reading presentations and papers, to find out the best options to solve the problem I have. I'm implementing irradiance field with ...