Try rotating on the Z axis instead of the Y axis: Program to create a house like figure and rotate ir about a given fixed point using OpenGL functions. #include float house 112 = {{100,200},{200,250},{300,200},{100,200},{100,100},{175,100},{175,150},{225,150},{225,100},{300,100},{300,200}}; void display() { glClearColor(1,1,1,0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0,800,0,800); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); //NORMAL HOUSE glColor3f(1,0,0); glBegin(GL_LINE_LOOP); for(int i=0;i.
Try rotating on the Z axis instead of the Y axis: //Program to create a house like figure and rotate ir about a given fixed point using OpenGL functions. #include float house 112 = {{100,200},{200,250},{300,200},{100,200},{100,100},{175,100},{175,150},{225,150},{225,100},{300,100},{300,200}}; void display() { glClearColor(1,1,1,0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0,800,0,800); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); //NORMAL HOUSE glColor3f(1,0,0); glBegin(GL_LINE_LOOP); for(int i=0;i.
The above modification displays the output. But it doesnot rotate the house about its bottom left corner which is at 100,100. So I tried this: glTranslatef(-100,-100,0); glRotatef(30,0,0,1); glTranslatef(100,100,0); But stil it doesn't work.
Why? – footy May 10 at 13:46 1 @footy: Edited. Looks like those transforms were in the wrong order.
– genpfault May 10 at 18:09.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.