If i'm walking through a pipe,how to create the shaky effect(in terms of view). In 3Dgames if we walk through a tunnel, the walking effect is depicted as a shaky effect(in terms if view). I want to create something like that.
I'm using glLookAt for viewing. I introduced a variable for y axis(which is my updirection) and i keep adding and subtracting(0.2) alternatively.
zz - variable for walking
yy - variable for shaky effect
...
gluLookAt(7, -12+yy, 5+zz, 3, -12, 5, 0, 1, 0);
.....
window_idle()
...
changed yy value to -1 and +1
....
But I can't see the effect. Anything wrong in my logic or this logic won't work to create that effect?



