The problem of interfacing liquid and glass.

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
truerender
Licensed Customer
Posts: 100
Joined: Mon Mar 15, 2010 3:01 pm

Karba not be a heretic of physics!
Repair the engine, think of something.
I do not want to organize dances with a tambourine and make the water IOR = 1 and other machinations.
I want the performance of rendering.

air IOR = 1
water IOR = 1,33
glass IOR = 1,55

And so on!
Repair! Repair! Repair!
User avatar
vk3d
Licensed Customer
Posts: 69
Joined: Wed Feb 08, 2012 3:37 pm
Contact:

Karba, can you try to do a bootle with liquid without color?.. like water or vodka. There you can see more mistakes or else..
Dual Xeon E5520 2.27 GHz, 48 GB DDR III
3ds Max 2016x64, Octane render for MAX, Titan Z
User avatar
temp-64GTX
Licensed Customer
Posts: 56
Joined: Wed Aug 08, 2012 8:45 am
Location: Russia, Novosibirsk

Karba wrote:That is correct way.
glass has 1.3 ior
liquid has 1.3 ior
So from glass to liquid there is no ior difference.
So ior between glass and liquid is 1.0 or close to 1.0.

Render engine is correct.
Глупости. What happens if I want to look at the cup top? Your water with IOR=1.0 will be in the direct line of sight.
Win7 x64, [email protected], 32Gb DDR3 1600, 2xGTX580 3Gb, Corsair 64Gb SSD, ViewSonic 2560x1440
User avatar
bicket
Licensed Customer
Posts: 365
Joined: Thu Mar 01, 2012 10:46 am
Contact:

truerender wrote:Karba not be a heretic of physics!
Repair the engine, think of something.
I do not want to organize dances with a tambourine and make the water IOR = 1 and other machinations.
I want the performance of rendering.

air IOR = 1
water IOR = 1,33
glass IOR = 1,55

And so on!
Repair! Repair! Repair!
Truerender is right, ior is constant for a given material (at constant temp and pressure...) and doesn't dépend on where you come from (air, glass or whatever).
Octave should detect that the ray is leaving the glass (direction id the ray is the same as the normal) and is entering in the liquid. That the only physicaly correct way to go.

With your method (1.5/1.3=ior) the liquid will not have the same ior in a crystal glas and in a plastic bottle. No sens !
The liquid has its own ior.
PortFolio
4 x TITAN - Win 7 64 - Octane Rocks
User avatar
Proupin
Licensed Customer
Posts: 735
Joined: Wed Mar 03, 2010 12:01 am
Location: Barcelona
Contact:

What about an automatic way for very close, opposing normal surfaces, the surfaces facing away from camera getting clipped out. There is currently no threshold whenever two opposing surfaces are very close, and apparently that creates the darkness etc, at least it appears. Whatever the approach, other renderers have solved this issue, I know Maxwell's forums have extensive discussions on this stuff, so the info is out there for sure. Vray suggests the overlap method, but it states that "the renderer must keep track of which surfaces have been intersected along a ray path, so that it can compute the correct index of refraction." here
Win 7 64bits / Intel i5 750 @ 2.67Ghz / Geforce GTX 470 / 8GB Ram / 3DS Max 2012 64bits
http://proupinworks.blogspot.com/
truerender
Licensed Customer
Posts: 100
Joined: Mon Mar 15, 2010 3:01 pm

What about an automatic way for very close, opposing normal surfaces, the surfaces facing away from camera getting clipped out. There is currently no threshold whenever two opposing surfaces are very close, and apparently that creates the darkness etc, at least it appears. Whatever the approach, other renderers have solved this issue, I know Maxwell's forums have extensive discussions on this stuff, so the info is out there for sure. Vray suggests the overlap method, but it states that "the renderer must keep track of which surfaces have been intersected along a ray path, so that it can compute the correct index of refraction." here
Do you see picture on the 1-t page of the topic? The problem is that it is not good method to for now. For me and for physics correction.
User avatar
Karba
OctaneRender Team
Posts: 2300
Joined: Sat Jun 11, 2011 9:05 am

Seem we just don't understand each other

here is a scene with render and reference

Image
Attachments
WineGlass.zip
(43.59 KiB) Downloaded 337 times
WineGlass.jpg
User avatar
Proupin
Licensed Customer
Posts: 735
Joined: Wed Mar 03, 2010 12:01 am
Location: Barcelona
Contact:

this Maxwell method doesn't work at all for animations!

truerender, what I don't see clear in the image is if 1+2 is the slight overlap method or there's a small gap between container and liquid. It looks like the latter.

Doing some tests I noticed something: the attached image shows the overlap method where the liquid has absorption (the slanted rectangle has the same material). Notice how in the overlap areas the material loses all it's absorption properties!! whereas from above it looks correct...

The second image shows the 'liquid enclosed with a slight gap' method. The material looks alright, but refractions are not ok.

I insist on the overlap method over the maxwell method because of animation.
Attachments
overlap.png
gap.png
Win 7 64bits / Intel i5 750 @ 2.67Ghz / Geforce GTX 470 / 8GB Ram / 3DS Max 2012 64bits
http://proupinworks.blogspot.com/
Tugpsx
Licensed Customer
Posts: 1151
Joined: Thu Feb 04, 2010 8:04 pm
Location: Chicago, IL
Contact:

Not up to your level, but where is there an IOR setting on the stand alone version.
Punch Bowl test
Punch Bowl test
IOR List
http://forums.cgsociety.org/archive/ind ... 13458.html
Win 11 64GB | NVIDIA RTX3060 12GB
truerender
Licensed Customer
Posts: 100
Joined: Mon Mar 15, 2010 3:01 pm

this Maxwell method doesn't work at all for animations!

truerender, what I don't see clear in the image is if 1+2 is the slight overlap method or there's a small gap between container and liquid. It looks like the latter.

Doing some tests I noticed something: the attached image shows the overlap method where the liquid has absorption (the slanted rectangle has the same material). Notice how in the overlap areas the material loses all it's absorption properties!! whereas from above it looks correct...

The second image shows the 'liquid enclosed with a slight gap' method. The material looks alright, but refractions are not ok.

I insist on the overlap method over the maxwell method because of animation.
In method 1 +2 have the intersection (overlap). So we are making the stick liquid the glass.
Other if we have a small gap that will be all right - but it's just two items are inserted into each other, but not the liquid adhered to the glass!
Animation is about the second question. I honestly do not care as long as it.
In your test, you can see for yourself.
Once you have very dark liquid.
Post Reply

Return to “Autodesk 3Ds Max”