All posts relating to Maxwell Render 1.x
User avatar
By Thomas An.
#27115
edit: You mean when the ray enters from the other side, Maxwell still knows it entered the surface, but the normal angle is negative?
Here is a rule of thumb

1. If a ray hits the front of a surface then the deflection is calculated by the ND of this present as well as the previous front surface (if no previous exists, then use air)

2. If a ray hits the back of a surface then the deflection is calculated by the ND of the previous two front surfaces (the present ND is ignored).
User avatar
By Mihai
#27121
Aah, I was getting confused by the use of single sided membranes :) What is happening then when the ray hits the convex membrane is it thinks it has exited the previous material. Then ofcourse having B there will make a difference. So it's like Kabe says, Maxwell knows when a ray hit something, even when it hits it from the back side. That's what I wanted to understand. This makes me think having double sided materials is not a good solution since that would mean Maxwell would need too methods to calculate absorption etc.....one the way it's doing it now, by knowing how long it travelled inside the medium before it exited, the other (if you use a double sided mat), would simply be a setting we choose for that material.

But having these two methods is confusing I think. IMO it's best to keep it as it is, and just give us a solution for when we need two dielectric surfaces touching.
User avatar
By Thomas An.
#27128
Based on the knowledge from this experiment, I believe I now have the correct solution to the liquid+glass problem.
It is rendering right now 8)

Stay tuned !
User avatar
By Thomas An.
#27130
Image
Last edited by Thomas An. on Sun May 22, 2005 6:47 pm, edited 1 time in total.
User avatar
By Mihai
#27131
Naaah, I don't believe you :P

Not without a detailed illustrated explanation.......................................
User avatar
By tom
#27135
oh shit :shock: :shock: :shock:
By daros
#27179
oops. :?:
By tokiop
#27182
Thomas, congrats for your testing..

your image is very interesting, waiting to know more about it! Some of Maxwell's alpha testers are really doing a great job and make aviable features that are not already here and push to the Next Limit too..! :D
User avatar
By tom
#27190
Thomas, won't you tell us how? :D
User avatar
By Thomas An.
#27192
tom wrote:Thomas, won't you tell us how? :D
Hold on. I got to get some sleep too... from time to time :D
(I know, I know.... bad habits...)
User avatar
By Kabe
#27195
Thomas An. wrote:Hold on. I got to get some sleep too... from time to time :D
(I know, I know.... bad habits...)
Hey, do you know that *not* knowing how you did this could cost us our sleep, too? ;)

Just kidding, you have 24 hours :D

Kabe
User avatar
By Mihai
#27198
Are you by any chance doubling one of the materials and slightly offsetting it? The glass or the liquid?
User avatar
By Thomas An.
#27224
In view of the findings from the first page:
  • Intersection of ray R1 at point A evaluates as step1 Snell's law (in the propagation diagram). This is an incident membrane intersection and Maxwell treats this as an air-to-liquid interface
  • Intersection of ray R1 at point B evaluates as step 2 Snell's law. This is also an incident membrane intersection and Maxwell (correctly) treats it as a glass-to liquid interface
  • Intersection of ray R1 at point X1 evaluates similarly to step 5 Snell's law (of the propagation diagram). This is a non-incident intersection and the ND is irrelevant. Maxwell (correctly) uses the previous NDb and NDa in the stack to treat this as a liquid-to-glass transition
  • Intersection of ray R1 at point X2 evaluates similarly to step 6 Snell's law (of the propagation diagram). This is a non-incident intersection and the ND is irrelevant. Maxwell (correctly) uses the previous NDa and NDo in the stack to treat this as a glass-to-air transition
Similarly the behavior of ray R2 is evaluates to air-->liquid**-->glass-->air (please see diagram for the "key" explanation of liquid**)

I believe this diagram will give the most correct liquid+glass result.
Image
User avatar
By Mihai
#27233
So the reason for the glass to completely enclose the liquid is so the caustics are calculated correctly?

Because I remember the tests I did and the most correct looking one was were the glass was cut away where it met the liquid. Although in that one there was just a liquid "top", so a ray coming from above that entered then exited the liquid at the bottom, didn't know it was then entering glass at the bottom...

But if this small distance doesn't matter so much for the nd, why did my images look so different?

Note, none of these images are correct:

Image

Image
User avatar
By Thomas An.
#27234
Mihai Iliuta wrote:So the reason for the glass to completely enclose the liquid is so the caustics are calculated correctly?

Because I remember the tests I did and the most correct looking one was were the glass was cut away where it met the liquid. Although in that one there was just a liquid "top", so a ray coming from above that entered then exited the liquid at the bottom, didn't know it was then entering glass at the bottom...

But if this small distance doesn't matter so much for the nd, why did my images look so different?
Well, theoretically it passed all the logic tests. Now if there is certain situation that a visual result is looks off ... then I don't know

The test you did with just liquid on top (which was also the design that I advocated last time) was an unbalanced design because a ray entering from above will meet only three surfaces instead of four... and this of course creates unusual results (such as with caustics or strange reflections when seen from the bottom).
Last edited by Thomas An. on Sun May 22, 2005 9:57 pm, edited 1 time in total.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 14
Help with swimming pool water

I think you posted a while back that its best to u[…]

Sketchup 2026 Released

Considering how long a version for Sketchup 2025 t[…]

Greetings, One of my users with Sketchup 2025 (25[…]

Maxwell Rhino 5.2.6.8 plugin with macOS Tahoe 26

Good morning everyone, I’d like to know if t[…]