N
nvinhphu
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 of a cube containing
a set
of layered spheres. A layered sphere is a set of concentric spheres of
different
colors (called grains). So, in my program, I have the coordinates of
the center of the grains, its radii and the colors of each layers.
As the easiest way, I have used the Povray (www.povray.org/) program
by writing my grains data to text file of format required by Povray.
With this way, I can generate image of up to about 3000 grains. More
than that, the tracing progress of Povray is so slow.
I have therefore been looking for other more effective approaches. The
first one is to use a free C++ image library that can write images
containing spheres. The second way is to write my data to pixels.
My question is how to realize these two ways in real C++ code. Please
help me.
Many thanks in advance.
Phu
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 of a cube containing
a set
of layered spheres. A layered sphere is a set of concentric spheres of
different
colors (called grains). So, in my program, I have the coordinates of
the center of the grains, its radii and the colors of each layers.
As the easiest way, I have used the Povray (www.povray.org/) program
by writing my grains data to text file of format required by Povray.
With this way, I can generate image of up to about 3000 grains. More
than that, the tracing progress of Povray is so slow.
I have therefore been looking for other more effective approaches. The
first one is to use a free C++ image library that can write images
containing spheres. The second way is to write my data to pixels.
My question is how to realize these two ways in real C++ code. Please
help me.
Many thanks in advance.
Phu