POV-Ray : Newsgroups : povray.binaries.images : Glass case work Server Time
17 Nov 2024 16:24:34 EST (-0500)
  Glass case work (Message 1 to 9 of 9)  
From: Edouard
Subject: Glass case work
Date: 9 Feb 2011 15:15:00
Message: <web.4d52f538c7f0dffaf028a4cf0@news.povray.org>
Just playing around with making a glass display case. Two simple macros to
create the glass panes and the fasteners.

Cheers,
Edouard.


Post a reply to this message


Attachments:
Download 'glass_box_work.jpg' (109 KB)

Preview of image 'glass_box_work.jpg'
glass_box_work.jpg


 

From: Samuel Benge
Subject: Re: Glass case work
Date: 9 Feb 2011 22:15:01
Message: <web.4d535821ff0562b5312f6b340@news.povray.org>
"Edouard" <pov### [at] edouardinfo> wrote:
> Just playing around with making a glass display case. Two simple macros to
> create the glass panes and the fasteners.

It looks like glass, to be sure. Did you use a surface normal for the pane-ends?


Post a reply to this message

From: Edouard
Subject: Re: Glass case work
Date: 9 Feb 2011 22:35:00
Message: <web.4d535c94ff0562b5f028a4cf0@news.povray.org>
"Samuel Benge" <stb### [at] hotmailcom> wrote:
> "Edouard" <pov### [at] edouardinfo> wrote:
> > Just playing around with making a glass display case. Two simple macros to
> > create the glass panes and the fasteners.
>
> It looks like glass, to be sure. Did you use a surface normal for the pane-ends?

Yeah - each pane's edge is cut via CSG (actually with a double bevel), and I
apply an averaged normal to the difference object, so the cut is both rough (via
micro normals) and wavy (via a stretched bozo).

I'm using absorbing media to colour the glass, and I ended up using Robert
McGregor's dielectric macros from
http://news.povray.org/povray.binaries.images/thread/%3C4d524dfb%241%40news.povray.org%3E/
for the reflectance, etc.

Attached is another angle.

Cheers,
Edouard.


Post a reply to this message


Attachments:
Download 'glass_box_work2.jpg' (94 KB)

Preview of image 'glass_box_work2.jpg'
glass_box_work2.jpg


 

From: sbakke
Subject: Re: Glass case work
Date: 15 Feb 2011 15:55:01
Message: <web.4d5ae792ff0562b5854bc6260@news.povray.org>
Hi

Impressive render! I'm slowly getting up to speed with POV-Ray and was wondering
how were you able to render the text so cleanly? Is that an image map? I've
tried both native text and image maps but usually end up with grainy/rough
edges.

Would you mind sharing your .pov file?

Best Regards,
Steve


Post a reply to this message

From: Edouard
Subject: Re: Glass case work
Date: 15 Feb 2011 17:55:01
Message: <web.4d5b031cff0562b56f92b1bf0@news.povray.org>
"sbakke" <nomail@nomail> wrote:
> Hi
>
> Impressive render! I'm slowly getting up to speed with POV-Ray and was wondering
> how were you able to render the text so cleanly? Is that an image map? I've
> tried both native text and image maps but usually end up with grainy/rough
> edges.
>
> Would you mind sharing your .pov file?
>
> Best Regards,
> Steve

Thank-you!

Just an image map - the only trick is to make it high rez. The floor is a
repeating 1024x1024 PNG.

I'll try to post the POV file once I get it al cleaned up.

Cheers,
Edouard.


Post a reply to this message

From: sbakke
Subject: Re: Glass case work
Date: 16 Feb 2011 15:35:00
Message: <web.4d5c33f9ff0562b5854bc6260@news.povray.org>
> Thank-you!
>
> Just an image map - the only trick is to make it high rez. The floor is a
> repeating 1024x1024 PNG.
>
> I'll try to post the POV file once I get it al cleaned up.
>
> Cheers,
> Edouard.

Thanks!

Steve


Post a reply to this message

From: gslshbs
Subject: Re: Glass case work
Date: 26 Oct 2012 08:15:01
Message: <web.508a7dc7ff0562b54b92b6540@news.povray.org>
"sbakke" <nomail@nomail> wrote:
> > Thank-you!
> >
> > Just an image map - the only trick is to make it high rez. The floor is a
> > repeating 1024x1024 PNG.
> >
> > I'll try to post the POV file once I get it al cleaned up.
> >
> > Cheers,
> > Edouard.
>
> Thanks!
>
> Steve



I am working on rendering a glass box and have met some problems. Would you mind
sharing your code with me? Thanks.


Post a reply to this message

From: Alain
Subject: Re: Glass case work
Date: 27 Oct 2012 14:57:13
Message: <508c2e89$1@news.povray.org>

> "sbakke" <nomail@nomail> wrote:
>>> Thank-you!
>>>
>>> Just an image map - the only trick is to make it high rez. The floor is a
>>> repeating 1024x1024 PNG.
>>>
>>> I'll try to post the POV file once I get it al cleaned up.
>>>
>>> Cheers,
>>> Edouard.
>>
>> Thanks!
>>
>> Steve
>
>
>
> I am working on rendering a glass box and have met some problems. Would you mind
> sharing your code with me? Thanks.
>

For the texture, it's normaly beter to start with a fully transparent 
pigment like rgbt 1.

You absolutely need an interior statement. It have to set the ior for 
your glass. Common glass have an ior around 1.5, but it can range from 

presence of disolved materials will change it. Most gemms have ior in 
the 1.7 to 2.5 range.
Adding some dispersion also help, but will increase the rendering time.
Use fade_color, fade_distance and fade_power 1 to provide any 
colouration needed.
An interior block for a glass object can look like this:

interior{
ior 1.5  // Typical or default glass ior
dispersion 1.01 // Keep larger than but close to 1.
fade_color<0.7, 0.98, 0.8> // slightly greenish glass
fade_distance 1
// adjust as needed. Small increase the colour intensity.
fade_power 1 // The only realy realistic value in this case
}

A very important aspect is the reflectiveness of the glass. Your finish 
should have:
finish{reflection{1 fresnel} conserve_energy}
This turn on the fresnel reflection going from almost zero to total 
reflectiveness.
Also adding some relatively tight specular of phong highlight can 
improve the aspect. It's often beter to use a specular or phong value in 
the 0.5 to 0.7 range, but you are not limited to that range.
You can use both specular and phong.

If your box is made of several parts, you should use merge instead of 
union to remove the internal surfaces.
You need to be carefull about coincident surfaces everywhere. They WILL 
cause problem if you are not carefull.

In the global_settings{...} section, you need to increase 
max_trace_level as the default of 5 is normaly conciderably to low.



Alain


Post a reply to this message

From: clipka
Subject: Re: Glass case work
Date: 27 Oct 2012 15:53:24
Message: <508c3bb4$1@news.povray.org>
Am 27.10.2012 20:58, schrieb Alain:

> Use fade_color, fade_distance and fade_power 1 to provide any
> colouration needed.
> An interior block for a glass object can look like this:
>
> interior{
> ior 1.5  // Typical or default glass ior
> dispersion 1.01 // Keep larger than but close to 1.
> fade_color<0.7, 0.98, 0.8> // slightly greenish glass
> fade_distance 1
> // adjust as needed. Small increase the colour intensity.
> fade_power 1 // The only realy realistic value in this case

Actually, no - realistic fading for interiors is exponential rather than 
linear; specify a fade_power value of 1000 or greater (1001 is often 
used, but it doesn't really matter), POV-Ray will then enable 
exponential fading.

> A very important aspect is the reflectiveness of the glass. Your finish
> should have:
> finish{reflection{1 fresnel} conserve_energy}
> This turn on the fresnel reflection going from almost zero to total
> reflectiveness.
> Also adding some relatively tight specular of phong highlight can
> improve the aspect. It's often beter to use a specular or phong value in
> the 0.5 to 0.7 range, but you are not limited to that range.
> You can use both specular and phong.

Actually the specular or phong value range to use depends on the 
tightness of the highlight (phong_size or roughness), unless you use the 
new "albedo" keyword introduced in POV-Ray 3.7.


Post a reply to this message

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