POV-Ray : Newsgroups : povray.newusers : Creating a rotating gem : Re: Creating a rotating gem Server Time
3 Jul 2024 00:35:50 EDT (-0400)
  Re: Creating a rotating gem  
From: Alain
Date: 10 Dec 2010 12:41:42
Message: <4d026656@news.povray.org>

> Hi all,
>
> I am trying to make myself a rotating gem. I found some sample code from a
> different ray tracer program and proceeded to try and "import" it into POV-Ray.
> However, the output that I am getting is far from the intended output and I am
> at a complete loss as to what I need to do to fix it.
>
> I have included links to 4 images. The GIF file is what I am trying to achieve.
> Stone1.bmp, Stone2.bmp and Stone3.bmp and the outputs that I can get by
> modifying the specular and roughness flags but I cant get the full clarity
> throughout the picture.
>
> The picture is made by using a mesh of 48 triangles, all with the same texture
> and the mesh itself has an interior specifying the IoR and a couple of other
> flags.
>
> Can anyone suggest what I might need to do in order to get this looking right?
> (I would much prefer (detailed) pointers to answers as an answer would defeat
> the purpose of learning)
>
>
> Thanks in advance
> Bidski
>
> http://i288.photobucket.com/albums/ll167/Bidskii/diamondrot.gif
> http://i288.photobucket.com/albums/ll167/Bidskii/stone1.jpg
> http://i288.photobucket.com/albums/ll167/Bidskii/stone2.jpg
> http://i288.photobucket.com/albums/ll167/Bidskii/stone3.jpg
>
>
>

Stone1 is the closest to your intended result.
You may need to change your light's position to get optimum result.
Your camera may not be located correctly.
Any gem have an ior, diamond's ior is close to 2.5.
A gem also have variable reflection. That reflection follows the fresnel 
model.
There are some specular highlights.
You need some environment. It can be as simple or complicated as you want.
You may need to adjust max_trace_level. 5 is probably way to small.
Some times, you want to see the light_source... it looks_like{...}
Very low to zero ambient and low diffuse value.
Try to add some dispersion. Stay just a little over 1.
Take a look at glass.inc to get some ideas.
When things are looking good, please use anti aliasing.


Alain


Post a reply to this message

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