POV-Ray : Newsgroups : povray.text.scene-files : Colored attenuation: sun code Server Time
31 Oct 2024 16:14:04 EDT (-0400)
  Colored attenuation: sun code (Message 1 to 5 of 5)  
From: SamuelT 
Subject: Colored attenuation: sun code
Date: 30 Oct 1999 16:24:24
Message: <381B5564.98B6D2AF@aol.com>
Here is the code for the scene posted in the images section. You will
probably have to fix the code a little since it always becomes clipped
off at strange places when I post it. Anways, enjoy!



camera{location<0,0,-10>look_at 0}

light_source{<0,10000,100000>,<1 1 .5>}

background{<.8 .5 .2>}

fog{rgb<1 1 .3>*.8 distance 200 fog_type 2 fog_alt 20 fog_offset 0}

//Water
plane{y,-10
 pigment{rgb .2}
 finish{reflection .8}
 normal{granite -.5 scale 20}
 hollow
}

//Sun
sphere{<0,10000,100000>,20000
 pigment{rgbf 1}
 interior{
  fade_power 7
  fade_distance 20000
  fade_color rgb<4 4 3>
 }
 no_shadow
}

//Sticks
union{
 cylinder{<-5,-50,5>,<-5.5,4,0>,.2}
 cylinder{<-10,-50,20>,<-9.65,3,20>,.2}
 cylinder{<18,-50,15>,<7,5,13>,.2}
 cylinder{<7,5,13>,<7,-4,13>,.05}
 cylinder{<5,-50,30>,<9,7,33>,.25}
 pigment{rgb 1}
}

//Lens with torus
torus{1,.125
 pigment{rgb .3}
 finish{phong 1 phong_size 70 reflection .5}
 rotate<90,45,0>
 translate<7,-(5+.125),13>
}

sphere{<7,-(5+.125),13>,1-.125
 pigment{rgbf<1 1 1 .8>}
 finish{phong 1 phong_size 90 reflection .2}
 interior{ior 1.5 caustics .3 dispersion 1.5 disp_nelems 14}
}

--
Samuel Benge

STB### [at] aolcom

"And you can fly
 High as a kite if you want to
 Faster than light if you want to
 Speeding through the universe
 Thinking is the best way to travel"

          -The Best Way to Travel, The Moody Blues


Post a reply to this message

From: Ken
Subject: Re: Colored attenuation: sun code
Date: 30 Oct 1999 16:27:07
Message: <381B5462.8032B118@pacbell.net>
"SamuelT." wrote:
> 
> Here is the code for the scene posted in the images section. You will
> probably have to fix the code a little since it always becomes clipped
> off at strange places when I post it. Anways, enjoy!

That is interestingly simplistic code for such a wonder effect.

-- 
Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: SamuelT 
Subject: Re: Colored attenuation: sun code
Date: 30 Oct 1999 16:41:39
Message: <381B5970.1612A55C@aol.com>
Thanks, I take that as a compliment! I was pleased to find out just how fast
it renders, too.

Ken wrote:

> That is interestingly simplistic code for such a wonder effect.
>
> --
> Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.htmlhttp://www.povray.org/links/

--
Samuel Benge

STB### [at] aolcom

"And you can fly
 High as a kite if you want to
 Faster than light if you want to
 Speeding through the universe
 Thinking is the best way to travel"

          -The Best Way to Travel, The Moody Blues


Post a reply to this message

From: Dennis Clarke
Subject: ?? I'm probaby missing something here ...
Date: 22 Nov 1999 02:38:56
Message: <3838F297.429E6058@interlog.com>
"SamuelT." wrote:
> 
> Here is the code for the scene posted in the images section. You will
> probably have to fix the code a little since it always becomes clipped
> off at strange places when I post it. Anways, enjoy!
> 

Every now and again I lurk into these groups and see something that I JUST HAVE TO try
out.  So I
thought that your sun.pov was an enticing reason to download the povray 3.1g source
and build povray
again.  All is going well ... but ...

$ x-povray -I./sun.pov -O./sun.tga +W640 +H480 +DT +FT +Q9 +A0.3 +AM2 +R3 -J +V +GA
+L/usr/local/povray31/include +X -display apollo:0.0
Persistence of Vision(tm) Ray Tracer Version 3.1g.SunOS.gcc
  This is an unofficial version compiled by:
    Dennis M. Clarke  dcl### [at] interlogcom 
  The POV-Ray Team(tm) is not responsible for supporting this version.
Copyright 1999 POV-Ray Team(tm)
Parsing Options
  Input file: ./sun.pov (compatible to version 3.1)
  Remove bounds........On  Split unions........Off
  Library paths: /usr/local/povray31/include
Output Options
  Image resolution 640 by 480 (rows 1 to 480, columns 1 to 640).
  Output file: ./sun.tga, 24 bpp Targa
  Graphic display......On  (type: T, palette: 3, gamma:  2.2)
  Mosaic preview......Off
  CPU usage histogram.Off
  Continued trace.....Off  Allow interruption...On  Pause when done.....Off
  Verbose messages.....On
Tracing Options
  Quality:  9
  Bounding boxes.......On  Bounding threshold: 25 
  Light Buffer.........On  Vista Buffer.........On  Draw Vista Buffer...Off
  Antialiasing.........On  (Method 2, Threshold 0.300, Depth 3, Jitter 1.00)
  Radiosity...........Off
Animation Options
  Clock value....   0.000  (Animation off)
Redirecting Options
  All Streams to console..........On
  Debug Stream to console.........On
  Fatal Stream to console.........On
  Render Stream to console........On
  Statistics Stream to console....On
  Warning Stream to console.......On


Parsing...  fade_power 7

  fade_distance 20000

  fade_color <----ERROR

./sun.pov:23: error: No matching } in interior, undeclared identifier 'fade_color'
found instead.

********

What did I miss ? 


Dennis Clarke

http://www.interlog.com/~dclarke/povray/povray.html


Post a reply to this message

From: Ken
Subject: Re: ?? I'm probaby missing something here ...
Date: 22 Nov 1999 04:27:51
Message: <38390C43.39094D5C@pacbell.net>
Dennis Clarke wrote:

>   fade_color <----ERROR
> 
> ./sun.pov:23: error: No matching } in interior, undeclared identifier 'fade_color'
found instead.
> 
> ********
> 
> What did I miss ?
> 
> Dennis Clarke
> 
> http://www.interlog.com/~dclarke/povray/povray.html

fade_color is a feature of Nathan Kopp's UVPov 6.x. The source is available
for you to compile if you want to try it on your platform.

Nathans site:
http://nathan.kopp.com/patched.htm

A linux version of the patch is at:
http://www.warmann.com/users/broken/utils/utils.html
(not sure if this feature is in this version)

-- 
Ken Tyler -  1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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