Stack Exchange Network

Stack Exchange network consists of 175 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 [refraction]

The tag has no usage guidance.

5
votes
2answers
99 views

Refraction: given an incoming and transmitted direction, can I deduce the normal?

It's easy to find guides to calculating the transmitted direction of light given an incoming direction, the normal, and indexes of refraction. However, I can't find anything about determining the ...
3
votes
1answer
115 views

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 ...
1
vote
0answers
127 views

What is a good way to do reflection and refraction in small environment for bumpy planar surface?

I am implementing a water simulation program using OpenGL. However I could not decide which technique to use for reflection and refraction. The water is wavy and there are dynamic objects around the ...
6
votes
2answers
2k views

Refraction in a Ray Tracer: What do with an intersection within the medium?

I am currently following a tutorial at Scratchapixel.com on refraction Here is the refract function: ...
5
votes
1answer
632 views

How to handle specular highlights with reflection / total internal reflection in a ray tracer?

Let's say that I have a raytracer that is rendering a scene that includes a refractive object. When a ray hits the refractive object, I know that I can use the fresnel equation (Schlick's ...
11
votes
3answers
841 views

What explains the high specularity of metals?

From my understanding, the specular color usually refers to the amount of light that is reflected when the surface is lit at normal incidence, and is noted $F_0$ or $R_0$. Moreover, for non metal ...
8
votes
2answers
649 views

Eye Parallax Refraction

I am trying to implement the Parallax Refraction effect explained by Jorge Jimenez on this presentation: http://www.iryoku.com/downloads/Next-Generation-Character-Rendering-v6.pptx and I am facing ...
5
votes
0answers
95 views

Should I use nonsymmetric BSDF for refraction in BPT?

I'm implementing bidirectional path tracing. I want to simulate perfect refraction. I read in the Veach thesis that a perfect refraction BSDF is non-symmetric. Does it mean that I need to use ...
13
votes
1answer
2k views

Choosing Reflection or Refraction in Path Tracing

I am trying to implement refraction and transmission in my path tracer and I'm a bit unsure on how to implement it. First, some background: When light hits a surface, a portion of it will reflect, ...
11
votes
1answer
483 views

Is this the correct way to implement Beer's Law?

When I implement Beer's law (color absorption over distance through an object), it never looks very good for some reason. When i have the color behind the object, I calculate the adjusted color like ...
11
votes
3answers
372 views

How can I make my ice cubes look real?

I can model ice cubes as slightly misshapen transparent cubes with the refractive index of water, but they don't look convincing. They look like lumps of glass rather than ice. Looking at real ice ...
12
votes
1answer
252 views

Polarising reflection and refraction for a wrap around water surface

I want to render realistic images of water in an orbiting space habitat. The image does not need to be generated in real time, although I wouldn't want it to take weeks either. I'm looking for an ...