|
Software Grafico
»pkJuM
»tutorial 5
»1
»2
»3
»4
»6
»7
Esempi in POV-Ray (Height Field) di frattali
Immagine salvata in TGA |
Render con POV-Ray v3.6 |
(In blu i parametri richiesti in input da pkJuM, premere il tasto Invio per confermare quelli di default)
// Original POV file --> POV-Ray 3.6 format
// Written by pkJuM 4.8 2006/08/03 http://www.cg-cad.com * piccinik@mclink.it
// Frattale di Mandelbrot
// Coordinate frattale : x=(-0.744870000000002 -0.744720000000000) y=( 0.112700000000000 0.112850000000000)
// Tipo di convergenza : 3
// Valore del parametro di convergenza: 2.00
// Formula colore : 4
// 500 iterazioni
// mandel1.tga 1000x1000
#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"
camera {
location <-0.46622,1.022,-2.845>
direction <0,0,1.000000>
up <0,1,0>
right <4/3,0,0>
look_at <-0.02221,-0.17779,-0.088899>
}
light_source {
<0.0,300.0,-60.0>
color <1,1,1>
}
sky_sphere {
pigment {
gradient y
color_map {
[0 color Blue]
[1 color White]
}
scale 2
translate -1
}
}
fog {
fog_type 2
color rgb <1.000000,0.533330,0.533330>
distance 3
fog_offset 3
fog_alt 1
turb_depth 0.300000
turbulence 0.200000
}
object {
height_field {
tga
"mandel1.tga"
water_level 0.0
}
translate <-0.5,-0.4902,-0.5>
scale <2, 2.00000,2>
texture {
pigment { color White }
// pigment { image_map { jpeg "01.jpg" } }
}
scale <2.377,0.16384,2.277>
}
//eof
|
Immagine salvata in TGA (scala di grigio e filtro gaussiano) |
Render con POV-Ray v3.6 |
// Original POV file --> POV-Ray 3.6 format
// Written by pkJuM 4.8 2006/08/03 http://www.cg-cad.com * piccinik@mclink.it
// Frattale di Mandelbrot
// Coordinate frattale : x=(-0.744870000000002 -0.744720000000000) y=( 0.112700000000000 0.112850000000000)
// Tipo di convergenza : 3
// Valore del parametro di convergenza: 2.00
// Formula colore : 4
// 500 iterazioni
// mandel2_g.tga 1000x1000
...
|
Immagine salvata in TGA (scala di grigio e filtro gaussiano) |
pkTEX A-w (zoom=74)->01.jpg |
(In blu i parametri richiesti in input da pkJuM, premere il tasto Invio per confermare quelli di default)
// Original POV file --> POV-Ray 3.6 format
// Written by pkJuM 4.8 2006/08/03 http://www.cg-cad.com * piccinik@mclink.it
// Frattale di Mandelbrot
// Coordinate frattale : x=(-0.744870000000002 -0.744720000000000) y=( 0.112700000000000 0.112850000000000)
// Tipo di convergenza : 3
// Valore del parametro di convergenza: 2.00
// Formula colore : 7
// 500 iterazioni
// mandel3_g.tga 1000x1000
#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"
camera {
location <-0.46622,1.022,-2.845>
direction <0,0,1.000000>
up <0,1,0>
right <4/3,0,0>
look_at <-0.02221,-0.17779,-0.088899>
}
light_source {
<0.0,300.0,-60.0>
color <1,1,1>
}
sky_sphere {
pigment {
gradient y
color_map {
[0 color Blue]
[1 color White]
}
scale 2
translate -1
}
}
fog {
fog_type 2
color rgb <0.000000,0.000000,0.533330>
distance 3
fog_offset 3
fog_alt 1
turb_depth 0.300000
turbulence 0.200000
}
object {
height_field {
tga
"mandel3_g.tga"
water_level 0.0
}
translate <-0.5,-0.4902,-0.5>
scale <2, 2.00000,2>
texture {
// pigment { color White }
pigment { image_map { jpeg "01.jpg" } } // tolto il commento
}
scale <2.377,0.16384,2.277>
}
//eof
|
Render con POV-Ray v3.6 |
Immagine salvata in TGA (scala di grigio e filtro gaussiano) |
pkTEX A-w (zoom=74)->01.jpg |
// Original POV file --> POV-Ray 3.6 format
// Written by pkJuM 4.8 2006/08/03 http://www.cg-cad.com * piccinik@mclink.it
// Newton map di z^n-1
// z^3-1 : x=(-1.000000000000000 1.000000000000000) y=(-1.000000000000000 1.000000000000000)
// Formula colore : 2
// RGB -R
// RGB -G
// 30 iterazioni
// newton_g.tga 1000x1000
#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"
camera {
location <-0.46622,1.022,-2.845>
direction <0,0,1.500000>
up <0,1,0>
right <4/3,0,0>
look_at <-0.02221,-0.17779,-0.088899>
}
light_source {
<0.0,300.0,-60.0>
color <1,1,1>
}
sky_sphere {
pigment {
gradient y
color_map {
[0 color Blue]
[1 color White]
}
scale 2
translate -1
}
}
fog {
fog_type 2
color rgb <1.000000,0.533330,0.000000>
distance 3
fog_offset 3
fog_alt 1
turb_depth 0.700000
turbulence 0.700000
}
object {
height_field {
tga
"newton_g.tga"
water_level 0.0
}
translate <-0.5,-0.4902,-0.5>
scale <2, 2.00000,2>
texture {
pigment { color White }
pigment { image_map { jpeg "01.jpg" } }
}
scale <2.377,0.16384,2.277>
}
//eof
|
Render con POV-Ray v3.6 |
Immagine salvata in TGA (mwork06.dat) |
Immagine salvata in TGA (scala di grigio e filtro gaussiano) |
// Original POV file --> POV-Ray 3.6 format
// Written by pkJuM 4.8 2006/08/03 http://www.cg-cad.com * piccinik@mclink.it
// Frattale di Mandelbrot
// Coordinate frattale : x=(-0.745336345636537 -0.745225234363465) y=( 0.113000634420565 0.113111745579433)
// Tipo di convergenza : 4
// Valore del parametro di convergenza: 2.00
// Formula colore : 0
// 200 iterazioni
// mandel2_g.tga 1000x1000
#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"
camera {
location <-0.46622,1.022,-2.845>
direction <0,0,1.000000>
up <0,1,0>
right <4/3,0,0>
look_at <-0.02221,-0.17779,-0.088899>
}
light_source {
<0.0,300.0,-60.0>
color <1,1,1>
}
sky_sphere {
pigment {
gradient y
color_map {
[0 color Blue]
[1 color White]
}
scale 2
translate -1
}
}
fog {
fog_type 2
color rgb <0.000000,0.000000,0.700000>
distance 5
fog_offset 4
fog_alt 1
turb_depth 0.300000
turbulence 0.200000
}
object {
height_field {
tga
"mandel2_g.tga"
water_level 0.0
}
translate <-0.5,-0.4902,-0.5>
scale <2, 1.50000,2>
// tutorial POV ...
texture {
Silver_Metal
normal {
dents 2
scale 1.5
}
}
texture {
pigment {
granite
color_map {
[0.0 rgb <.2, 0, 0> ]
[0.2 color Brown ]
[0.2 rgbt <1, 1, 1, 1> ]
[1.0 rgbt <1, 1, 1, 1> ]
}
frequency 16
}
}
texture {
pigment {
bozo
color_map {
[0.0 color Black ]
[0.2 color rgbt <0, 0, 0, .5> ]
[0.4 color rgbt <.5, .5, .5, .5> ]
[0.5 color rgbt <1, 1, 1, 1> ]
[1.0 color rgbt <1, 1, 1, 1> ]
}
scale 3
}
} // ... fine tutorial POV
scale <2.377,0.16384,2.277>
}
//eof
|
Render con POV-Ray v3.6 |
Ultimo Aggiornamento_Last Update: 9 Marzo 2008
|
|