Most Popular
1500 questions
3
votes
2 answers
Illumination model used in the "Raytracer in a weekend" series
I was going through the raytracer in a weekend book by Peter Shirley and the subsequent book raytracing the next week and I couldn't make out what was the illumination model that was being used here.
all the previous raytracing samples that I have…

B0rn2C0de
- 133
- 4
3
votes
0 answers
Why my cosine interpolation of a cube's face doesn't work?
NB please : executable use cases are available at the end of this question. I begin this question by showing you the problems of my program, then I explain how the latter works, and finally I end up with these both executable use cases.
What I want…

JarsOfJam-Scheduler
- 171
- 1
- 4
3
votes
1 answer
How to deal with light leaks?
I'm struggling with light leaking through meshes (especially thin ones) due to interpolation between probes located on the opposite sides of those.
First approach I took was mapping all static geometry to 1 lightmap, then generating light probes…

Pavlo Muratov
- 243
- 1
- 10
3
votes
0 answers
Linear bending of a mesh
I am trying to implement linear bending of a mesh by following what Alan H. Barr explained in his Global and local deformations of solid primitives paper (ACM link, Direct Link hosted on a faculty page, pag.5). The issue I have is that I don't quite…

Ace Trevis
- 31
- 2
3
votes
1 answer
What is the use of epsilon in the Möller–Trumbore intersection algorithm?
The Möller–Trumbore intersection algorithm compares the determinant with an epsilon. What is this epsilon and how is its value chosen?

Kibouo
- 33
- 4
3
votes
4 answers
How to access several textures from huge amount of textures in a shader?
I'm developing a light probe based GI solution and currently dealing with light leaks due to interpolation between probes located on opposite sides of the walls. I want to tackle the problem by incorporating precomputed shadow maps assigned for each…

Pavlo Muratov
- 243
- 1
- 10
3
votes
1 answer
How to get assembly code from GLSL Shader
I am new to optimizing shader code. Now that I have written an "optimzation", I want to make sure that it really speeds things up and is not just an unreadable version of what I intend to do. For this, I wanted to look into the assembly version of…

Tare
- 1,551
- 7
- 24
3
votes
1 answer
If I have more than enough memory, can it still be beneficial to use compressed textures?
I'm wondering whether some of you would have tested and seen quite a difference in using a compressed texture even when the OpenGL environment does not need saving any memory (i.e. the card has more memory than necessary to support the textures…

Alexis Wilke
- 211
- 1
- 6
3
votes
1 answer
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 math involved, and a lot of resources seem to be…

Narrateur du chaos
- 259
- 2
- 7
3
votes
1 answer
Can a glass plate act like a lens?
I am trying to implement rough dielectrics on my renderer. I compared the results of my renderer and Mitsuba renderer. However, a thin glass plate which is a cube scaled by (0.4, 0.4, 0.01) magnifies the object in front of it in Mitsuba while it…

Mustafa Işık
- 417
- 4
- 8
3
votes
1 answer
Do we ever consider the size of the pixel to calculate the color in Ray Tracing?
From what I'm reading, it looks like a ray tracer views a pixel as one color and computes that color using the ray starting in the center of that pixel. Yet a pixel has a width and a height.
Do we ever use the actual square (now a day pixels are…

Alexis Wilke
- 211
- 1
- 6
3
votes
1 answer
What is a scaling factor of the screen?
I'm reading DXGI flip model article and some parts are not clear:
DirectFlip with panel fitters: Your window client region covers the screen, and your swapchain buffers are within some hardware-dependent scaling factor (e.g. 0.25x to 4x) of the…

nikitablack
- 711
- 4
- 15
3
votes
1 answer
Subdivide a triangle along its UVs
I'm looking into a problem that first occured very trivial to me, but i got stuck and it's becoming a major issue right now. I'd like to subdivide a triangle by its given UVs, e.g. if the UVs are going from -n...+m or if they are greater than 1. So…

Intrins
- 59
- 4
3
votes
0 answers
Predicting reflectance functions from complex surfaces
There are three principal ways to obtain a BRDF. We can
Derive an analytic formula using physical principles
Use simulation given an assumed or measured model of the surface
microgeometry
Measure the BRDF based on empirical observation
A number of…

Arjan Singh
- 2,511
- 3
- 22
- 38
3
votes
1 answer
Can someone explain this formula for parse RGB to HSL?
Im trying to complain the algorithm to calculate the HSL value form a RGB color. I understand the algorithm for the Hue, but im lost with the Lightness and saturation. Someone can explain why?
There is the…

TheRedosan
- 31
- 3