Click to See Complete Forum and Search --> : 3D-effects-applets
flossie
April 29th, 2000, 11:59 AM
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! :)
musch
May 13th, 2000, 10:26 AM
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.
Gritsch
May 14th, 2000, 09:58 AM
Use Thread programming with your 3D Objects :)
Maybe this helps
Martin
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.