Questions tagged [lighting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
82 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 ...
0
votes
1answer
54 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 ...
2
votes
1answer
54 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 ...
1
vote
1answer
53 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 ...
1
vote
1answer
68 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 ...
1
vote
1answer
31 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 ...
2
votes
0answers
56 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. ...
0
votes
1answer
50 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 ...
1
vote
0answers
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(...
0
votes
1answer
79 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 ...
2
votes
2answers
82 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 ...
0
votes
0answers
38 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 ...
3
votes
0answers
97 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 ...
0
votes
1answer
37 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 ...
0
votes
0answers
49 views

Can ambient light reflection of a surface be larger than diffuse reflection?

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 ...
2
votes
2answers
239 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 ...
1
vote
1answer
104 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 ...
6
votes
1answer
902 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 ...
1
vote
1answer
120 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 ...
0
votes
1answer
225 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 ...
0
votes
0answers
120 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 ...
1
vote
1answer
94 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 ...
0
votes
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) ...
2
votes
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 ...
0
votes
0answers
48 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 ...
1
vote
0answers
258 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 ...
2
votes
1answer
224 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 ...
3
votes
0answers
106 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 ...
1
vote
1answer
408 views

Difference betwen Rendering Equation, Lighting model, Ray Tracing, Global Illumination and Shadows?

What is the difference between all these techniques? I know what a lightning model does, eg Phong, Flat, Gouraud. As far as I know both Ray Tracing and Global Illumination are just lighting models ...
0
votes
0answers
1k views

Color shading and light calculation for ray tracing

I am currently building a ray tracer and I came across a problem and confusion regarding the light calculations. For lighting, I am using the following mathematical model: Where ...
1
vote
1answer
348 views

Roughness Value of (Close to) Zero in Physically Based Rendering

In my Direct Light Physically Based Renderer, when I set the roughness too low (ie. 0.0 or close) the specular reflection doesn't show, not even at high resolutions and at perfect angle with the ...
1
vote
2answers
262 views

Do I need a normal matrix if I calculate lighting in an objects space?

As a quick reminder, here is what normal matrix is and why do we need it. Now the question - if I take the light position and transform it into an object space than I don't need the normal matrix at ...
0
votes
1answer
168 views

Pseudo rounded cube in OpenGL

If I have a cube in OpenGL, how can I have it appear like rounded? I think it's too complicated to really have the cube rounded so is there any "light trick" to have something like this: The cubes ...
0
votes
1answer
80 views

Physically realistic received irradiance values given some BRDF?

I am trying to simulate the actual response of a camera given some object that is reflecting light. I've written a ray tracer, and have a BRDF that I need to use, and I have a camera sensitivity in ...
0
votes
0answers
53 views

Clarification about Phong lighting model

I've read some tutorials about Phong and Blinn lighting models and tried to implement a rendered myself. To my knowledge, the basic approach consists of the following steps: calculate the vector from ...
1
vote
1answer
272 views

Tone Mapping in a physically based rendering ray tracer

I'm implementing a pbr ray tracer. Let's say that I'm at the end of the process: for each pixel pi, I accumulated the radiance value in vector pi = (radR, radG, radB). At this point, these values are ...
4
votes
0answers
180 views

Pre-filtered environment map, deriving the equation

I'm reading through this article, and more specifically I'm trying to derive the equation that would explain the implementation the following shader (still in the same article): ...
0
votes
0answers
33 views

gradual transition of light intensity formula

Imagine I have an x value that ranges from 1-100. The light source is pointed at x=50. From points 35 to 65 I want intensity to be 1 At the ends (ie 1 and 100), intensity should be 0 What formula ...
3
votes
1answer
231 views

How does Next Event Estimation work with transformed lights?

I am relatively new to path tracing, and I am trying to implement next event estimation. I am following the Monte Carlo integral used to compute the direct illumination from an area light: $$\frac{1}{...
2
votes
1answer
111 views

how many watts are in the SPD of the color white?

Please help. I'm trying to implement a ray tracer, going by the PBRT book and got stuck on an issue that I fail to find the answer to. My scenes are made from objects and light sources. From that, I ...
2
votes
1answer
218 views

Why is cos(𝜃) in the denominator in the reflectance equation and in the numerator in the shading equation?

Background: I'm reading https://learnopengl.com/PBR to learn about PBR. In the theory slide (https://learnopengl.com/PBR/Theory), the author has the reflectant equation as The theta (the angle ...
0
votes
1answer
130 views

How to simulate a line laser diode?

I'm interested in simulating the way a laser line deforms when it strikes an object and runs along the surface of it. Which concepts would be involved? Is there any 3D modeling software out there that ...
5
votes
0answers
167 views

How to use Photometric Units with Rendering Equation?

So I was just reading up on how to create more Physically Based Lights and wandered into the realm of photometry. I read the paper "Moving FrostBite to PBR" and in it the author claims he decided to ...
1
vote
0answers
108 views

Specular/Diffuse light on an icosahedron opengl

I'm having a problem with my model here. I draw an icosahedron using GLUT, and the radius is set to 0.8. The info of the coordinates are listed below: (X and Z are calculated since our radius is 0.8) ...
3
votes
1answer
559 views

Iridescence/Thin-film interference integration as a layer

I'm trying to integrate the thin-film interference effect described in the paper "Belcour, L., & Barla, P. (2017). A practical extension to microfacet theory for the modeling of varying ...
2
votes
2answers
238 views

Physically Based Shading for Diffuse surfaces

So I am currently in the process of implementing Physically based Shading in my pathtracer using microfacet models and I'm quite stuck at comprehending light interaction with diffuse surfaces. First ...
3
votes
1answer
1k views

How is lighting done in Rasterization based pipeline?

So I wanted to know how do Game Engines like Unity3D and Unreal do lighting. I'm familiar with Ray-tracing, pathtracing based renderers etc. But not much with rasterization based engines. I do know a ...
3
votes
3answers
884 views

Why Diffuse Light use max(N · H, 0) instead of just letting it be negative?

In Cg tuts, Diffuse Section Surfaces that face away from the light will produce negative dot-product values, so the max(N · L, 0) in the equation ensures that these surfaces show no diffuse ...
1
vote
2answers
213 views

Ghosting in volumetric lighting

Does anyone know any method to remove ghosting in volumetric lighting? When light move it leaves trail behind, i would like to remove it. Volumetrics are Bart Wronski style (in frustum) with ...
0
votes
1answer
244 views

How does the Modified Phong Lighting Model from the Phong Lighting Model?

How does the Modified Phong lighting model also known as the Blinn-Phong differ from the Phong Lighting Model? How can I distinguish the two?