Results 1 to 3 of 3

Thread: help with 3d camera movement

  1. #1
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help with 3d camera movement

    i am trying to get a camera to rotate around a box, but when the camera has rotated 180 degrees it abruptly switches direction and goes backward, and then when it gets back to where it started it abrubtly switches direction and does it all over again. here is my code

    Code:
    float I;
    void draw() {
      lights();
      background(0);
      I = I + PI/100;
      // Change height of the camera with mouseY
      camera(int(220*cos(I)), int(220*sin(I))+40, 0, // eyeX, eyeY, eyeZ
             0.0, 0.0, 0.0, // centerX, centerY, centerZ
            1, 1,0 ); // upX, upY, upZ
    in 2d that would create a perfect circle... i think



    ======

    can anyone help??? PLZ????
    Last edited by g0tp0t; 03-29-2010 at 10:23 PM.
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

  2. #2
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    What language is this? 'o.O?

  3. #3
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    What language is this? 'o.O?
    My guess is C, or related.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •