POV-Ray : Newsgroups : povray.binaries.images : Caustic Problems Server Time
17 Aug 2024 10:18:18 EDT (-0400)
  Caustic Problems (Message 1 to 6 of 6)  
From: banty
Subject: Caustic Problems
Date: 21 Oct 2001 16:23:47
Message: <3BD33110.BA4DB3EB@rapidnet.com>
I'm currently experimenting with refraction through crystal.
Unfortunately, I'm unable to post an image because my computer keeps
freezing up about two thirds of the way through the render.  Since it
seems to freeze at the same point every time, I'm thinking the problem
must be in the code.

/*
 Persistence of Vision Ray Tracer Scene Description File
 File: Crystal.pov
 Vers: 3.1
 Desc:
 Date: 10/19/01
 Auth: Anthony D. Baye
*/

#include "colors.inc"
#include "textures.inc"

/* Global Switches */
#declare RAD = on ;
#declare PHO = on ;
#declare Use_Camera = 2 ;
/* --------------- */

global_settings {
#if(RAD)
 radiosity {
  pretrace_start 0.01
  pretrace_end   0.01
  count 200

  nearest_count 10
  error_bound 0.02
  recursion_limit 2

  low_error_factor 0.2
  gray_threshold 0.2
  minimum_reuse 0.015
  brightness 0.5

  adc_bailout 0.01/2
    }
#end

#if (PHO)
 photons {
  count 20000
  autostop 0
  jitter 0.4
  media 50, 30
  }
#end
 }

#declare ft = 12 ;

#if (Use_Camera = 1)
camera {
 location <0.0, 0.0, -5.0*ft>
 look_at 0.0
 }
#end

#if (Use_Camera = 2)
camera {
 location <6.0, 6.0, -6.0>
 look_at 0.0
 }
#end

light_source { <30.0*ft, 25.0*ft, -25.0*ft> color rgb 1
media_interaction off photons { reflection on refraction on } }

object {
 plane { <0 1 0> 1 }
  pigment { White*0.625 }
  translate -1.0
 }

#declare Crystal =
 union {
  difference {
   cylinder { <0.0, -1.0, 0.0> <0.0, 0.2125, 0.0> 0.25 }
 #declare A = 0 ;
 #while ( A < 360 )
   box { <-2.0, 0.0, -2.0> <2.0, 1.75, 2.0> rotate 45.0*z translate
<-0.25, 0.0, 0.0> rotate A*y }
   box { <-2.0, 0.0, -2.0> <1.75, -1.75, 2.0> rotate -80.0*z translate
<-0.25, 0.0, 0.0> rotate A*y }
 #declare A = A + 36.0 ;
 #end
   translate 1.125*y
   rotate 180*z
   }
  difference {
   cylinder { <0.0, -0.5, 0.0> <0.0, 0.1875, 0.0> 0.25 }
 #declare B = 0 ;
 #while ( B < 360 )
   box { <-2.0, 0.0, -2.0> <2.0, 1.75, 2.0> rotate 45.0*z translate
<-0.25, 0.0, 0.0> rotate B*y }
   box { <-2.0, 0.0, -2.0> <1.75, -1.75, 2.0> rotate -70.0*z translate
<-0.25, 0.0, 0.0> rotate B*y }
 #declare B = B + 36.0 ;
 #end
   translate 0.625*y
   }
  difference {
   cylinder { <0.0, -0.5, 0.0> <0.0, 0.1875, 0.0> 0.25 }
 #declare C = 0 ;
 #while ( C < 360 )
   box { <-2.0, 0.0, -2.0> <2.0, 1.75, 2.0> rotate 45.0*z translate
<-0.25, 0.0, 0.0> rotate C*y }
   box { <-2.0, 0.0, -2.0> <1.75, -1.75, 2.0> rotate -70.0*z translate
<-0.25, 0.0, 0.0> rotate C*y }
 #declare C = C + 36.0 ;
 #end
   translate 0.625*y
   rotate 90*z
   }
  difference {
   cylinder { <0.0, -0.5, 0.0> <0.0, 0.1875, 0.0> 0.25 }
 #declare D = 0 ;
 #while ( D < 360 )
   box { <-2.0, 0.0, -2.0> <2.0, 1.75, 2.0> rotate 45.0*z translate
<-0.25, 0.0, 0.0> rotate D*y }
   box { <-2.0, 0.0, -2.0> <1.75, -1.75, 2.0> rotate -70.0*z translate
<-0.25, 0.0, 0.0> rotate D*y }
 #declare D = D + 36.0 ;
 #end
   translate 0.625*y
   rotate 270*z
   }
  pigment { color rgbft <1.0, 0.03, 1.0, 1.0, 1.0> }
  finish { diffuse 0.1 reflection 0.2 roughness 0.01 }
   interior { ior 2.4 }
  photons { target 0.75 reflection on refraction on }
 }

#declare Joiner =
union {
 difference {
  cylinder { <0.0, -0.3125, 0.0> <0.0, 0.3125, 0.0> 0.125 }
 #declare E = 0 ;
 #while ( E < 360 )
  box { <-0.125, -0.1875, -0.09375> <0.125, 0.1875, -0.21875> rotate E*y
}
 #declare E = E + 36.0 ;
 #end
  cylinder { <0.0, 0.125, 0.0> <0.0, 0.375, 0.0> 0.0625 }
  cylinder { <0.0, -0.125, 0.0> <0.0, -0.375, 0.0> 0.0625 }
  }
  pigment { Silver }
  finish { SilverFinish }
  photons { target 1.0 refraction off reflection on }
 }

object {
 union {
  object { Crystal }
  object { Joiner }
  object { Joiner rotate 90*z }
  }
 translate 1.25*y


Post a reply to this message

From: Bob H 
Subject: Re: Caustic Problems
Date: 21 Oct 2001 17:06:33
Message: <3bd338d9$1@news.povray.org>
"banty" <ban### [at] rapidnetcom> wrote in message
news:3BD33110.BA4DB3EB@rapidnet.com...
>     I'm currently experimenting with refraction through crystal.
> Unfortunately, I'm unable to post an image because my computer keeps
> freezing up about two thirds of the way through the render.  Since it
> seems to freeze at the same point every time, I'm thinking the problem
> must be in the code.

Trying it here I had no problems with it.  Nothing unusual in the script
that I can see.

Bob H.


Post a reply to this message

From: Anthony D  Baye
Subject: Re: Caustic Problems
Date: 21 Oct 2001 20:04:34
Message: <3BD364CD.4773E960@rapidnet.com>
I was able to get it to render, but only after I turned off the radiosity.
Unfortunately that removes 98% of the effect. the result is attatched.

                                                                A.D.B

"Bob H." wrote:

> "banty" <ban### [at] rapidnetcom> wrote in message
> news:3BD33110.BA4DB3EB@rapidnet.com...
> >     I'm currently experimenting with refraction through crystal.
> > Unfortunately, I'm unable to post an image because my computer keeps
> > freezing up about two thirds of the way through the render.  Since it
> > seems to freeze at the same point every time, I'm thinking the problem
> > must be in the code.
>
> Trying it here I had no problems with it.  Nothing unusual in the script
> that I can see.
>
> Bob H.


Post a reply to this message


Attachments:
Download 'crystalcross.jpg' (11 KB)

Preview of image 'crystalcross.jpg'
crystalcross.jpg


 

From: Bob H 
Subject: Re: Caustic Problems
Date: 22 Oct 2001 00:18:22
Message: <3bd39e0e$1@news.povray.org>
"Anthony D. Baye" <ban### [at] rapidnetcom> wrote in message
news:3BD364CD.4773E960@rapidnet.com...
> I was able to get it to render, but only after I turned off the radiosity.
> Unfortunately that removes 98% of the effect. the result is attatched.

Could be system specific trouble, so telling what computer specs there are
might be of importance.  As well as which POV version, of course.  Should
always state those things when not the currently available official one
(beta, MegaPov, etc.).

Bob H.


Post a reply to this message

From: Anthony D  Baye
Subject: Re: Caustic Problems
Date: 22 Oct 2001 01:28:48
Message: <3BD3B0CF.6484B72E@rapidnet.com>
I'm running 3.5 beta 6 on a mac G4 400 Mhz w/ 64 Megabytes of Ram (120 with
Virtual memory on).  POV's memory requirements are set to 85000k.  I'm
wondering if pov is becoming unstable in the middle of the rrender because of
low memory cvonditions and just freezes the computer trying to generate an
alert.
                                                    A.D.B

"Bob H." wrote:

> "Anthony D. Baye" <ban### [at] rapidnetcom> wrote in message
> news:3BD364CD.4773E960@rapidnet.com...
> > I was able to get it to render, but only after I turned off the radiosity.
> > Unfortunately that removes 98% of the effect. the result is attatched.
>
> Could be system specific trouble, so telling what computer specs there are
> might be of importance.  As well as which POV version, of course.  Should
> always state those things when not the currently available official one
> (beta, MegaPov, etc.).
>
> Bob H.


Post a reply to this message

From: Bob H 
Subject: Re: Caustic Problems
Date: 22 Oct 2001 11:04:45
Message: <3bd4358d@news.povray.org>
"Anthony D. Baye" <ban### [at] rapidnetcom> wrote in message
news:3BD3B0CF.6484B72E@rapidnet.com...
>     I'm running 3.5 beta 6 on a mac G4 400 Mhz w/ 64 Megabytes of Ram (120
with
> Virtual memory on).  POV's memory requirements are set to 85000k.  I'm
> wondering if pov is becoming unstable in the middle of the rrender because
of
> low memory cvonditions and just freezes the computer trying to generate an
> alert.

Been known to happen, yes.  I had to Ctrl Alt Delete many times in the past,
but since having 256MB and now 512MB it is a rare occurance anymore that I
need to prevent memory cleanup due to intense virtual memory usage.

Bob H.


Post a reply to this message

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