CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2000
    Location
    Germany
    Posts
    18

    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!


  2. #2
    Join Date
    Apr 2000
    Location
    Austria (not Australia)
    Posts
    108

    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.


  3. #3
    Join Date
    Nov 1999
    Location
    Germany
    Posts
    42

    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
  •  





Click Here to Expand Forum to Full Width

Featured