Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [refraction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
110 views

Raymarching Refraction

I'm sorry if this question is imprecise, or violates any guidelines. This is my first post on Stack Exchange, so any feedback is welcome. I am working on a ray-marcher in my spare time, which you can ...
Griffin S.'s user avatar
1 vote
1 answer
86 views

Shading normal and geometric normal for refractive surface rendering

I got confused when implementing my own renderer. I read this from the PBR-book: Fortunately, there is an elegant solution to these problems. When evaluating the BSDF, we can use the geometric normal ...
Enigmatisms's user avatar
2 votes
1 answer
403 views

How does Unreal Engine 5's Lumen (most likely) implement reflections?

In this YouTube video, the creator mentions that reflections in Unreal Engine 5's Lumen "work by tracing the path of light as it bounces off of surfaces in the game world." Does this mean ...
HelloGoodbye's user avatar
2 votes
0 answers
66 views

Fresnel and light reflection/refraction

I keep reading about fresnel and there is one thing I don't fully understand. My understanding : Here is my understanding so far, so please correct me where I am wrong. Fresnel is related to ior (eta)...
LeXav's user avatar
  • 23
0 votes
1 answer
390 views

Raytracing in OpenGL or Vulkan?

I was looking at this glass ball rendering with an image inside of it (zoom out to see the glass ball), and noticed that it looks like they simulate the refraction of light as it crosses from inside ...
HelloGoodbye's user avatar
1 vote
1 answer
65 views

Name and influence of style used for futuristic line patterns?

What is the name of the style of the line graphics used in the image below? The line patterns seem to envelope the shape of the woman maybe algorithmically somehow, becoming denser and yellow on the ...
user610620's user avatar
2 votes
1 answer
236 views

Debugging refraction in a sphere

I have been working on recreating some of the scenes from Peter Shirley's raytracing books using compute shaders and the new Metal raytracing API. It is going well but I am having some trouble with ...
Eoin Roe's user avatar
5 votes
2 answers
160 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 ...
Phil McLaughlin's user avatar
3 votes
1 answer
170 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 ...
Mustafa Işık's user avatar
0 votes
0 answers
524 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 ...
user3117189's user avatar
5 votes
2 answers
4k 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: ...
Arjan Singh's user avatar
  • 2,511
4 votes
1 answer
1k 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 ...
Alan Wolfe's user avatar
  • 7,801
13 votes
3 answers
1k 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 ...
Julien Guertault's user avatar
7 votes
2 answers
2k 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 ...
MaT's user avatar
  • 1,229
4 votes
0 answers
139 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 ...
ciechowoj's user avatar
  • 203
16 votes
1 answer
4k 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, ...
RichieSams's user avatar
  • 3,782
13 votes
1 answer
1k 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 ...
Alan Wolfe's user avatar
  • 7,801
12 votes
3 answers
720 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 ...
trichoplax is on Codidact now's user avatar
12 votes
1 answer
358 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 ...
trichoplax is on Codidact now's user avatar