POV-Ray : Newsgroups : povray.newusers : Creating a rotating gem Server Time
3 Jul 2024 00:39:37 EDT (-0400)
  Creating a rotating gem (Message 11 to 20 of 23)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 3 Messages >>>
From: Bidski
Subject: Re: Creating a rotating gem
Date: 11 Dec 2010 00:30:01
Message: <web.4d030bd61e34407486c9e330@news.povray.org>
Jim Holsenback <jho### [at] povrayorg> wrote:
> On 12/11/2010 12:00 AM, Jim Holsenback wrote:
> thought of this picture after posting:
>
> http://wiki.povray.org/content/File:TutImgRaytracing.gif
>
> thought it might give you some ideas of where you need to be headed with
> your setup

OMG!!!! When something tells you to that it wants comma-seperated values for its
vectors, be damn sure that you put them commas in!

I didnt realise that the program that I got the basis for this gem from doesn't
use comma-seperated values in its vectors, so none of my trangle vectors had any
commas and that was the root of all my problems!

Thank you all anyways for all of your help.

I guess I just need to tweak the texture now?

http://i288.photobucket.com/albums/ll167/Bidskii/stone5.jpg

Regards
Bidski


Post a reply to this message

From: Slime
Subject: Re: Creating a rotating gem
Date: 11 Dec 2010 01:00:27
Message: <4d03137b$1@news.povray.org>
> I guess I just need to tweak the texture now?

As a few people have said, you should really put a background 
environment on your image - even if you don't want it in the final 
product - because it will show how much more potential this image has. 
An object with so much reflection and refraction is begging for it. Just 
slap this sky_sphere on as a starting point and see what you think. If 
you like it, there are ways to keep the background black but retain it 
in the reflection and refraction of the object.

sky_sphere
{
	pigment
	{
		gradient y
		color_map
		{
			[0 rgb <0, 0, .1>]
			[1 rgb <.4, .9, 1>]
		}
		scale 2
		translate -y
	}
}



  - Slime


Post a reply to this message

From: Bidski
Subject: Re: Creating a rotating gem
Date: 11 Dec 2010 01:35:03
Message: <web.4d031a6a1e34407486c9e330@news.povray.org>
Slime <pov### [at] slimelandcom> wrote:
> > I guess I just need to tweak the texture now?
>
> As a few people have said, you should really put a background
> environment on your image - even if you don't want it in the final
> product - because it will show how much more potential this image has.
> An object with so much reflection and refraction is begging for it. Just
> slap this sky_sphere on as a starting point and see what you think. If
> you like it, there are ways to keep the background black but retain it
> in the reflection and refraction of the object.

I intend to use this picture in place where it needs to have either a black or a
transparent background (can POV-Ray do transparent backgrounds?). I also intend
to use some different textures to make different gems (diamonds, emeralds,
sapphires, rubies, etc). Because of this I think its best to just keep the black
background.

What do people think about the overall look of this gem (stone5)?

Regards
Bidski


Post a reply to this message

From: Bidski
Subject: Re: Creating a rotating gem
Date: 11 Dec 2010 01:45:01
Message: <web.4d031dd61e34407486c9e330@news.povray.org>
Or perhals this one? Although the bottom point of this one appears to be
shrowded in darkess .... hmmmm.

http://i288.photobucket.com/albums/ll167/Bidskii/stone6.jpg

Regards
Bidski


Post a reply to this message

From: clipka
Subject: Re: Creating a rotating gem
Date: 11 Dec 2010 15:18:25
Message: <4d03dc91@news.povray.org>
Am 11.12.2010 07:44, schrieb Bidski:
> Or perhals this one? Although the bottom point of this one appears to be
> shrowded in darkess .... hmmmm.

But you're definitely getting somewhere!


Post a reply to this message

From: Bidski
Subject: Re: Creating a rotating gem
Date: 11 Dec 2010 19:15:00
Message: <web.4d0413861e34407486c9e330@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 11.12.2010 07:44, schrieb Bidski:
> > Or perhals this one? Although the bottom point of this one appears to be
> > shrowded in darkess .... hmmmm.
>
> But you're definitely getting somewhere!

Final product ..... 4 hours of rendering 120 frames with anti-aliasing. Im
surprised windows didnt die from the effort.

Regards
Bidski

http://i288.photobucket.com/albums/ll167/Bidskii/stone2-1.gif


Post a reply to this message

From: Alain
Subject: Re: Creating a rotating gem
Date: 11 Dec 2010 19:18:42
Message: <4d0414e2$1@news.povray.org>

You can apply the material to the whole thing instead of to each triangle.

> Here is the texture and material that I am using for all of the triangles and
> the mesh (material for mesh, texture for triangles).
> #declare Diamond_Tex = texture
> {
>    pigment { rgbf<1, 1, 1, 1>  }
OK
>
>    finish
>    {
>      ambient 0
>      diffuse 0
>      brilliance 0.5
>      specular 0.9
>      roughness 0.05
I'd use a much smaller roughness value.
>
>      reflection
>      {
>        colour rgb<1, 1, 1>
>        0.1
>        fresnel on
>      }
This reflection is maximum at a perpendicular angle and minimum at a 
grazing angle. You don't need the colour keyword here. "on" is not 
needed after fresnel.

Proposed change:
reflection{0.1 1 fresnel}
Low perpendicular to strong grazing reflection obeying the fresnel model.

>
>      conserve_energy
OK
>    }
> }
>
> #declare Diamond_Mat = material
> {
>    texture { Diamond_Tex }
>
>    interior
>    {
>      ior 2.417
OK
>      caustics 1
Should not use, it can give unnatural results.
>      dispersion Diamond_Dispersion     // Defined in consts.inc
>      dispersion_samples 7
>      fade_power 2                      // Used because POV-Ray complained about
> me using refraction in the finish, said I should use fade_power and
> fade_distance instead.
>      fade_distance 1
>      fade_colour colour White
>    }
> }

For the interior fade_power, a value of 2 is NOT correct. Use 1 (linear 
fading) or 1001 (exponential fading).
Fade_colour White is mostly a do nothing.
In your case, you can remove all fade_ things.

refraction in the finish is a left over from old versions. It's not 
needed as refraction appens automaticaly whenever you have an ior 
different than 1.

Also, total internal reflection appens automaticaly.

>
> I added a sphere of radius 5 centered at the origin as an evironment (just added
> it) to no effect, I still get the same results as I did. I coloured it white. If
> I use rgb<1, 1, 1>  with a radius of 10 everything vomes up grey, with a radius
> of 5 the whole screen is a complete white-wash, using rgbf/t<1, 1, 1, 1>  gives
> me the same results as Stone1.bmp (both with a radius of 5 or 10). If I specify
> no colour the whole picture is black (can't see the gem at all). Am I doing the
> right thing here for an environment?
Is your light, diamond and camera inside the sphere?
>
> I had already changed max_trace_level from 5 to 10 (was getting warnings about
> it, 10 removed the warnings). However I further changed it to 50 and then 100,
> the only change that made was that the top of the gem got brigther and at 100 it
> was nearly completely white.
>
> I ran through all the finishes and interioirs in glass.inc. All the finishes
> gave results close to that of Stone3.bmp, so i kept my finish. All the interiors
> gave little to no change to the one I already had.
>
> One thing that I am noticing is that it spends a lot of time rendering the top
> of the gem (the part with the most clarity in Stone1.bmp) and then it chops
> through the last part in less than a second (total rendering time is 17
> seconds).
On the top, you must have a lot of reflections, while on the bottom 
part, most of the rays go straight through, or only have a few 
intersection with the surfaces.

>
> Regards
> Bidski
>
>

If your sphere is white, or any uniform colour, it don't do it's work as 
an environment.
Use some mostly dark texture with some small bright areas.
You can use an image_map with map_type 1 on your sphere with some 
interesting image. If you use version 3.7, you can use some high dynamic 
range image to good effect.

The effects of the caustics feature are distance and ior independent, 
been only dependent on the curvature of the surface. It also don't work 
well if you have flat areas with sharp angles.
It's a quick and dirty way to simulate the underwater caustics play of a 
pool.



Alain


Post a reply to this message

From: Alain
Subject: Re: Creating a rotating gem
Date: 11 Dec 2010 19:22:20
Message: <4d0415bc@news.povray.org>

> Or perhals this one? Although the bottom point of this one appears to be
> shrowded in darkess .... hmmmm.
>
> http://i288.photobucket.com/albums/ll167/Bidskii/stone6.jpg
>
> Regards
> Bidski
>
>
>

Geting prety good.


Alain


Post a reply to this message

From: Bidski
Subject: Re: Creating a rotating gem
Date: 11 Dec 2010 19:45:01
Message: <web.4d041a2f1e34407486c9e330@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:
> I'd use a much smaller roughness value.

Anything much smaller than what I have results in the diamond being nearly
invisible (maybe a result of the environment that i am mis-using?) (see
stone3.bmp).

> Proposed change:
> reflection{0.1 1 fresnel}
My final product is using reflection{0.5 1 fresnel}. I think 0.1 is slightly
brighter overall.

> Fade_colour White is mostly a do nothing.
If I leave this out I get a black diamond (most probably a result of the
environment that I am mis-using).

> Is your light, diamond and camera inside the sphere?
Can't remember what settings I had now (I think the camera and light were on the
edge of the sphere with the diamond inside it). However, I am now getting
perfectly fine results without any sphere there at all.

> If your sphere is white, or any uniform colour, it don't do it's work as
> an environment.
> Use some mostly dark texture with some small bright areas.
> You can use an image_map with map_type 1 on your sphere with some
> interesting image. If you use version 3.7, you can use some high dynamic
> range image to good effect.
I have been trying t stay away from a patterned environment (mainly for personal
reasons), I picked white because it wasn't black or some other completely
horrible colour that I didnt want to use.

Regards
Bidski


Post a reply to this message

From: Bidski
Subject: Re: Creating a rotating gem
Date: 12 Dec 2010 00:50:03
Message: <web.4d0461ef1e34407486c9e330@news.povray.org>
Does anyone know of a website or something that speaks of the optical properties
of the other gems (rubies, sappphires, emeralds, etc)? By optical properties I
basically mean the things we put in finish (diffuse, ambient, specular,
roughness, brilliance, etc).

Regards
Bidski


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 3 Messages >>>

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