|
|
BitViper wrote:
> Well I couldnt figure out how to change the density of it for the
> different rings, but did figure out how to accurately manage the color
> locations with an unexpectedly beautiful result.
Eureka moment while reading other responses and browsing tutorials
resulted in the attached output from above and below. The ring color map
was generated by a quick perl script I wrote to pull the colors from one
image and the alpha from a paired image, both from
http://planetpixelemporium.com. The planet imagemapped image also came
from there.
I have not tried scaling the planet and rings to proper scales yet, but
should be managable with the notes others have provided here.
/// saturnrings.pov ///
#include "colors.inc"
#include "saturnringsmap.inc"
global_settings {
max_trace_level 10
}
light_source {
1000
White
}
camera {
right x * image_width / image_height
location < -5, 2, 5 >
look_at 0
}
#declare planet = object {
sphere { 0, 2 }
texture {
pigment {
image_map {
jpeg "solarsystem/imagemaps/saturnmap.jpg"
map_type 1
interpolate 2
}
}
}
}
#declare m_rings = media {
scattering {
1, 1 // type, color
extinction 1 // default = 1
}
density {
cylindrical
scale 2
color_map { saturnringsmap }
}
}
#declare rings = object {
difference {
cylinder { < 0, -1, 0 >, < 0, 1, 0 >, 2 }
cylinder { < 0, -2, 0 >, < 0, 2, 0 >, 1.5 }
}
scale y * 0.01
hollow
texture { pigment { rgbt 1 } } // completely transparent
interior {
media { m_rings }
}
scale 2
}
union {
object { planet }
object { rings }
}
/// end saturnrings.pov ///
/// saturnringsmap.inc ///
#declare saturnringsmap = color_map {
[ 0.000 rgb < 0.863, 0.776, 0.580 > * 0.051 ]
[ 0.001 rgb < 0.831, 0.776, 0.580 > * 0.000 ]
[ 0.002 rgb < 0.831, 0.776, 0.580 > * 0.000 ]
[ 0.003 rgb < 0.831, 0.776, 0.580 > * 0.000 ]
[ 0.004 rgb < 0.831, 0.761, 0.580 > * 0.000 ]
[ 0.005 rgb < 0.800, 0.761, 0.580 > * 0.000 ]
[ 0.006 rgb < 0.800, 0.745, 0.580 > * 0.000 ]
[ 0.007 rgb < 0.800, 0.729, 0.580 > * 0.000 ]
[ 0.008 rgb < 0.769, 0.729, 0.580 > * 0.000 ]
[ 0.009 rgb < 0.769, 0.714, 0.580 > * 0.000 ]
[ 0.010 rgb < 0.769, 0.698, 0.612 > * 0.000 ]
[ 0.011 rgb < 0.737, 0.698, 0.580 > * 0.000 ]
[ 0.012 rgb < 0.737, 0.698, 0.612 > * 0.208 ]
[ 0.013 rgb < 0.737, 0.698, 0.612 > * 0.553 ]
[ 0.014 rgb < 0.737, 0.682, 0.612 > * 0.761 ]
[ 0.015 rgb < 0.737, 0.682, 0.612 > * 0.761 ]
[ 0.016 rgb < 0.737, 0.682, 0.643 > * 0.753 ]
[ 0.017 rgb < 0.737, 0.682, 0.643 > * 0.753 ]
[ 0.018 rgb < 0.737, 0.682, 0.675 > * 0.745 ]
[ 0.019 rgb < 0.737, 0.698, 0.706 > * 0.733 ]
[ 0.020 rgb < 0.737, 0.729, 0.706 > * 0.733 ]
[ 0.021 rgb < 0.769, 0.761, 0.769 > * 0.694 ]
[ 0.022 rgb < 0.831, 0.808, 0.831 > * 0.698 ]
[ 0.023 rgb < 0.863, 0.839, 0.863 > * 0.529 ]
[ 0.024 rgb < 0.894, 0.902, 0.925 > * 0.067 ]
[ 0.025 rgb < 0.925, 0.933, 0.957 > * 0.671 ]
[ 0.025 rgb < 0.988, 0.965, 0.925 > * 0.678 ]
[ 0.026 rgb < 0.988, 0.996, 0.988 > * 0.675 ]
[ 0.027 rgb < 0.988, 0.996, 0.988 > * 0.690 ]
[ 0.028 rgb < 0.988, 0.996, 0.957 > * 0.690 ]
[ 0.029 rgb < 0.988, 0.965, 0.925 > * 0.686 ]
[ 0.030 rgb < 0.957, 0.949, 0.863 > * 0.671 ]
[ 0.031 rgb < 0.957, 0.918, 0.800 > * 0.678 ]
[ 0.032 rgb < 0.925, 0.886, 0.737 > * 0.682 ]
[ 0.033 rgb < 0.894, 0.839, 0.675 > * 0.690 ]
[ 0.034 rgb < 0.863, 0.824, 0.612 > * 0.678 ]
[ 0.035 rgb < 0.863, 0.808, 0.612 > * 0.686 ]
[ 0.036 rgb < 0.831, 0.792, 0.549 > * 0.671 ]
[ 0.037 rgb < 0.863, 0.776, 0.580 > * 0.675 ]
[ 0.038 rgb < 0.863, 0.792, 0.549 > * 0.678 ]
[ 0.039 rgb < 0.863, 0.792, 0.549 > * 0.678 ]
[ 0.040 rgb < 0.863, 0.792, 0.580 > * 0.678 ]
[ 0.041 rgb < 0.863, 0.792, 0.549 > * 0.678 ]
[ 0.042 rgb < 0.863, 0.792, 0.580 > * 0.686 ]
[ 0.043 rgb < 0.863, 0.792, 0.580 > * 0.698 ]
[ 0.044 rgb < 0.863, 0.792, 0.549 > * 0.710 ]
[ 0.045 rgb < 0.831, 0.792, 0.580 > * 0.714 ]
[ 0.046 rgb < 0.863, 0.792, 0.549 > * 0.722 ]
[ 0.047 rgb < 0.863, 0.792, 0.549 > * 0.737 ]
[ 0.048 rgb < 0.863, 0.792, 0.549 > * 0.741 ]
[ 0.049 rgb < 0.863, 0.792, 0.549 > * 0.749 ]
[ 0.050 rgb < 0.863, 0.792, 0.549 > * 0.745 ]
[ 0.051 rgb < 0.863, 0.792, 0.580 > * 0.749 ]
[ 0.052 rgb < 0.863, 0.792, 0.549 > * 0.749 ]
[ 0.053 rgb < 0.863, 0.792, 0.549 > * 0.757 ]
[ 0.054 rgb < 0.863, 0.792, 0.580 > * 0.722 ]
[ 0.055 rgb < 0.863, 0.792, 0.549 > * 0.741 ]
[ 0.056 rgb < 0.863, 0.792, 0.549 > * 0.765 ]
[ 0.057 rgb < 0.863, 0.792, 0.580 > * 0.784 ]
[ 0.058 rgb < 0.863, 0.792, 0.580 > * 0.816 ]
[ 0.059 rgb < 0.863, 0.792, 0.549 > * 0.827 ]
[ 0.060 rgb < 0.863, 0.792, 0.580 > * 0.843 ]
[ 0.061 rgb < 0.863, 0.792, 0.549 > * 0.863 ]
[ 0.062 rgb < 0.831, 0.792, 0.580 > * 0.859 ]
[ 0.063 rgb < 0.800, 0.792, 0.612 > * 0.831 ]
[ 0.064 rgb < 0.769, 0.776, 0.612 > * 0.863 ]
[ 0.065 rgb < 0.737, 0.776, 0.643 > * 0.875 ]
[ 0.066 rgb < 0.737, 0.792, 0.675 > * 0.859 ]
[ 0.067 rgb < 0.737, 0.792, 0.706 > * 0.769 ]
[ 0.068 rgb < 0.737, 0.792, 0.737 > * 0.635 ]
[ 0.069 rgb < 0.800, 0.839, 0.769 > * 0.604 ]
[ 0.070 rgb < 0.831, 0.855, 0.800 > * 0.565 ]
[ 0.071 rgb < 0.894, 0.871, 0.800 > * 0.502 ]
[ 0.072 rgb < 0.894, 0.871, 0.800 > * 0.482 ]
[ 0.073 rgb < 0.894, 0.855, 0.737 > * 0.678 ]
[ 0.074 rgb < 0.894, 0.824, 0.675 > * 0.318 ]
[ 0.075 rgb < 0.863, 0.808, 0.643 > * 0.349 ]
[ 0.075 rgb < 0.831, 0.792, 0.580 > * 0.063 ]
[ 0.076 rgb < 0.831, 0.792, 0.580 > * 0.188 ]
[ 0.077 rgb < 0.769, 0.776, 0.580 > * 0.251 ]
[ 0.078 rgb < 0.737, 0.776, 0.643 > * 0.278 ]
[ 0.079 rgb < 0.737, 0.792, 0.706 > * 0.243 ]
[ 0.080 rgb < 0.737, 0.792, 0.737 > * 0.251 ]
[ 0.081 rgb < 0.769, 0.808, 0.769 > * 0.239 ]
[ 0.082 rgb < 0.800, 0.824, 0.800 > * 0.318 ]
[ 0.083 rgb < 0.800, 0.839, 0.769 > * 0.000 ]
[ 0.084 rgb < 0.831, 0.855, 0.831 > * 0.612 ]
[ 0.085 rgb < 0.863, 0.871, 0.831 > * 0.788 ]
[ 0.086 rgb < 0.863, 0.871, 0.831 > * 0.914 ]
[ 0.087 rgb < 0.894, 0.871, 0.800 > * 0.925 ]
[ 0.088 rgb < 0.894, 0.855, 0.769 > * 0.929 ]
[ 0.089 rgb < 0.894, 0.855, 0.737 > * 0.933 ]
[ 0.090 rgb < 0.894, 0.839, 0.706 > * 0.898 ]
[ 0.091 rgb < 0.863, 0.824, 0.643 > * 0.933 ]
[ 0.092 rgb < 0.863, 0.808, 0.612 > * 0.910 ]
[ 0.093 rgb < 0.863, 0.792, 0.580 > * 0.867 ]
[ 0.094 rgb < 0.831, 0.776, 0.580 > * 0.906 ]
[ 0.095 rgb < 0.831, 0.776, 0.549 > * 0.886 ]
[ 0.096 rgb < 0.831, 0.761, 0.580 > * 0.882 ]
[ 0.097 rgb < 0.800, 0.761, 0.549 > * 0.878 ]
[ 0.098 rgb < 0.800, 0.745, 0.580 > * 0.886 ]
[ 0.099 rgb < 0.800, 0.745, 0.549 > * 0.882 ]
[ 0.100 rgb < 0.769, 0.729, 0.549 > * 0.882 ]
[ 0.101 rgb < 0.769, 0.729, 0.549 > * 0.878 ]
[ 0.102 rgb < 0.737, 0.714, 0.580 > * 0.886 ]
[ 0.103 rgb < 0.737, 0.698, 0.580 > * 0.882 ]
[ 0.104 rgb < 0.706, 0.682, 0.580 > * 0.871 ]
[ 0.105 rgb < 0.706, 0.682, 0.580 > * 0.867 ]
[ 0.106 rgb < 0.675, 0.667, 0.580 > * 0.855 ]
[ 0.107 rgb < 0.675, 0.667, 0.580 > * 0.855 ]
[ 0.108 rgb < 0.643, 0.651, 0.612 > * 0.839 ]
[ 0.109 rgb < 0.643, 0.635, 0.580 > * 0.804 ]
[ 0.110 rgb < 0.643, 0.635, 0.612 > * 0.804 ]
[ 0.111 rgb < 0.612, 0.635, 0.612 > * 0.796 ]
[ 0.112 rgb < 0.612, 0.620, 0.612 > * 0.808 ]
[ 0.113 rgb < 0.612, 0.620, 0.612 > * 0.776 ]
[ 0.114 rgb < 0.612, 0.604, 0.612 > * 0.784 ]
[ 0.115 rgb < 0.612, 0.604, 0.612 > * 0.808 ]
[ 0.116 rgb < 0.612, 0.604, 0.612 > * 0.835 ]
[ 0.117 rgb < 0.612, 0.620, 0.580 > * 0.855 ]
[ 0.118 rgb < 0.612, 0.604, 0.580 > * 0.843 ]
[ 0.119 rgb < 0.643, 0.620, 0.549 > * 0.839 ]
[ 0.120 rgb < 0.643, 0.635, 0.549 > * 0.820 ]
[ 0.121 rgb < 0.643, 0.635, 0.549 > * 0.820 ]
[ 0.122 rgb < 0.675, 0.620, 0.518 > * 0.843 ]
[ 0.123 rgb < 0.643, 0.635, 0.549 > * 0.831 ]
[ 0.124 rgb < 0.675, 0.620, 0.518 > * 0.851 ]
[ 0.125 rgb < 0.643, 0.604, 0.518 > * 0.827 ]
[ 0.125 rgb < 0.612, 0.604, 0.518 > * 0.824 ]
[ 0.126 rgb < 0.580, 0.588, 0.549 > * 0.804 ]
[ 0.127 rgb < 0.549, 0.573, 0.518 > * 0.780 ]
[ 0.128 rgb < 0.518, 0.557, 0.518 > * 0.773 ]
[ 0.129 rgb < 0.518, 0.525, 0.518 > * 0.773 ]
[ 0.130 rgb < 0.486, 0.525, 0.518 > * 0.761 ]
[ 0.131 rgb < 0.486, 0.525, 0.518 > * 0.769 ]
[ 0.132 rgb < 0.486, 0.525, 0.518 > * 0.765 ]
[ 0.133 rgb < 0.486, 0.541, 0.549 > * 0.753 ]
[ 0.134 rgb < 0.486, 0.525, 0.518 > * 0.757 ]
[ 0.135 rgb < 0.486, 0.525, 0.549 > * 0.749 ]
[ 0.136 rgb < 0.486, 0.525, 0.518 > * 0.761 ]
[ 0.137 rgb < 0.486, 0.525, 0.549 > * 0.753 ]
[ 0.138 rgb < 0.486, 0.525, 0.518 > * 0.788 ]
[ 0.139 rgb < 0.518, 0.525, 0.518 > * 0.808 ]
[ 0.140 rgb < 0.518, 0.525, 0.486 > * 0.808 ]
[ 0.141 rgb < 0.549, 0.525, 0.486 > * 0.800 ]
[ 0.142 rgb < 0.580, 0.541, 0.455 > * 0.808 ]
[ 0.143 rgb < 0.580, 0.541, 0.455 > * 0.827 ]
[ 0.144 rgb < 0.612, 0.541, 0.455 > * 0.796 ]
[ 0.145 rgb < 0.612, 0.541, 0.424 > * 0.773 ]
[ 0.146 rgb < 0.643, 0.557, 0.424 > * 0.761 ]
[ 0.147 rgb < 0.612, 0.541, 0.424 > * 0.804 ]
[ 0.148 rgb < 0.612, 0.541, 0.424 > * 0.765 ]
[ 0.149 rgb < 0.580, 0.541, 0.486 > * 0.749 ]
[ 0.150 rgb < 0.549, 0.525, 0.486 > * 0.714 ]
[ 0.151 rgb < 0.549, 0.525, 0.518 > * 0.725 ]
[ 0.152 rgb < 0.518, 0.525, 0.518 > * 0.725 ]
[ 0.153 rgb < 0.486, 0.525, 0.518 > * 0.773 ]
[ 0.154 rgb < 0.486, 0.525, 0.518 > * 0.776 ]
[ 0.155 rgb < 0.486, 0.525, 0.518 > * 0.773 ]
[ 0.156 rgb < 0.486, 0.525, 0.486 > * 0.757 ]
[ 0.157 rgb < 0.518, 0.525, 0.486 > * 0.773 ]
[ 0.158 rgb < 0.549, 0.525, 0.486 > * 0.757 ]
[ 0.159 rgb < 0.549, 0.541, 0.486 > * 0.745 ]
[ 0.160 rgb < 0.580, 0.541, 0.486 > * 0.753 ]
[ 0.161 rgb < 0.580, 0.541, 0.455 > * 0.749 ]
[ 0.162 rgb < 0.580, 0.541, 0.455 > * 0.725 ]
[ 0.163 rgb < 0.612, 0.541, 0.455 > * 0.729 ]
[ 0.164 rgb < 0.580, 0.541, 0.455 > * 0.690 ]
[ 0.165 rgb < 0.580, 0.525, 0.455 > * 0.733 ]
[ 0.166 rgb < 0.580, 0.541, 0.455 > * 0.784 ]
[ 0.167 rgb < 0.580, 0.525, 0.455 > * 0.702 ]
[ 0.168 rgb < 0.580, 0.541, 0.455 > * 0.753 ]
[ 0.169 rgb < 0.549, 0.525, 0.455 > * 0.737 ]
[ 0.170 rgb < 0.549, 0.541, 0.455 > * 0.753 ]
[ 0.171 rgb < 0.549, 0.525, 0.486 > * 0.702 ]
[ 0.172 rgb < 0.518, 0.525, 0.486 > * 0.682 ]
[ 0.173 rgb < 0.518, 0.525, 0.486 > * 0.678 ]
[ 0.174 rgb < 0.518, 0.525, 0.486 > * 0.690 ]
[ 0.175 rgb < 0.518, 0.525, 0.486 > * 0.741 ]
[ 0.175 rgb < 0.518, 0.525, 0.486 > * 0.718 ]
[ 0.176 rgb < 0.486, 0.525, 0.486 > * 0.741 ]
[ 0.177 rgb < 0.486, 0.525, 0.486 > * 0.714 ]
[ 0.178 rgb < 0.486, 0.525, 0.518 > * 0.725 ]
[ 0.179 rgb < 0.486, 0.525, 0.518 > * 0.749 ]
[ 0.180 rgb < 0.486, 0.525, 0.518 > * 0.753 ]
[ 0.181 rgb < 0.486, 0.525, 0.518 > * 0.757 ]
[ 0.182 rgb < 0.486, 0.525, 0.518 > * 0.769 ]
[ 0.183 rgb < 0.486, 0.525, 0.518 > * 0.643 ]
[ 0.184 rgb < 0.518, 0.541, 0.518 > * 0.529 ]
[ 0.185 rgb < 0.549, 0.588, 0.580 > * 0.498 ]
[ 0.186 rgb < 0.643, 0.651, 0.612 > * 0.463 ]
[ 0.187 rgb < 0.675, 0.698, 0.675 > * 0.420 ]
[ 0.188 rgb < 0.737, 0.729, 0.706 > * 0.463 ]
[ 0.189 rgb < 0.737, 0.745, 0.706 > * 0.655 ]
[ 0.190 rgb < 0.737, 0.729, 0.706 > * 0.380 ]
[ 0.191 rgb < 0.706, 0.714, 0.706 > * 0.388 ]
[ 0.192 rgb < 0.706, 0.714, 0.706 > * 0.396 ]
[ 0.193 rgb < 0.643, 0.651, 0.643 > * 0.251 ]
[ 0.194 rgb < 0.643, 0.635, 0.643 > * 0.392 ]
[ 0.195 rgb < 0.612, 0.620, 0.612 > * 0.263 ]
[ 0.196 rgb < 0.580, 0.604, 0.612 > * 0.192 ]
[ 0.197 rgb < 0.580, 0.604, 0.612 > * 0.510 ]
[ 0.198 rgb < 0.580, 0.604, 0.612 > * 0.310 ]
[ 0.199 rgb < 0.580, 0.604, 0.612 > * 0.247 ]
[ 0.200 rgb < 0.580, 0.588, 0.580 > * 0.224 ]
[ 0.201 rgb < 0.580, 0.588, 0.612 > * 0.106 ]
[ 0.202 rgb < 0.580, 0.588, 0.580 > * 0.286 ]
[ 0.203 rgb < 0.580, 0.573, 0.580 > * 0.243 ]
[ 0.204 rgb < 0.549, 0.573, 0.580 > * 0.259 ]
[ 0.205 rgb < 0.549, 0.573, 0.580 > * 0.498 ]
[ 0.206 rgb < 0.549, 0.573, 0.580 > * 0.263 ]
[ 0.207 rgb < 0.549, 0.573, 0.580 > * 0.294 ]
[ 0.208 rgb < 0.549, 0.557, 0.549 > * 0.318 ]
[ 0.209 rgb < 0.549, 0.557, 0.580 > * 0.271 ]
[ 0.210 rgb < 0.549, 0.557, 0.549 > * 0.263 ]
[ 0.211 rgb < 0.518, 0.557, 0.518 > * 0.420 ]
[ 0.212 rgb < 0.549, 0.557, 0.580 > * 0.314 ]
[ 0.213 rgb < 0.518, 0.541, 0.549 > * 0.278 ]
[ 0.214 rgb < 0.518, 0.525, 0.549 > * 0.282 ]
[ 0.215 rgb < 0.518, 0.525, 0.518 > * 0.275 ]
[ 0.216 rgb < 0.518, 0.525, 0.549 > * 0.255 ]
[ 0.217 rgb < 0.518, 0.525, 0.518 > * 0.267 ]
[ 0.218 rgb < 0.486, 0.525, 0.518 > * 0.286 ]
[ 0.219 rgb < 0.486, 0.510, 0.518 > * 0.294 ]
[ 0.220 rgb < 0.486, 0.494, 0.518 > * 0.282 ]
[ 0.221 rgb < 0.486, 0.494, 0.518 > * 0.259 ]
[ 0.222 rgb < 0.486, 0.494, 0.486 > * 0.286 ]
[ 0.223 rgb < 0.486, 0.494, 0.486 > * 0.275 ]
[ 0.224 rgb < 0.486, 0.478, 0.486 > * 0.271 ]
[ 0.225 rgb < 0.486, 0.478, 0.486 > * 0.251 ]
[ 0.225 rgb < 0.455, 0.478, 0.486 > * 0.255 ]
[ 0.226 rgb < 0.486, 0.478, 0.486 > * 0.271 ]
[ 0.227 rgb < 0.455, 0.463, 0.455 > * 0.267 ]
[ 0.228 rgb < 0.455, 0.463, 0.486 > * 0.247 ]
[ 0.229 rgb < 0.455, 0.447, 0.455 > * 0.259 ]
[ 0.230 rgb < 0.455, 0.447, 0.455 > * 0.255 ]
[ 0.231 rgb < 0.424, 0.447, 0.455 > * 0.224 ]
[ 0.232 rgb < 0.424, 0.431, 0.455 > * 0.267 ]
[ 0.233 rgb < 0.424, 0.416, 0.424 > * 0.239 ]
[ 0.234 rgb < 0.392, 0.400, 0.424 > * 0.231 ]
[ 0.235 rgb < 0.424, 0.416, 0.424 > * 0.212 ]
[ 0.236 rgb < 0.392, 0.400, 0.424 > * 0.239 ]
[ 0.237 rgb < 0.392, 0.400, 0.392 > * 0.192 ]
[ 0.238 rgb < 0.392, 0.400, 0.392 > * 0.051 ]
[ 0.239 rgb < 0.392, 0.384, 0.392 > * 0.212 ]
[ 0.240 rgb < 0.361, 0.384, 0.361 > * 0.243 ]
[ 0.241 rgb < 0.361, 0.384, 0.361 > * 0.216 ]
[ 0.242 rgb < 0.361, 0.369, 0.361 > * 0.149 ]
[ 0.243 rgb < 0.361, 0.369, 0.361 > * 0.188 ]
[ 0.244 rgb < 0.361, 0.369, 0.361 > * 0.278 ]
[ 0.245 rgb < 0.361, 0.353, 0.361 > * 0.169 ]
[ 0.246 rgb < 0.329, 0.353, 0.329 > * 0.133 ]
[ 0.247 rgb < 0.361, 0.353, 0.361 > * 0.149 ]
[ 0.248 rgb < 0.329, 0.353, 0.329 > * 0.165 ]
[ 0.250 rgb < 0.000, 0.000, 0.000 > * 0.000 ]
}
/// end saturnringsmap.inc ///
Post a reply to this message
Attachments:
Download 'saturn_rings_below.png' (64 KB)
Download 'saturn_rings_above.png' (69 KB)
Preview of image 'saturn_rings_below.png'
Preview of image 'saturn_rings_above.png'
|
|