Liquid inside a bottle

Announcements, requests and support regarding the Blender Indigo export script
grndvilhockey
Posts: 11
Joined: Wed May 06, 2009 5:04 am

Liquid inside a bottle

Post by grndvilhockey » Wed May 06, 2009 5:13 am

Hi everyone. I am fairly new when it comes to using Indigo. I recently decided to make of model the lava lamp that i have in my room. the glass and everything turned out fine but i ran into a problem when it came to the liquid inside of the glass bottle. Every time that i try I to render the liquid inside of the glass the liquid turns black.

I followed the instructions for this in the manual but it still renders the liquid black. I have been all over the forums here but i have not found anything that has helped.

If anybody has any suggestions they would be greatly appreciated.

I will attach an image so that you can see what i am talking about.
Attachments
im1241498757.png
this is after 9 hours of rendering
im1241498757.png (706.09 KiB) Viewed 5230 times

User avatar
SmartDen
Developer
Posts: 999
Joined: Fri Oct 13, 2006 10:58 pm
Location: Canary Islands
Contact:

Re: Liquid inside a bottle

Post by SmartDen » Wed May 06, 2009 7:57 am

a couple of wireframe screenshots can be helpfull and material settings too. from glas and from liquid.

And... read my signature
Check normals, dude!

Image
Image

User avatar
pixie
Indigo 100
Posts: 2345
Joined: Sat Dec 29, 2007 4:54 am
Location: Away from paradise
3D Software: Cinema 4D
Contact:

Re: Liquid inside a bottle

Post by pixie » Wed May 06, 2009 7:59 am

Check the precedence of the mediums (glass, water), liquids having a lower precedence

grndvilhockey
Posts: 11
Joined: Wed May 06, 2009 5:04 am

Re: Liquid inside a bottle

Post by grndvilhockey » Wed May 06, 2009 10:00 am

I have checked rechecked and triple check the normals every time I try a render just to be sure, so I know it isn't the normals. and I set the precedence of the glass and liquid to what i found in some of the preset materials in the database. So I'm pretty sure it isn't that either.
Attachments
mesh screen shot.jpg
Here is a screen shot of the meshes. It is hard to see but the mesh of the liquid is intersecting the mesh of the glass. Like i said I followed the instructions from the manual.
mesh screen shot.jpg (67.98 KiB) Viewed 5160 times

grndvilhockey
Posts: 11
Joined: Wed May 06, 2009 5:04 am

Re: Liquid inside a bottle

Post by grndvilhockey » Wed May 06, 2009 10:02 am

And here are the material settings.
Attachments
liquid material.jpg
And here is the material setting for the liquid.
liquid material.jpg (161.64 KiB) Viewed 5167 times
glass material.jpg
Here is the material settings for the glass.
glass material.jpg (152.27 KiB) Viewed 5159 times

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Re: Liquid inside a bottle

Post by Borgleader » Wed May 06, 2009 12:08 pm

From what i can see...your glass had no thickness or rather...its full. You seem not to have modeled the "interior" of it...making it one huge chunk of glass, and there does not seem to be any gap in size between the glass and the liquid. The precedence looks about right.
benn hired a mercenary to kill my sig...

grndvilhockey
Posts: 11
Joined: Wed May 06, 2009 5:04 am

Re: Liquid inside a bottle

Post by grndvilhockey » Wed May 06, 2009 12:17 pm

It is hard to see in the first image of the meshes. But I did model the glass as with two layers. the thickness of the glass is pretty much even all the way around until you get to the bottom, which is thicker. The liquid is about half way between the layers of the glass mesh. And i made sure that all of the meshes are closed already.
Attachments
mesh screen shot.jpg
Here is a little bit of a better picture.
mesh screen shot.jpg (218.31 KiB) Viewed 5139 times

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

Re: Liquid inside a bottle

Post by OnoSendai » Wed May 06, 2009 12:21 pm

Looks correct, but how thick is the glass? (how many mm?)

grndvilhockey
Posts: 11
Joined: Wed May 06, 2009 5:04 am

Re: Liquid inside a bottle

Post by grndvilhockey » Wed May 06, 2009 12:34 pm

I don't know. i don't know how to do measurements in blender. how would i find that out?

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Re: Liquid inside a bottle

Post by Borgleader » Wed May 06, 2009 1:38 pm

edge length

look here
benn hired a mercenary to kill my sig...

grndvilhockey
Posts: 11
Joined: Wed May 06, 2009 5:04 am

Re: Liquid inside a bottle

Post by grndvilhockey » Thu May 07, 2009 11:19 am

The glass is 6 millimeters thick. that is if the measurements in blender are in meters. the edges length said 0.006.

User avatar
pixie
Indigo 100
Posts: 2345
Joined: Sat Dec 29, 2007 4:54 am
Location: Away from paradise
3D Software: Cinema 4D
Contact:

Re: Liquid inside a bottle

Post by pixie » Thu May 07, 2009 11:21 am

grndvilhockey wrote:The glass is 6 millimeters thick. that is if the measurements in blender are in meters. the edges length said 0.006.
Quite Big I would say... I wonder the diameter of the liquid...

grndvilhockey
Posts: 11
Joined: Wed May 06, 2009 5:04 am

Re: Liquid inside a bottle

Post by grndvilhockey » Thu May 07, 2009 12:15 pm

Actually i think i might have figured it out. I did 2 things, i made that glass thicker, and i set the glass precedence up to 10 and kept the liquid at 5. I'm pretty sure it was the precedence that made the difference.

I am rendering an image right now and ill see how it turns out.

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Re: Liquid inside a bottle

Post by Borgleader » Thu May 07, 2009 3:14 pm

grndvilhockey wrote:Actually i think i might have figured it out. I did 2 things, i made that glass thicker, and i set the glass precedence up to 10 and kept the liquid at 5. I'm pretty sure it was the precedence that made the difference.

I am rendering an image right now and ill see how it turns out.
The precedence shouldnt have changed anything, it'll cause problems only if its the same value for two different materials other than that it shouldnt.
benn hired a mercenary to kill my sig...

grndvilhockey
Posts: 11
Joined: Wed May 06, 2009 5:04 am

Re: Liquid inside a bottle

Post by grndvilhockey » Fri May 08, 2009 11:33 am

Ok so the the problem with the liquid rendering black is fixed. It doesn't turn out horrible, but now i can't seem to get the liquid to be the right color. It keeps turning out purple when it should be blue. I tried to change the SSS to be the color that i wanted instead of uniform but it turned out looking really strange.
Attachments
im1241721272.png
This is with the SSS as RGB instead of uniform
im1241721272.png (819.48 KiB) Viewed 4950 times
im1241657153.png
im1241657153.png (606.92 KiB) Viewed 4945 times

Post Reply
16 posts

Who is online

Users browsing this forum: Ahrefs [Bot] and 5 guests