POV-Ray : Newsgroups : povray.binaries.images : Filling a bottle with fluid Server Time
8 Nov 2024 12:33:25 EST (-0500)
  Filling a bottle with fluid (Message 1 to 7 of 7)  
From: Thomas de Groot
Subject: Filling a bottle with fluid
Date: 22 Aug 2012 04:14:24
Message: <503494e0@news.povray.org>
To Joe (p.general)

This is what happens when you push the fluid through the bottle wall.

Thomas


Post a reply to this message


Attachments:
Download 'fluid_test.png' (274 KB)

Preview of image 'fluid_test.png'
fluid_test.png


 

From: Le Forgeron
Subject: Re: Filling a bottle with fluid
Date: 22 Aug 2012 06:15:15
Message: <5034b133$1@news.povray.org>
Le 22/08/2012 10:14, Thomas de Groot a écrit :
> To Joe (p.general)
> 
> This is what happens when you push the fluid through the bottle wall.
> 
> Thomas

I'm sure I can correct it, with a different approach.
can you provide the scene file, please ?


Post a reply to this message

From: Thomas de Groot
Subject: Re: Filling a bottle with fluid
Date: 22 Aug 2012 07:29:17
Message: <5034c28d$1@news.povray.org>
On 22-8-2012 12:15, Le_Forgeron wrote:
>
> I'm sure I can correct it, with a different approach.
> can you provide the scene file, please ?
>
>
I'll be delighted :-)

Note that I only tried to see what happened in case the fluid 
intersected the bottle thickness. I have not tried your previous 
suggestions.

The only important code used is this. I experimented by switching on or 
off the different hollow terms. Only with the fluid scale commented out 
is the scene /realistic/.

//start code
union {
//bottle:
difference {
   box {-1, 1 hollow}
   box {-0.8, <0.8, 1.1, 0.8> hollow}
   material {
     texture {pigment {rgbt 1}}
     interior {
       ior 1.5
       media {samples 100 scattering {1, srgb <0, 1, 1>*0.5}}
     }
   }
}

//fluid:
box {
   -0.799, <0.799, 0.5, 0.799> scale 1.1
   hollow
   material {
     texture {pigment {rgbt 1}}
     interior {
       ior 1.3
       media {samples 100 scattering {1, srgb <1,0,0>}}
     }
   }
}

rotate 35*y
}
//end code

Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Filling a bottle with fluid
Date: 22 Aug 2012 07:39:37
Message: <5034c4f9@news.povray.org>
On 22-8-2012 10:14, Thomas de Groot wrote:
> To Joe (p.general)
>
> This is what happens when you push the fluid through the bottle wall.
>
> Thomas

With the same code, this would be the object with the fluid just inside 
the glass. Additionally I made the glass a bit more opaque (transmit 0.9).

Thomas


Post a reply to this message


Attachments:
Download 'fluid_test.png' (250 KB)

Preview of image 'fluid_test.png'
fluid_test.png


 

From: Le Forgeron
Subject: Re: Filling a bottle with fluid
Date: 22 Aug 2012 07:59:11
Message: <5034c98f$1@news.povray.org>
Le 22/08/2012 13:29, Thomas de Groot a écrit :
> I'll be delighted :-)
> 
> Note that I only tried to see what happened in case the fluid
> intersected the bottle thickness. I have not tried your previous
> suggestions.

That's what I intend to do.

> 
> The only important code used is this. I experimented by switching on or
> off the different hollow terms. Only with the fluid scale commented out
> is the scene /realistic/.

I was rather interested in the environment setting (so as to provide at
the end a very similar picture).

Any chance to get full scene in p.b.scene-files ?


Post a reply to this message

From: Thomas de Groot
Subject: Re: Filling a bottle with fluid
Date: 22 Aug 2012 08:27:51
Message: <5034d047@news.povray.org>
On 22-8-2012 13:59, Le_Forgeron wrote:
> I was rather interested in the environment setting (so as to provide at
> the end a very similar picture).
>
> Any chance to get full scene in p.b.scene-files ?
>

Can do.

Thomas


Post a reply to this message

From: Le Forgeron
Subject: Re: Filling a bottle with fluid
Date: 22 Aug 2012 17:50:11
Message: <50355413@news.povray.org>
Le 22/08/2012 10:14, Thomas de Groot nous fit lire :
> To Joe (p.general)
> 
> This is what happens when you push the fluid through the bottle wall.
> 
> Thomas

No need to have more than one surface per boundary, illustrated.

The fine eyes will spot the excess of liquid in the corners (here on
purpose, scene in p.b.scene-files, to exaggerate the overlap of air &
liquid)


Post a reply to this message


Attachments:
Download 'fluid_test2.png' (286 KB)

Preview of image 'fluid_test2.png'
fluid_test2.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.