PDA

View Full Version : Having issue with rotation of cube



jitendrapatil
05-27-2013, 10:39 PM
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.....

jitendrapatil
05-29-2013, 09:42 PM
Anybody faces this type of problem
1040

Before Rotation it will look like Figure A after rotating it will look Like Figure B I dont want change its shape

tonyo_au
05-30-2013, 01:05 AM
When i rotate object it will look like stretched
Depending on how you rotate it, it can look like it is stretching.

jitendrapatil
06-02-2013, 09:46 PM
Anybody faces this type of problem

1046
Before Rotation it will look like Figure A after rotating it will look Like Figure B I dont want change its shape

tanzanite
06-04-2013, 04:13 PM
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?

mhagain
06-04-2013, 06:14 PM
glOrtho( 80, 81, 25, 26, -100, 100);

Try using a perspective projection instead.

jitendrapatil
06-05-2013, 02:42 AM
ya its done using perspective projection thanks