Results 1 to 4 of 4

Thread: x-axis goin in the opposite direction

  1. #1
    Senior Member Regular Contributor
    Join Date
    Oct 2003
    Location
    Arlington, Tx, USA
    Posts
    178

    x-axis goin in the opposite direction

    either my program has a prob or my basicz have gone wrong. as far as i know, the x-axis in opengl goes from left to right (i.e, it increases from left to right), but whenever i increase my x-values either to move the camera, or to draw even simple lines, its done along the -ve x-axis. i have my viewvolume set as

    glFrustum -100, 100, -100, 100, 10, 210

    i dont know whatz goin wrong. plz help.

  2. #2
    Member Contributor
    Join Date
    Jun 2003
    Location
    Blacksburg, VA 24060, USA
    Posts
    59

    Re: x-axis goin in the opposite direction

    This will happen if u have done
    glScalef(scaleX, scaleY, scaleZ);
    and scaleX is a negative value.

    - Chetan

  3. #3
    Senior Member Regular Contributor
    Join Date
    Oct 2003
    Location
    Arlington, Tx, USA
    Posts
    178

    Re: x-axis goin in the opposite direction

    i m not using the glscale function. one more thing i forgot to mention is that i am using vb6 with opengl. vb6 has a scale fucntion for the control and i have set it as
    Pic1.Scale (-100, 100)-(100, -100)

  4. #4
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: x-axis goin in the opposite direction

    Have you transformed the camera correct ?, if you put it on the "other" side of the Z axis looking at the origin the X axis will swap direction.

    Mikael

Similar Threads

  1. Replies: 3
    Last Post: 04-07-2016, 04:00 PM
  2. Rotate direction with regard to X axis is reversed
    By zzzhhh in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-21-2015, 12:37 PM
  3. Rotate direction with regard to X axis is reversed
    By zzzhhh in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-21-2015, 12:36 PM
  4. OpenGL - Axis Direction
    By swinefeaster in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-16-2005, 12:59 PM
  5. problems with axis direction
    By mithun_daa in forum OpenGL: Advanced Coding
    Replies: 14
    Last Post: 11-03-2003, 01:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean