Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtractive Refraction Indices of Glass #187

Open
itsjustcurtis opened this issue Jan 13, 2025 · 3 comments
Open

Subtractive Refraction Indices of Glass #187

itsjustcurtis opened this issue Jan 13, 2025 · 3 comments
Labels

Comments

@itsjustcurtis
Copy link

On more complex lens shapes, it is easier to combine several different smaller shapes together. The ability to overlay a shape that cancels the refraction of the item below (e.g. a truncated parabolic shape.)

I have attempted to emulate this effect by using multipliers that should cancel out (i.e. 1.5 as the main shape, 0.667 to cancel) but this isn't having the desired effect. I'm not sure if this is a feature that could be implemented at a later date or if my maths is incorrect!

@itsjustcurtis
Copy link
Author

Having played with this further, the desired effect worked when both glass pieces were placed within the same module, but with the main piece in a module, and the "cancelling" piece as its own obj, it did not work as expected.

@ricktu288
Copy link
Owner

Can you give me the shared link of the scene? I thought it should work no matter they are in the same module or not, even if the gray color of the glass shown on the screen may not correctly corresponding to the equivalent refractive index.

@itsjustcurtis
Copy link
Author

https://phydemo.app/ray-optics/simulator/#XQAAAAJ_AQAAAAAAAABDKcrGU8hqLFnpmVEV4ih8ZyjFwnh6sAID5qoVWTZE4qQDHtRoNrg7AH0-_opAfJ1xcyn46grTq7o0hqXdxQe5BSXkH5M57_o4SFTKP0SntmSbguS95J0xDRjypxIlDK1FQdkQjK1unz2BbTG9E4Lwk2WP0LUajiibSpZwcjVzzqlvnpxBRLUrXS0or5uo7zmDI_1ygHq8cUuSSg9JUmFCI0V0JaQ7eijV62aeQ5afJzstfzj1zl-4KAKqxJpKdTI0QuvfE2-ugm2Q5WIpy8AVyME9SKAuv0F2k_ulENynH2SzgiODRd23___sf4wA

On creating this example, the 0.66 lens behaves exactly as I would expect when they are both placed objects, and if they are both in a module, having one in each as in this example seems to be how the bug appears. With that said, looking at the rays, it seems like the rays are being calculated correctly, and it may be the colour rendering of the glass may simply be incorrect.

@ricktu288 ricktu288 added the bug label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants