Skip to content

Conversation

@giogala
Copy link
Collaborator

@giogala giogala commented Jun 17, 2025

Try to implement a RefractiveBRDF ruled by Fresnel's Law for TE polarization. The necessary is:

  • declare new BRDF type
  • add r_ind member to Ray in order to remember the medium of propagation
  • modify Ray calls for keeping consistency
  • add tests and docstrings
  • modify README.md and CHANGELOG.md

giogala and others added 30 commits May 28, 2025 12:39
@giogala
Copy link
Collaborator Author

giogala commented Jun 17, 2025

After the correction I created the following image:
refractive

@giogala
Copy link
Collaborator Author

giogala commented Jun 19, 2025

After several tries I understood the constrains of the equation I was taking inspiration from:

  • $$w_i$$ is gettin' out and not into the point of intersection
  • $$w_i$$ is normalized

I modified my implementation taking in account these hypothesis and obtained a physical behavior!
path_refr_4

@giogala
Copy link
Collaborator Author

giogala commented Jun 20, 2025

Finally achieved to generate the animation of an arrow being refracted by a glass. Need to thanks @daviderivaa for the idea. Here you are!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants