-
3D-effects-applets
how can you repeat a circle sized 100 pixels, say 50 times, in order to produce a 3 D effect? i want to make a cylinder and i believe that repeating the circle 50times should be sufficient enough to do this and i want it to slope at an angle...say 45 degrees...any help will be much appreciated! :)
-
Re: 3D-effects-applets
int xStart, yStart;
double angle=Math.PI/4;
int ds=2;
for (int i=0; i<50; i++) {
g.drawCircle(i*ds*cos(angle)+xStart, i*ds*sin(angle)+yStart, radius);
}
...or something like that should do what you want, but I doubt it will look very 3d.
-
Re: 3D-effects-applets
Use Thread programming with your 3D Objects :)
Maybe this helps
Martin