POV-Ray : Newsgroups : povray.binaries.images : Help! Coloured reflections and Photons Server Time
4 Oct 2024 17:17:25 EDT (-0400)
  Help! Coloured reflections and Photons (Message 1 to 6 of 6)  
From: Equiprawn
Subject: Help! Coloured reflections and Photons
Date: 17 Mar 1999 03:32:40
Message: <36ef68a8.0@news.povray.org>
Hi,

Firstly, thank you Nathan, thankyouthankyouthankyou! An amazing patch, the
aplications of which has no limits, as demonstrated by the recent flurry of
photon map testing scenes.

Spider recently posted a photon map testing image that had reflective
coloured cylinders casting coloured reflections. I am working on a scene to
test reflective caustics too, but I have hit a problem. The scene consists
of coloured, reflective, faceted crystals (they are meshes composed of
triangles and smooth triangles). Here is an example of the red reflective
texture I am using:

#declare Mirrormetal_Red =
   material  // Mirrormetal Red


      texture


         pigment
         {
            color rgb <1.0, 0.0, 0.0>
         }
         finish
         {
            ambient 0.0
            diffuse 0.079133
            phong 1.0
            phong_size 60.263333
            metallic 1.0
            reflection 0.8
         }
      }
   }

The photon settings I am using are:

(Global Settings)
  photons

    gather 20, 100
    radius 0.1, 1 //[, <step size>]
    //[jitter <jitter amount>]
    //[autostop <angle>]
  }

(Object Settings)
  photons {density .02
           reflection on
           ignore_photons
           //photons_pass_through
           }

However, when I render the scene, the reflective caustics I get aren't
coloured, they are just plain white (I am using a white light to illuminate
the scene). What am I doing whong?

Thanks,

Equiprawn


Post a reply to this message

From: Ken
Subject: Re: Help! Coloured reflections and Photons
Date: 17 Mar 1999 06:55:22
Message: <36EF9779.E4F6D80F@pacbell.net>
Equiprawn wrote:
> 
> Hi,
> 
> Firstly, thank you Nathan, thankyouthankyouthankyou! An amazing patch, the
> aplications of which has no limits, as demonstrated by the recent flurry of
> photon map testing scenes.
> 
> Spider recently posted a photon map testing image that had reflective
> coloured cylinders casting coloured reflections. I am working on a scene to
> test reflective caustics too, but I have hit a problem. The scene consists
> of coloured, reflective, faceted crystals (they are meshes composed of
> triangles and smooth triangles). Here is an example of the red reflective
> texture I am using:

> However, when I render the scene, the reflective caustics I get aren't
> coloured, they are just plain white (I am using a white light to illuminate
> the scene). What am I doing whong?
> 
> Thanks,
> 
> Equiprawn

  I think you are running into the same problem anyone will with using
a mesh object as a solid object. They are not a solid object. The Pov
primitives that are listed as usable in the docs for CSG operations
are also the only ones that Pov will treat as a true solid object. This
means while you can specify the object with an interior and make it
hollow and Pov won't complain, it will look at it and treat it as an
ordinary mesh object which is hollow and has very thin non refracting
walls.
   Try making your crystal shapes using CSG combinations of planes. The
plane object is treated by Pov as a solid object because Pov knows which
is the inside and which is the outside of the object. I have a small dos
utility, I found somewhere, that will prompt you for input and then put out
a crystal shape made out of an intersection of planes. It's around 70k in
size with more Docs than program if you are interested. I also have two
versions of my diamond.inc program. One uses triangles the other is a CSG
intersection of planes. I have found in working with the output these that
each one gives a different result when used with refraction.


-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

From: Spider
Subject: Re: Help! Coloured reflections and Photons
Date: 17 Mar 1999 07:51:00
Message: <36EFA397.13CC68AF@bahnhof.se>
try and use this :
#declare fReflect =
finish {
	ambient 0.0
	diffuse 0.079133
	phong 1.0 //Not necessary. lower it .
	phong_size 60.263333
	metallic 1.0
//	reflection 0.8 //nope.
}

#macro t_reflect(vColour) //vColour is a 3 post vector
texture {
	pigment { colour vColour }
	finish {
		fReflect
		reflection 	vColour
		ambient		vColour/10 //or something low.
	}
}
#end

This will give you nice reflections on a solid shape.

notice me and I'll give source for my reflections image.
-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

From: Nathan Kopp
Subject: Re: Help! Coloured reflections and Photons
Date: 17 Mar 1999 10:45:21
Message: <36EFCDC5.437945EA@Kopp.com>
Like Spider's code demonstrated, POV's reflection is not based on the pigment.
The color of the reflection is specified by the reflection keyword.
  reflection <1,0,0>  // this will reflect red

Of course, this is kind of annoying if you want to reflect a complex pattern.

I've got a suggestion for this... read about it in povray.programming.

-Nathan


Post a reply to this message

From: Equiprawn
Subject: Re: Help! Coloured reflections and Photons
Date: 17 Mar 1999 11:41:55
Message: <36efdb53.0@news.povray.org>
Ken,

I'm not sure if that is the problem. The mesh object I'm using is not in any
CSG operations or anything like that, it is just in the scene. It produces
reflective caustics fine, but the caustics are not coloured. The meshes are
very reflective, and all have a strong colour (such as red 1 green 0 blue
0). I have posted a small pic to show what I mean. The reflected caustics
should be coloured by the objects as in Spider's scene, but instead they
stay white. I'm guessing it's one of my settings, but I'm not sure what to
do.

Equiprawn


Post a reply to this message


Attachments:
Download 'Crystal.JPG' (13 KB)

Preview of image 'Crystal.JPG'
Crystal.JPG


 

From: Equiprawn
Subject: Re: Help! Coloured reflections and Photons
Date: 17 Mar 1999 11:47:51
Message: <36efdcb7.0@news.povray.org>
Ahh great! I'll give this a go and post my results. Thanks Spider!

Equiprawn


Post a reply to this message

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