Show all posts by user
Computer graphics
Page 1 of 1 Pages: 1
Results 1 — 4 of 4
Hi guys,
I discovered that when u use
glutSwapBuffers()
glutPostRedisplay()
after
glFlush()
it really smooths out the display. Do not use delay loops any more.
Also make sure that these lines are at the end and appears only ONCE in the display functions. Do no use timers. (don't know ifu need to use double buffering..?)
Hope this helps....
by
BondRidhoo
-
COS340A
Maybe you guys can help me out with the other algebra stuff like determinants and when and why and how do we get the rotation / scaling searing matrices or can I just by-heart them because they do never change?
Thanks
by
BondRidhoo
-
COS340A
Hi Guys. The idea given br "Tripod" above is correct.
When we halve the height, we get half the pyramid and also the x and z range is also halved. Just decrease the x and z range by the decrease in height(y) and we get our boundaries.
Just draw a diagram on paper and play around. Thats how I fugured all these out.
Since the due date for the assigment has passed, here are some cod
by
BondRidhoo
-
COS340A
Just add a for loop that does nothing in your idle func:
for (j, j++, j<1000000);
This will slow it down.
by
BondRidhoo
-
COS340A