POV-Ray : Newsgroups : povray.newusers : Problems with #declare : Problems with #declare Server Time
30 Jul 2024 06:27:22 EDT (-0400)
  Problems with #declare  
From: Oleguer Vilella
Date: 9 Sep 2004 04:12:10
Message: <4140105a@news.povray.org>
Hi all,

I did this object, and the small white spheres a part from it, when I put
the spheres into the #declare they desappear, but If I render the file whit
the spheres out of the #declare they are in the right place. What's the
problem?
The code is:
===========The camera==============
#include "colors.inc"
#include "shapes.inc"
#include "stones.inc"
#include "textures.inc"
#include "woods.inc"
#include "metals.inc"
#include "golds.inc"
#include "glass.inc"
#include "glass_old.inc"

global_settings { assumed_gamma 2 }
background { color White }
camera { location <-10, 8, -19> look_at <0, 5, 0> }
light_source { <0, 33, 0> color White spotlight point_at <0, 0, 0> radius 50
falloff 20 tightness 0  }
light_source { <0, 19, 0> color rgb <0.5, 0.5, 0.5> }
light_source { <40, 25, 0> color rgb <1, 1, 1>
spotlight
point_at <0, 5, 0>
radius 20
falloff 20  }
=========End of the camera===============
============The object===============
#declare Reloj =
union {
  merge {
    box {<-5,0,-55>,<0,95,55>}
    cylinder{<-5,95,0>,<0,95,0>,55}
   texture { T_Wood15 } finish { specular .51 ambient 1 diffuse .96 }
  scale 0.1}

difference {
    cylinder{<-10,95,0>,<20,95,0>,40}
    cylinder{<-11,95,0>,< 6,95,0>,36}
    texture { T_Gold_1D } finish { specular 2 ambient 1 diffuse .07
reflection 0.1 phong 0.3 phong_size 30 }
    scale 0.1}}
object { Reloj rotate y*115 translate <0, 0, 0> }
=============End of the object============
===========The spheres================
sphere { <0, 0, 0>, 0.1 pigment { color White } finish { ambient 1 }
translate <2.1, 9.7, -4> }
sphere { <0, 0, 0>, .1 pigment { color White } finish { ambient 1 }
translate <-5.4, 9.35, -4> }
sphere { <0, 0, 0>, .1 pigment { color White } finish { ambient 1 }
translate <-2.2, 12.6, -4> }
sphere { <0, 0, 0>, .1 pigment { color White } finish { ambient 1 }
translate <-2.2, 6, -4> }
===========End of the spheres=============
Thanks in advance.

Best regards,
Oleguer
http://www.infonegocio.com/oleguervm


Post a reply to this message

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