POV-Ray : Newsgroups : povray.general : Converter into Meshes : Re: Converter into Meshes Server Time
29 Jul 2024 18:18:08 EDT (-0400)
  Re: Converter into Meshes  
From: Sven Littkowski
Date: 24 Sep 2010 19:15:17
Message: <4c9d3105@news.povray.org>
Thanks, Simone. I found it, and I used it. Still, my scene doesn't show up 
within Crossroads 3D, despite that it has been imported without problem.

Can you try and find out, what's wrong?

Here's the entire schene, no additional INCLUDE file is required. Thanks a 
lot!

Sven

----------------------------

// 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, 2000.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 } }


#declare Base=object
{
 union
 {
  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 } }
 }
}

#declare Stairs=object
{
 cylinder { < 0.0, 2.8, 0.0 > < 0.0, (2.8+HeightOfBlades), 0.0 > 1.9 texture 
{ StairsSection } }
}

#declare Blade=object
{
 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 }
}

#declare Turbine=object
{
 union
 {
  object { Blade rotate < 0.0, 000.0, 0.0 > }
  object { Blade rotate < 0.0, 036.0, 0.0 > }
  object { Blade rotate < 0.0, 072.0, 0.0 > }
  object { Blade rotate < 0.0, 108.0, 0.0 > }
  object { Blade rotate < 0.0, 144.0, 0.0 > }
  object { Blade rotate < 0.0, 180.0, 0.0 > }
  object { Blade rotate < 0.0, 216.0, 0.0 > }
  object { Blade rotate < 0.0, 252.0, 0.0 > }
  object { Blade rotate < 0.0, 288.0, 0.0 > }
  object { Blade rotate < 0.0, 324.0, 0.0 > }
  torus { 4.50, 0.05 translate < 0.0, 2.8, 0.0 > texture { 
WindBladesDrives } }
  torus { 2.75, 0.05 translate < 0.0, 2.8, 0.0 > texture { 
WindBladesDrives }  }
  torus { 4.50, 0.05 translate < 0.0, (2.8+HeightOfBlades), 0.0 > texture 
{ WindBladesDrives } }
  torus { 2.75, 0.05 translate < 0.0, (2.8+HeightOfBlades), 0.0 > texture 
{ WindBladesDrives }  }
 }
}

#declare WindCatcher=object
{
 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
}

#declare Platform=object
{
 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 } }
 }
}

#declare Maglev=union
{
 object { Base }
 object { Stairs }
 object { Turbine }
 object { WindCatcher }
 object { Platform }
}

object { Maglev }


Post a reply to this message

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