PDA

View Full Version : cylinder in opengl



Numan.pk
06-20-2013, 02:16 AM
Have a nice day to all

i have a problem in rotation, i have made the cylindrical shape glasses in opengl when i rotate the glass so it become large in size. so please if any body know about this problem please guide me.


Numan Ali
Pakistan

tonyo_au
06-20-2013, 07:25 AM
i rotate the glass so it become large in size

to rotate an object you can apply a rotation matrix to the viewmodel matrix with glRotatef
to change the size of an object you can apply a scale matrix to the viewmodel matrix with glScalef

do these prior to drawing the object