|
-
April 29th, 2000, 11:59 AM
#1
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!
-
May 13th, 2000, 10:26 AM
#2
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.
-
May 14th, 2000, 09:58 AM
#3
Re: 3D-effects-applets
Use Thread programming with your 3D Objects
Maybe this helps
Martin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|