|
|
Dear all,
I would like to generate images like the ones in the right column at this link
http://www.micthemodel.org/pages/examples.html (Sorry but I can not post
attachment).
These images are in fact 2D slices of a 3D image that is a cube containing a set
of layered spheres. A layered sphere is a set of concentric spheres of different
colors. In my program (in fact, this is the visualisation of cement hydration
simulation), I have the coordinate and radius of the spheres and the color as
well.
My Povray file is (it gave bad images): #include and camera ... are excluded for
sake of simplicity:
For one three-layer sphere:
union{
sphere{
<71.1894,91.2060,31.1711>, 27.8285
texture{
pigment { color Red}
}
}
sphere{
<71.1894,91.2060,31.1711>, 30.0000
texture{
pigment { color Blue}
}
}
sphere{
<71.1894,91.2060,31.1711>, 31.1088
texture{
pigment { color Cyan}
}
}
}
Now, for the whole set of layered spheres, I did
union{
// the description for every spheres
}
------------------------------------------
With this one, I did see the spheres but just one color CYAN.
Could you please help me how to build a good image that shows different colors
for each layers.
To get 2D slice from the above, I make an intersection of the above with a
plane, but still got bad images.
I am looking forward to hearing your help.
Many thanks in advance.
Vinh Phu Nguyen
Post a reply to this message
|
|