Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: Having issue with rotation of cube

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    9

    Having issue with rotation of cube

    I am trying to rotate cube which is placed far away from origin(0,0), like i set model view projection using glOrtho( 80, 81, 25, 26, -100, 100);
    When i rotate object it will look like stretched its not seem properly, i also tried the method translation , rotation and again translate back to original position but its not work its just displaced the object.
    Please any body faced this type of problem please help me


    Thank you.....

  2. #2
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    9
    Anybody faces this type of problem
    Click image for larger version. 

Name:	Rotational cube.JPG 
Views:	54 
Size:	12.7 KB 
ID:	1040

    Before Rotation it will look like Figure A after rotating it will look Like Figure B I dont want change its shape
    Last edited by jitendrapatil; 05-30-2013 at 01:15 AM. Reason: Add image

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    When i rotate object it will look like stretched

    Depending on how you rotate it, it can look like it is stretching.

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    9
    Anybody faces this type of problem

    Click image for larger version. 

Name:	Rotational cube.JPG 
Views:	38 
Size:	12.7 KB 
ID:	1046
    Before Rotation it will look like Figure A after rotating it will look Like Figure B I dont want change its shape

  5. #5
    Intern Contributor
    Join Date
    Jul 2006
    Posts
    72
    Why did you just repost your previous reply?

    PS. none of your post give enough information to answer with anything more helpful. What exactly are you doing?

  6. #6
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,215
    glOrtho( 80, 81, 25, 26, -100, 100);
    Try using a perspective projection instead.

  7. #7
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    9
    ya its done using perspective projection thanks

Posting Permissions

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