|
![](/i/fill.gif) |
Hi!
I looked at some answers to read data and to draw spheres in 3D BOX. I am
very interested in that. So, I am trying to do those. But, drawn spheres is
not matched with data as a position. My data file is 'practice.txt'. Also,
format is as following:
100.2 200.3 0
200.1 100.2 0
10.2 23.1 0
etc
For original data(sphere position), I use 'space' instead of 'comma' between
values.
Program is also as following:
#fopen MyFile "practice.txt" read
#while (defined(MyFile))
#read (MyFile,Var1,Var2,Var3)
sphere {
<Var1, Var3, Var2>, 0.5
texture {
pigment { color Yellow }
}
}
#end
Is there any problem on the program and/or data file format?
Thank you very much for your help.
Post a reply to this message
|
![](/i/fill.gif) |