POV-Ray : Newsgroups : povray.binaries.scene-files : Conversion from 3.7 back to 2.2 : Re: Conversion from 3.7 back to 2.2 Server Time
17 May 2024 23:32:17 EDT (-0400)
  Re: Conversion from 3.7 back to 2.2  
From: Sven Littkowski
Date: 25 Sep 2010 11:18:42
Message: <4c9e12d2@news.povray.org>
Crossroads 3D doesn't produce any error anymore when attempting the import, 
but it shows only a gray, empty scvene. What's wrong?

See below the complete (and short) code of the scene. I tried to write it as 
easy as possible, and avoided OBJECT. Who can work on the code until it 
produces a visible result in Crossroads 3D?

// Persistence Of Vision raytracer version 2.2 sample file.

camera {
 location < 0.0, 23.0, -50.0 >
 look_at < 0.0, 2.70, 0.0 >
}

light_source { < 1000.0, 1000.0, 1000.0 > rgb < 1.0, 1.0, 1.0 > }


#declare HeightOfBlades= 12.2
#declare AngleOfWindCatchers_360= < 0.0, 0.0, 0.0 >

#declare Fundament=texture { pigment { rgb < 0.4, 0.2, 0.1 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare Building=texture { pigment { rgb < 1.0, 1.0, 1.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare EntranceDoor=texture { pigment { rgb < 0.8, 0.4, 0.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare StairsSection=texture { pigment { rgb < 1.0, 1.0, 1.0 > } finish 
{ specular 1 roughness 0.0001 reflection 0.13 } }
#declare WindBlades=texture { pigment { rgb < 0.7, 0.7, 1.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare WindBladesDrives=texture { pigment { rgb < 0.0, 0.0, 0.0 > } finish 
{ specular 1 roughness 0.0001 reflection 0.13 } }
#declare WindCatchers=texture { pigment { rgb < 1.0, 1.0, 0.7 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare WindCatcherFixtures=texture { pigment { rgb < 0.0, 0.5, 0.0 > } 
finish { specular 1 roughness 0.0001 reflection 0.13 } }
#declare RoofPlatform=texture { pigment { rgb < 1.0, 1.0, 1.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare RoofDoor=texture { pigment { rgb < 0.5, 0.0, 0.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }
#declare RoofReeling=texture { pigment { rgb < 1.0, 1.0, 0.0 > } finish { 
specular 1 roughness 0.0001 reflection 0.13 } }


cylinder { < 0.0, -2.0, 0.0 > < 0.0, 0.0, 0.0 > 7.5 texture { Fundament } }
cylinder { < 0.0, 0.0, 0.0 > < 0.0, 2.8, 0.0 > 5.0 texture { Building } }
box { < -0.5, 0.0, -5.05 > < 0.5, 2.2, 0.0 > rotate < 0.0, 040.0, 0.0 > 
texture { EntranceDoor } }

cylinder { < 0.0, 2.8, 0.0 > < 0.0, (2.8+HeightOfBlades), 0.0 > 1.9 texture 
{ StairsSection } }


difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 000.0, 0.0 >
}
difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 036.0, 0.0 >
}
difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 072.0, 0.0 >
}
difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 108.0, 0.0 >
}
difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 144.0, 0.0 >
}
difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 180.0, 0.0 >
}
difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 216.0, 0.0 >
}
difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 252.0, 0.0 >
}
difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 286.0, 0.0 >
}
difference
{
 cylinder { < 0.0, 0.0, 0.0 > < 0.0, HeightOfBlades, 0.0 > 3.0 }
 cylinder { < 1.1, -0.01, 0.0 > < 1.1, (HeightOfBlades+0.01), 0.0 > 4.0 }
 translate < 2.8, 2.8, 0.0 >
 rotate < 0.0, 75.0, 0.0 >
 translate < -3.5, 0.0, 0.0 >
 texture { WindBlades }
 rotate < 0.0, 324.0, 0.0 >
}

union
{
 torus { 5.0, 0.1 translate < 0.0, 2.8, 0.0 > texture { 
WindCatcherFixtures } }
 torus { 5.5, 0.1 translate < 0.0, 2.8, 0.0 > texture { 
WindCatcherFixtures } }
 torus { 5.0, 0.1 translate < 0.0, (2.8+HeightOfBlades), 0.0 > texture { 
WindCatcherFixtures } }
 torus { 5.5, 0.1 translate < 0.0, (2.8+HeightOfBlades), 0.0 > texture { 
WindCatcherFixtures } }
 box { < 5.0, 2.8, -0.05 > < 12.5, (2.8+HeightOfBlades), 0.05 > rotate < 
0.0, 000.0, 0.0 > texture { WindCatchers } }
 box { < 5.0, 2.8, -0.05 > < 12.5, (2.8+HeightOfBlades), 0.05 > rotate < 
0.0, 120.0, 0.0 > texture { WindCatchers } }
 box { < 5.0, 2.8, -0.05 > < 12.5, (2.8+HeightOfBlades), 0.05 > rotate < 
0.0, 240.0, 0.0 > texture { WindCatchers } }
 cylinder { < -5.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 000.0, 
0.0 > texture { WindCatcherFixtures } }
 cylinder { < -5.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 120.0, 
0.0 > texture { WindCatcherFixtures } }
 cylinder { < -5.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 240.0, 
0.0 > texture { WindCatcherFixtures } }
 cylinder { < -5.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 000.0, 0.0 > texture { 
WindCatcherFixtures } }
 cylinder { < -5.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 120.0, 0.0 > texture { 
WindCatcherFixtures } }
 cylinder { < -5.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 240.0, 0.0 > texture { 
WindCatcherFixtures } }
 cylinder { < -12.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 060.0, 
0.0 > texture { WindCatcherFixtures } }   // Following the windcatcher's 
holds
 cylinder { < -12.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 180.0, 
0.0 > texture { WindCatcherFixtures } }
 cylinder { < -12.5, 2.8, 0.0 > < -5.0, 2.8, 0.0 > 0.1 rotate < 0.0, 300.0, 
0.0 > texture { WindCatcherFixtures } }
 cylinder { < -12.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 060.0, 0.0 > texture { 
WindCatcherFixtures } }
 cylinder { < -12.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 180.0, 0.0 > texture { 
WindCatcherFixtures } }
 cylinder { < -12.5, (2.8+HeightOfBlades), 0.0 > < -5.0, 
(2.8+HeightOfBlades), 0.0 > 0.1 rotate < 0.0, 300.0, 0.0 > texture { 
WindCatcherFixtures } }
 rotate AngleOfWindCatchers_360
}

union
{
 cylinder { < 0.0, (2.8+HeightOfBlades), 0.0 > < 0.0, (3.30+HeightOfBlades), 
0.0 > 5.0 texture { RoofPlatform } }
 cylinder { < 0.0, (2.8+HeightOfBlades+0.5), 0.0 > < 0.0, 
(2.8+HeightOfBlades+0.6), 0.0 > 1.5 texture { RoofDoor } }
 torus { 4.975, 0.025 translate < 0.0, (2.8+0.5+HeightOfBlades+0.34), 0.0 > 
texture { RoofReeling } }
 torus { 4.975, 0.025 translate < 0.0, (2.8+0.5+HeightOfBlades+0.67), 0.0 > 
texture { RoofReeling } }
 torus { 4.975, 0.025 translate < 0.0, (2.8+0.5+HeightOfBlades+1.0), 0.0 > 
texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 000.0, 0.0 > texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 036.0, 0.0 > texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 072.0, 0.0 > texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 108.0, 0.0 > texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 144.0, 0.0 > texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 180.0, 0.0 > texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 216.0, 0.0 > texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 252.0, 0.0 > texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 288.0, 0.0 > texture { RoofReeling } }
 cylinder { < 4.975, 15.5, 0.0 > < 4.975, (2.8+0.5+HeightOfBlades+0.975), 
0.0 > 0.025 rotate < 0.0, 324.0, 0.0 > texture { RoofReeling } }
}


Post a reply to this message

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