#declare global_pcb_real_hole = 2.000000;
#include "tools.inc"
#include "user.inc"
global_settings{charset utf8}
#if(env=on | environment=on) // Pregunta si el fondo circundante esta activado (surrounding)
sky_sphere {pigment {Navy}
pigment {bozo turbulence 0.65 octaves 7 omega 0.7 lambda 2
color_map {
[0.0 0.1 color rgb <0.85, 0.85, 0.85> color rgb <0.75, 0.75, 0.75>]
[0.1 0.5 color rgb <0.75, 0.75, 0.75> color rgbt <1, 1, 1, 1>]
[0.5 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>]}
scale <0.1, 0.5, 0.1>} rotate -90*x}
plane
{y
, -10.0-max
(pcb_x_size
,pcb_y_size
)*abs(max
(sin((pcb_rotate_x
/180)*pi
),sin((pcb_rotate_z
/180)*pi
))) texture{T_Chrome_2D
normal{waves 0.1 frequency 3000.0 scale 3000.0}} translate<0,0,0>}
#end
//Animation data
//////////////////////////////
Y reemplazarlas por
////////////////////////////
#declare global_pcb_real_hole = 2.000000;
#declare backgroundType = 2; // 1 = aqua (EAGLE3D default), 2 = table1, 3 = Custom01, 4 = Custom02 ... // Aca se escoje el fondo manualmente
global_settings{charset utf8}
#include "tools.inc"
#include "user.inc"
#include "textures.inc"
#include "woods.inc"
#include "metals.inc"
#include "skies.inc"
#include "backgrounds.inc" // Archivo con dos fondos circundantes
//Animation data
////////////////////////////
2: Hay que colocar un nuevo archivo que realice (backgrounds.inc) en la carpeta PovRay de EAGLE3D, actualmente consta de solo dos fondos, el que trae EAGLE3D (aqua) y otro que es una madera tipo escritorio (table1) que fue extraído de http://www.ignorancia.org/es/index.php?page=Aceleradora_de_POV
Si usted conoce otro fondo, porfa lo anexa en este post, para ir optimizando EAGLE3D, y sacar nosotros una versión de EAGLE3D
code of backgrounds.inc
#include "colors.inc"
#include "textures.inc"
#include "woods.inc"
#include "metals.inc"
#include "skies.inc"
// List of backgrounds
#if( env = on ) //{ #if(environment=on) para la version 1.05 de EAGLE3D
sky_sphere {
pigment { Navy }
pigment {
bozo turbulence 0.65 octaves 7 omega 0.7 lambda 2
color_map {
[0.0 0.1 color rgb <0.85, 0.85, 0.85> color rgb <0.75, 0.75, 0.75>]
[0.1 0.5 color rgb <0.75, 0.75, 0.75> color rgbt <1, 1, 1, 1>]
[0.5 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>]
}
scale <0.1, 0.5, 0.1>
} rotate -90*x
}
#switch( backgroundType ) //{
#case(1) //: Standard background ( Aqua )
plane{
y
, -10.0-max
(pcb_x_size
,pcb_y_size
)*abs(max
(sin((pcb_rotate_x
/180)*pi
), sin((pcb_rotate_z
/180)*pi
))) texture{
T_Chrome_2D
normal{waves 0.1 frequency 3000.0 scale 3000.0}
}
translate<0, 0, 0 >
}
#break
#case(2) //: table background
#declare r1=seed(7);
#declare madera16 = //{
texture {
pigment{
P_WoodGrain15A color_map { M_Wood15A }
warp{
black_hole <0, 0, 0>, 0.2
falloff 2
strength 2
repeat <.4, 0, .4>
turbulence<.05, 0, .1>
inverse
}
}
}
texture {
pigment{
P_WoodGrain15B color_map { M_Wood15B }
warp{
black_hole <0, 0, 0>, 0.2
falloff 2
strength 2
repeat <.4, 0, .4>
turbulence<.05,0,.1>
inverse
}
}
}
//} end_Madera16
#declare T_Table= //{
texture{
madera16
translate
(50*rand(r1
))*x
finish{ F_MetalA }
}
//} end_T_Table
#declare cnt=-30;
// Union de objetos para crear el fondo
union{
#while (cnt<=30) //{
box{ <cnt, -1, -20>, <cnt+3.999, 0, 30>
texture{
T_Table
translate <cnt, cnt, cnt>
}
}
#declare cnt=cnt+4;
#end //} endWhile
translate -(pcb_height/2)*y
}
#break
#case(3) //: Custom
// User Code
#break
#end //} endSwitch
#end //} endIf background