I am writing a program in Java to display VRML files; I am also using
arcBall implementation form Nehe lesson(i spend a half a day to convert code
form vc++ to Java ) and It works; But When I load models I use gluLookAt
function like below to have it dispayed form given vievpoint:
glu.gluLookAt( vp.position.x, vp.position.y, vp.position.z,
vp.orientation.x, vp.orientation.y, vp.orientation.z);
//some defined position
when I use rotation(drag mouse) - it rotates me in wrog direction -
i was thinking to do that:
= i have a model - i do not do anything wit it -it is static(its position);
= changes only wievpoints - camera pos and dest pos;
= my arcball s the thing though my model looks as if is is rotating - but:
1. the model have statioc position
==> so i have to multiply some way the viewpoint and the coords of my
I need Your help!
any help welcomed!!!