|
![](/i/fill.gif) |
CLOUD CITY: "HABITAT" sub thread
Please see below the scene code. I started to work on the habitat module
which hovers in swarms around the intended futuristic skyscrapers and
above and below the clouds.
I have a problem:
I make the hull hollow with a "difference" of the same shape but
slightly smaller side. However, I get strange results when watching the
habitat from below: the surface should be smooth because only from the
inside shape (difference) I take again some items off with another
difference. This should not impact the outside shape. And still, it
does. Help is welcome.
------------------------------------------------------
#declare MyHullOutsideBottom = texture
{
pigment { color rgbt < 0.8039216, 0.5882353, 0.29411765, 0.00 > }
}
#declare MyHullOutsideTop = texture
{
pigment { color rgbt < 0.4039216, 0.1882353, 0.09411765, 0.75 > }
}
#declare MyHull = texture
{
gradient y
texture_map
{
[ 0.00 MyHullOutsideBottom ] // Hull Bronze_Metal /**/
[ 0.05 MyHullOutsideBottom ] // Hull
[ 0.05 MyHullOutsideTop ] // Lower Deck Window Stripe
[ 0.08 MyHullOutsideTop ] // Lower Deck Window Stripe
[ 0.08 MyHullOutsideBottom ] // Cupola Base
[ 0.25 MyHullOutsideBottom ] // Cupola Base
[ 0.25 MyHullOutsideTop ] // Cupola
[ 0.32 MyHullOutsideTop ] // Cupola
[ 0.32 MyHullOutsideBottom ] // Cupola Railing
[ 0.32 MyHullOutsideBottom ] // Cupola Railing
[ 0.33 MyHullOutsideTop ] // Cupola
[ 1.00 MyHullOutsideTop ] // Cupola
}
translate < 0.0, -4.8812, 0.0 >
scale 1.0*(4.8812*2.2975)
}
#declare MyHullInsideBottom = texture
{
pigment { color rgb < 0.7843137, 0.654902, 0.4156863 > }
}
#declare MyHullInsideTop = texture
{
pigment { color rgbt < 0.4039216, 0.1882353, 0.09411765, 0.75 > }
}
#declare MyInterior = texture
{
gradient y
texture_map
{
[ 0.00 MyHullInsideBottom ] // Hull Bronze_Metal /**/
[ 0.05 MyHullInsideBottom ] // Hull
[ 0.05 MyHullInsideTop ] // Lower Deck Window Stripe
[ 0.08 MyHullInsideTop ] // Lower Deck Window Stripe
[ 0.08 MyHullInsideBottom ] // Cupola Base
[ 0.25 MyHullInsideBottom ] // Cupola Base
[ 0.25 MyHullInsideTop ] // Cupola
[ 0.32 MyHullInsideTop ] // Cupola
[ 0.32 MyHullInsideBottom ] // Cupola Railing
[ 0.32 MyHullInsideBottom ] // Cupola Railing
[ 0.33 MyHullInsideTop ] // Cupola
[ 1.00 MyHullInsideTop ] // Cupola
}
translate < 0.0, -4.8812, 0.0 >
scale -1.0*(4.8812*2.2975)
}
camera
{
/*ultra_wide_angle*/ //angle 20
location < -25.0 , -15.0 , 0.0 >
//right x*image_width/image_height // not needed for v3.8
look_at < 0.0 , 0.0 , 0.0 >
}
light_source
{
< -500.0, -500.0, -500.0 >
color 1.0 * 0.3//< 1.0, 0.62353, 0.46667 >*2
}
#declare HomeBasic = blob
{
threshold 0.35
sphere { < 0.0, 0.0, 0.0 > 26.00 1.85 scale < 1.01, 0.25, 1.01 > } //
9.7624 meter tall (-4.8812 m to 4.8812 m) and exactly 19 meter usable
inside radius (38 meter diameter)
cylinder { < 0.0, 0.0, 0.0 > < 19.0, 0.0, 0.0 > 4.5 0.85 rotate < 0.0,
000.0, 0.0 > }
cylinder { < 0.0, 0.0, 0.0 > < 19.0, 0.0, 0.0 > 4.5 0.85 rotate < 0.0,
120.0, 0.0 > }
cylinder { < 0.0, 0.0, 0.0 > < 19.0, 0.0, 0.0 > 4.5 0.85 rotate < 0.0,
240.0, 0.0 > }
}
#declare HomeExact = difference
{
object { HomeBasic }
cylinder { < 20.0, 0.0, 0.0 > < 25.0, 0.0, 0.0 > 5.0 rotate < 0.0,
000.0, 0.0 > }
cylinder { < 20.0, 0.0, 0.0 > < 25.0, 0.0, 0.0 > 5.0 rotate < 0.0,
120.0, 0.0 > }
cylinder { < 20.0, 0.0, 0.0 > < 25.0, 0.0, 0.0 > 5.0 rotate < 0.0,
240.0, 0.0 > }
}
#declare HomeHollow = difference
{
object { HomeExact }
difference
{ // should be 0.999
object { HomeExact scale < 0.999,0.979,0.999 > /*texture { MyHull }*/
pigment { color rgbt < 0.8039216, 0.5882353, 0.29411765, 0.00 > } }
// cylinder { < 0.0, 4.8812, 0.0 > < 0.0, 4.9812, 0.0 > 05.0 pigment
{ color rgb < 0.5098039, 0.3137255, 0.2156863 > } } // Ceiling -
5.0812 m above main deck
cylinder { < 0.0, -1.30, 0.0 > < 0.0, -1.20, 0.0 > 19.0 pigment {
color rgb < 0.5098039, 0.3137255, 0.2156863 > } } // Main Deck -
usable diameter: exactly 19 meters/units - deck thickness: 0.1 meters/units
cylinder { < 0.0, -4.30, 0.0 > < 0.0, -4.20, 0.0 > 10.0 pigment {
color rgb < 0.5098039, 0.3137255, 0.2156863 > } } // Bottom Deck -
usable diameter: exactly 19 meters/units - ceiling height: exactly 3
meters /units
union
{
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
000.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
030.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
060.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
090.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
120.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
150.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
180.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
210.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
240.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
270.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
300.0, 0.0 > }
box { < 10.0, -4.2, -0.05 > < 25.0, -1.3, 0.05 > rotate < 0.0,
330.0, 0.0 > }
texture { MyHullInsideBottom }
rotate < 0.0, 15.0, 0.0 >
}
}
// cylinder { < 0.0, -4.00, 0.0 > < 0.0, -1.15, 0.0 > 14.0 pigment {
color rgb < 0.5098039, 0.3137255, 0.2156863 > } } // Volume for Bottom
Deck
texture { MyHull }
}
#declare LightsOrangeRings = union
{
torus { 2.475 0.025 rotate < 0.0, 0.0, 90.0 > translate < 20.0, 0.0,
0.0 > rotate < 0.0, 000.0, 0.0 > }
torus { 2.475 0.025 rotate < 0.0, 0.0, 90.0 > translate < 20.0, 0.0,
0.0 > rotate < 0.0, 120.0, 0.0 > }
torus { 2.475 0.025 rotate < 0.0, 0.0, 90.0 > translate < 20.0, 0.0,
0.0 > rotate < 0.0, 240.0, 0.0 > }
pigment { color rgb < 0.8784314, 0.2, 0.003921569 > }
finish { emission 1.0 }
}
#declare HomeLights = union
{
object { HomeHollow }
object { LightsOrangeRings }
light_source
{
< 0.0, 5.5, 0.0 >
color rgb 0.2
}
// cylinder { < 0.0, -1.3, 0.0 > < 0.0, -1.19, 0.0 > 19.0 pigment {
color rgb < 0.145098, 0.1921569, 0.05882353 > } } // measuring deck
diameter (do not use)
}
object { HomeLights scale 0.8 translate < 0.0, 0.0, 0.0 > rotate < 0.0,
000.0, 0.0 >}
---
Diese E-Mail wurde von AVG auf Viren geprüft.
http://www.avg.com
Post a reply to this message
|
![](/i/fill.gif) |