POV-Ray : Newsgroups : povray.general : fractal on box Server Time
28 Nov 2024 10:34:48 EST (-0500)
  fractal on box (Message 1 to 3 of 3)  
From: Folkert van Heusden
Subject: fractal on box
Date: 11 Feb 2007 16:22:52
Message: <45cf892c$1@news.povray.org>
Hi,

I am trying to display a fractal on a box. Now when I render this scene I 
get a box with only a very small dot in the middle. I tried scaling, etc. to 
no availl. Any help is appreciated.

#include "colors.inc"

box {
        <-2, -2, -2>,
        <2, 2, 2>
        scale <20, 20, 20>
texture {
pigment{ julia <0.360, 0.250>, 20
         interior 1, 1  scale 0.60
    color_map {

      [0.0  color Cyan]

      [0.3  color Yellow]

      [0.6  color Magenta]

      [1.0  color Cyan]

    }
}
normal {ripples 0.5 scale 0.01}
          finish {ambient 0.15 diffuse 0.85 phong 1}
        }
}

sphere {
        <0, 0, 0>, 1000
        hollow
        pigment { color White }
}

light_source { <-999, -999, -999> color White }
light_source { <999, -999, -999> color White }
light_source { <-999, 999, -999> color White }
light_source { <999, -999, 999> color White }
light_source { <-999, 999, 999> color White }
light_source { <999, 999, 999> color White }
light_source { <-50, -50, -50> color White }

camera { location <-100, -100, -100> look_at <-25, -25, -25> }


-- 
--------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com


Post a reply to this message

From: Tim Attwood
Subject: Re: fractal on box
Date: 11 Feb 2007 17:09:50
Message: <45cf942e@news.povray.org>
> I am trying to display a fractal on a box. Now when I render this scene I 
> get a box with only a very small dot in the middle. I tried scaling, etc. 
> to no availl. Any help is appreciated.

You scaled your box before the texture was applied, to scale
the texture along with the box apply it after.
box {...
 texture{...}
 scale <...>
}


Post a reply to this message

From: Folkert van Heusden
Subject: Re: fractal on box
Date: 13 Feb 2007 09:29:58
Message: <45d1cb66@news.povray.org>
>> I am trying to display a fractal on a box. Now when I render this scene I 
>> get a box with only a very small dot in the middle. I tried scaling, etc. 
>> to no availl. Any help is appreciated.
>
> You scaled your box before the texture was applied, to scale
> the texture along with the box apply it after.
> box {...
> texture{...}
> scale <...>
> }

Ah yes that fixed it. Thanks!


Post a reply to this message

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