Maxwell Render

Maxwell Render Information Repository
It is currently Fri May 24, 2013 10:18 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 204 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 14  Next
Author Message
 Post subject:
PostPosted: Sun May 22, 2005 11:15 am 
User avatar

Joined: Wed Dec 29, 2004 9:56 pm
Posts: 3006
Location: A sea of mist.
Quote:
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).

_________________
"Only the happy can escape the labyrinth, but only those who escape are happy"


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 11:33 am 
User avatar

Joined: Wed Jan 26, 2005 8:30 pm
Posts: 7385
Location: Uzbjeckiazutjenikitzistan
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.

_________________
Next Limit Team
Merchant of happiness


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 11:59 am 
User avatar

Joined: Wed Dec 29, 2004 9:56 pm
Posts: 3006
Location: A sea of mist.
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 !

_________________
"Only the happy can escape the labyrinth, but only those who escape are happy"


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 12:02 pm 
User avatar

Joined: Wed Dec 29, 2004 9:56 pm
Posts: 3006
Location: A sea of mist.
Image

_________________
"Only the happy can escape the labyrinth, but only those who escape are happy"


Last edited by Thomas An. on Sun May 22, 2005 6:47 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 12:04 pm 
User avatar

Joined: Wed Jan 26, 2005 8:30 pm
Posts: 7385
Location: Uzbjeckiazutjenikitzistan
Naaah, I don't believe you :P

Not without a detailed illustrated explanation.......................................

_________________
Next Limit Team
Merchant of happiness


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 12:29 pm 
User avatar

Joined: Mon Jan 10, 2005 11:53 am
Posts: 7610
oh shit :shock: :shock: :shock:

_________________
Next Limit Team


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 5:54 pm 

Joined: Tue Apr 05, 2005 12:08 am
Posts: 1024
Location: Genova!
oops. :?:


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 6:18 pm 

Joined: Fri Dec 31, 2004 9:00 pm
Posts: 538
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 6:40 pm 
User avatar

Joined: Mon Jan 10, 2005 11:53 am
Posts: 7610
Thomas, won't you tell us how? :D

_________________
Next Limit Team


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 6:44 pm 
User avatar

Joined: Wed Dec 29, 2004 9:56 pm
Posts: 3006
Location: A sea of mist.
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...)

_________________
"Only the happy can escape the labyrinth, but only those who escape are happy"


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 6:55 pm 
User avatar

Joined: Thu Apr 14, 2005 12:06 am
Posts: 1384
Location: Munich
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 7:08 pm 
User avatar

Joined: Wed Jan 26, 2005 8:30 pm
Posts: 7385
Location: Uzbjeckiazutjenikitzistan
Are you by any chance doubling one of the materials and slightly offsetting it? The glass or the liquid?

_________________
Next Limit Team
Merchant of happiness


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 9:19 pm 
User avatar

Joined: Wed Dec 29, 2004 9:56 pm
Posts: 3006
Location: A sea of mist.
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

_________________
"Only the happy can escape the labyrinth, but only those who escape are happy"


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 9:47 pm 
User avatar

Joined: Wed Jan 26, 2005 8:30 pm
Posts: 7385
Location: Uzbjeckiazutjenikitzistan
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

_________________
Next Limit Team
Merchant of happiness


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 9:54 pm 
User avatar

Joined: Wed Dec 29, 2004 9:56 pm
Posts: 3006
Location: A sea of mist.
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).

_________________
"Only the happy can escape the labyrinth, but only those who escape are happy"


Last edited by Thomas An. on Sun May 22, 2005 9:57 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 204 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 14  Next

All times are UTC + 1 hour [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group