Glass test

General questions about Indigo, the scene format, rendering etc...
User avatar
OnoSendai
Developer
Posts: 6243
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Glass test

Post by OnoSendai » Tue Nov 07, 2006 9:26 pm

Ok, this is a test for rendering realistic water.
Depending on the results, this should serve as a guide for achieving realistic renders of glasses containing liquids in future versions of indigo.
Below is a diagram with some associated requirements for the model.

Image

Requirements:

a) need sufficient polygonisation of the curve here because sharp edges cause shading normal artifacts. For example 10-20 points may be needed on piecewise curve.

b)distance should be > 0.2mm

c) distance should be > 0.2mm.

Note that the distance between the glass and water surfaces in the walls of the glass needs only to be greater than 0.2mm, it should probably be about 1mm, depending on the width of the glass

d) distance between glass and z=0 plane should be in range [0.2mm, 1mm]

e) meniscus should be modelled

Addtionally:

f) all geometric (given by tri winding order) and smoothed normals should be as labelled.

g) total number of tris is expected to be in range 10000-60000

h) surfaces should be two-manifold and closed (not self-intersecting).

i) water and glass should be assigned different materials.

j) part of the surface of the water component should lie inside the glass as shown.

k) The model should be created in units of meters.
Last edited by OnoSendai on Tue Nov 07, 2006 10:45 pm, edited 2 times in total.

User avatar
filippo
Posts: 658
Joined: Sat Aug 05, 2006 8:46 pm
Location: italia(senigallia-an)
Contact:

CAN i TRY?

Post by filippo » Tue Nov 07, 2006 9:55 pm

CAN I TRY?

posso provare?
2x Xeon quad core ghz 2.66(8 core)+4g ram+quadro fx
2 x Xeon Quad 5540 (16 core)+16GB ram+ Nvidia GTX 295 1800mb

User avatar
OnoSendai
Developer
Posts: 6243
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Tue Nov 07, 2006 9:59 pm

Yes, you can try modelling it if u want... in fact that would be awesome. Kosmo is already having a go tho...
Perhaps you could do the wine glass version?

No rush.. the code to render using this technique hasn't been written yet :)

User avatar
Kosmokrator
Posts: 1141
Joined: Sat Jul 29, 2006 11:52 am
Location: Greece-Athens

Post by Kosmokrator » Tue Nov 07, 2006 10:28 pm

ok nick here is my wireframe....i try to keep your spec..
the triangle counter indicates 13.000...later i will post and full wireframe..

Image
1)Core i7 965XE stock CLOCK ,PSU:CHIEFTEC 850W
M/B ASUS P6T DELUXE,WATERCOOLING ZALMAN RESERATOR 2
MEMORY:6GB CORRSAIR @1600,Ati HD 4870x2,
MONITOR:LG 1950SQ,CASE:THERMALTAKE SOPRANO

lego
Posts: 99
Joined: Sat Oct 14, 2006 7:29 am

Post by lego » Tue Nov 07, 2006 10:29 pm

I don't get the distance requirements...
In blender everything is relative, so how do I know if they are under or above 0.2mm?
Is that an absolute value, or are you saying that there should be 0.2mm distance in relation to a glass of 10cm (for example) :?

User avatar
OnoSendai
Developer
Posts: 6243
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Tue Nov 07, 2006 10:34 pm

I added a condition k): units should be in meters.
the 0.2mm condition is there to keep the model robust against the small 'epsilon' distance I add to ray origins to avoid self intersections.
(which is currently 0.1mm IIRC)

kosmo: looks good.
Feel free to alter the cross section of the glass from my diagram to make it more realistic if needed.
Note that the distance between the glass and water surfaces in the walls of the glass needs only to be greater than 0.2mm, it should probably be about 1mm, depending on the width of the glass

User avatar
Kosmokrator
Posts: 1141
Joined: Sat Jul 29, 2006 11:52 am
Location: Greece-Athens

Post by Kosmokrator » Tue Nov 07, 2006 10:39 pm

"Note that the distance between the glass and water surfaces in the walls of the glass needs only to be greater than 0.2mm, it should probably be about 1mm, depending on the width of the glass"

aahhh..thats ok...i will fix...and i make some test with real materials...stay tuned..:)
1)Core i7 965XE stock CLOCK ,PSU:CHIEFTEC 850W
M/B ASUS P6T DELUXE,WATERCOOLING ZALMAN RESERATOR 2
MEMORY:6GB CORRSAIR @1600,Ati HD 4870x2,
MONITOR:LG 1950SQ,CASE:THERMALTAKE SOPRANO

User avatar
OnoSendai
Developer
Posts: 6243
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Tue Nov 07, 2006 10:42 pm

Kosmokrator wrote:.and i make some test with real materials...stay tuned..:)
Ok, but bear in mind that this technique will look rubbish in the current version of indigo. Well the glass by itself may look alright :)

zuegs
Posts: 380
Joined: Tue Jun 27, 2006 5:46 pm
Location: switzerland

Post by zuegs » Tue Nov 07, 2006 10:49 pm

I've done some glasses some time ago, and they look quiet good i think :wink:
I had the liquid completly inside the glass (no overlaping between glass and liquid), is there a physical error in my render so?

Image

greets zuegs

User avatar
OnoSendai
Developer
Posts: 6243
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Tue Nov 07, 2006 10:57 pm

Yeah that looks pretty good Zuegs.
Yes, there is some error because the water-glass interface is not yet handled entirely correctly. That's what i'm working on in these tests.

User avatar
Kosmokrator
Posts: 1141
Joined: Sat Jul 29, 2006 11:52 am
Location: Greece-Athens

Post by Kosmokrator » Tue Nov 07, 2006 11:44 pm

ok Ono i make a quik render of 35minutes...here is the results...
lighting is exr map
glass ior 1.5
water ior 1.33
plane difuse mat..

what u think?

Done 79310000.00000 mutations (258.17057 mutations per pixel)
mutations_per_sec: 37105.61932 (26.95010 micro-secs / mutation)


Image
1)Core i7 965XE stock CLOCK ,PSU:CHIEFTEC 850W
M/B ASUS P6T DELUXE,WATERCOOLING ZALMAN RESERATOR 2
MEMORY:6GB CORRSAIR @1600,Ati HD 4870x2,
MONITOR:LG 1950SQ,CASE:THERMALTAKE SOPRANO

IanC
Posts: 147
Joined: Thu Aug 24, 2006 4:46 am

Post by IanC » Wed Nov 08, 2006 1:13 am

I'll try the new method, just to see how it works on current indigos.

This is the current method (the posted maxwell one):
Image

I increased the contrast, lost a little detail, but I quite liked it :).

I'll knock up another version later.

Look forward to this update, Nick!

Phil
Posts: 154
Joined: Mon Nov 06, 2006 2:22 am
Location: St. Wendel, Germany

Post by Phil » Wed Nov 08, 2006 3:38 am

Waouh, the glass looks really nice here.

here are my test:

The glass:

The gap is exactly 0,2 mm betwenn the 2 material

Image

The first probe, but the model is in millimeter and has about 120000 triangles

Image

The second test, now the model is in meters and has about 60000 triangles
Image

I found the difference big in the material, (it should be wine) what do you think about this?
The material I used are the same on both pictures.

Could someone give me some gould value for rendering wine?

Another question:
When I look at a glass of wine I see a grey shadow but red caustics, is this
possible to render with indigo? :)

User avatar
Kosmokrator
Posts: 1141
Joined: Sat Jul 29, 2006 11:52 am
Location: Greece-Athens

Post by Kosmokrator » Wed Nov 08, 2006 4:05 am

i have a problem with my glass...i dont know if its exporter bug or my modeling bug or indigo bug...the left glass is green and the right red!the red glass is empty the green is filled with water!tha water rendered green...why?ono?some one explanation?

Image
1)Core i7 965XE stock CLOCK ,PSU:CHIEFTEC 850W
M/B ASUS P6T DELUXE,WATERCOOLING ZALMAN RESERATOR 2
MEMORY:6GB CORRSAIR @1600,Ati HD 4870x2,
MONITOR:LG 1950SQ,CASE:THERMALTAKE SOPRANO

User avatar
afecelis
Posts: 749
Joined: Tue Aug 01, 2006 4:14 am
Location: Colombia
3D Software: Blender
Contact:

Post by afecelis » Wed Nov 08, 2006 4:20 am

It's phisically correct. Remember this shot?
http://afecelis.gdlib.net/Indigo/sala03.jpg
in this discussion:
http://www.indigorenderer.com/joomla/fo ... .php?t=585

In the previous shot, I changed the color of the glass and it imediately tinted the whole interior. Same is happening in your scene. The glass is transmitting its color to the water. :wink:
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d

Post Reply
57 posts

Who is online

Users browsing this forum: No registered users and 5 guests