Comments (8)
Imagine you put a glass into water. You are not overlap the glass with the water, but are changing the shape of the water. If you submerge it into the water, the shape of the water becomes "a rectangle minus the shape of the glass". Therefore, the proper way to draw in this simulator is to first draw the "water" like this:
And then put a glass in the hole of the water.
Overlapping two glass objects should be considered as an undefined behavior of the simulator (we do not really overlap objects in real life). Currently, the actual behavior is that the refractive indices multiply in the overlapping region.
from ray-optics.
I think a more intuitive overlapping behavior is that the glass created later always replace the glass created first. But implementing that would be quite difficult. I think I will just add a notice to clarify the current behavior.
from ray-optics.
I get it. Maybe you can help me on this case?
I was trying to simulate this problem from my text book:
from ray-optics.
I made it using a half-plane. I see you are proposing a free-shape with a hole but I don't know how to do that?
Find attached json files:
a)
https://drive.google.com/file/d/13k9VBICYcUOVQ0tl1jlGPrYIzhW6ewEM
b)
https://drive.google.com/file/d/1m5zUL6EnIqZmDgFX3ICD-CGfBFw0DVkj
from ray-optics.
from ray-optics.
understood, thank you!
from ray-optics.
You can now use the slider to set the (relative) refractive index to less than one to simulate the inner material being less refractive than the outer material. No need to do what I described in the previous comment anymore.
from ray-optics.
I see. Thank you!
from ray-optics.
Related Issues (20)
- Grid setting not saved in json files HOT 1
- Variables HOT 7
- Colour filters HOT 6
- Glass absorbtion [Feature request] HOT 1
- Is it possible to use lenses with different focal lengths HOT 2
- [Feature request] Add control to adjust observer's size HOT 4
- page stuck on processing... HOT 3
- Grid rendering is extremely slow HOT 3
- Gain medium HOT 5
- Hyperbolic functions not working HOT 2
- Feature request: Diffraction gratings HOT 4
- Corner of mirrors
- Simulate partial reflection for mirrors - Specify a percentage of light that goes through a mirror from each side [feature request] HOT 1
- Scripting? HOT 2
- Sensor? HOT 1
- Pivot? HOT 1
- Discussions are better than issues! ;-) HOT 1
- The detector breaks interfaces when places at the interfaces HOT 1
- Material overlap problem HOT 1
- SVG export probably needs more time for calculation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ray-optics.