POV-Ray : Newsgroups : povray.newusers : Simulating diamonds Server Time
27 Nov 2024 10:36:22 EST (-0500)
  Simulating diamonds (Message 1 to 5 of 5)  
From: J Kosina (Rebel^v^)
Subject: Simulating diamonds
Date: 12 Jan 2003 21:23:42
Message: <3e22232e@news.povray.org>
I need to simulate realistic light effects in diamond-shape structures.
I see no big trouble in making the shape, but i am no sure about
setting material parametres. Also I have heard that raytracing programs are
not good at stuff like this.


--
Rebel
http://zone.wz.cz
sku### [at] hotmailcom


Post a reply to this message

From: Ken
Subject: Re: Simulating diamonds
Date: 12 Jan 2003 21:33:58
Message: <3E22255A.9864645B@pacbell.net>
"J.Kosina (Rebel^v^)" wrote:
> 
> I need to simulate realistic light effects in diamond-shape structures.
> I see no big trouble in making the shape, but i am no sure about
> setting material parametres. Also I have heard that raytracing programs are
> not good at stuff like this.


Diamonds are actually quite easy to simulate in POV-Ray. Raytracing is the
BEST approach of all the 3D graphics program types. The material properties
are rather simple. You will need to make it transparent, set the refraction
index (ior) value to something greater than 2.0, and add a bit of reflection.
Using the photon feature will give even more realistic lighting results. You
should be able to find several examples of gem stones in the scene-files groups
on this server or search for diamonds in the subject line in the images group.

See also - http://jgrimbert.free.fr/pov/objet.html

I also have a diamond generating macro available here -
http://objects.povworld.org/cat/Geometrical_Objects/

-- 
Ken Tyler


Post a reply to this message

From: Christopher James Huff
Subject: Re: Simulating diamonds
Date: 12 Jan 2003 22:00:11
Message: <cjameshuff-2AE394.21494212012003@netplex.aussie.org>
In article <3e22232e@news.povray.org>,
 "J.Kosina \(Rebel^v^\)" <sku### [at] hotmailcom> wrote:

> I need to simulate realistic light effects in diamond-shape structures.
> I see no big trouble in making the shape, but i am no sure about
> setting material parametres. Also I have heard that raytracing programs are
> not good at stuff like this.

I'm not sure where you would have heard that. Raytracers excel at this 
type of thing, reflection and refraction are extremely difficult to do 
accurately in a scanline renderer and very easy in a raytracer. In fact, 
I think this is one of the uses of raytracing that actually predates 
computers, along with lens design.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Hirak
Subject: Re: Simulating diamonds
Date: 23 Jan 2003 01:25:03
Message: <web.3e2f8941d853ff6d19c789af0@news.povray.org>
Christopher James Huff wrote:
>In article <3e22232e[at]news.povray.org>,
> "J.Kosina \(Rebel^v^\)" <sku### [at] hotmailcom> wrote:
>
>> I need to simulate realistic light effects in diamond-shape structures.
>> I see no big trouble in making the shape, but i am no sure about
>> setting material parametres. Also I have heard that raytracing programs are
>> not good at stuff like this.

There is actually some truth to it. Diamond has a very high 'ior' (about
2.4) which causes many internal reflections. It is like once the light ray
enters the diamond, it stays there and only comes out after getting
reflected many times.
Many raytracers (including POV) decide that the light ray is lost after a
certain number of reflections. This is why some portion of your diamond may
look black. Of course, with POV Ray, this is no major problem. You just
have to tell POV that you want to trace for a long time - this is done by
(if I recall correctly) setting the 'max_trace_level' in 'global_settings'.
Hope this helped,
Hirak!


Post a reply to this message

From: kosinj2
Subject: Re: Simulating diamonds
Date: 8 Feb 2003 16:00:09
Message: <web.3e456ea2d853ff6d1f0592d80@news.povray.org>
Thanks, this one realy helped. Other thing is that color dispersion is verry
important in diamonds, and Povray supports this from v.3.5, fortunately:-)
Josef

Hirak wrote:
>Christopher James Huff wrote:
>>In article <3e22232e[at]news.povray.org>,
>> "J.Kosina \(Rebel^v^\)" <sku### [at] hotmailcom> wrote:
>>
>>> I need to simulate realistic light effects in diamond-shape structures.
>>> I see no big trouble in making the shape, but i am no sure about
>>> setting material parametres. Also I have heard that raytracing programs are
>>> not good at stuff like this.
>
>There is actually some truth to it. Diamond has a very high 'ior' (about
>2.4) which causes many internal reflections. It is like once the light ray
>enters the diamond, it stays there and only comes out after getting
>reflected many times.
>Many raytracers (including POV) decide that the light ray is lost after a
>certain number of reflections. This is why some portion of your diamond may
>look black. Of course, with POV Ray, this is no major problem. You just
>have to tell POV that you want to trace for a long time - this is done by
>(if I recall correctly) setting the 'max_trace_level' in 'global_settings'.
>Hope this helped,
>Hirak!
>


Post a reply to this message

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