PDA

View Full Version : Mouse Navigation



Gavin
10-11-2001, 10:14 AM
Whats the quickest way of doing mouse navigation? *not*

mouse_move(x, y)
{
glrotatef(1, x, y, 0);
}

As in I want it to navigate the world in the same way as any vrml viewer or similar

Gavin
10-11-2001, 12:22 PM
sorted it.

cheers

nickels
10-11-2001, 12:27 PM
Many viewers use:
*Left click is trackball (search for trackball. Someone gave me code for one on here once).
*<Shift> left click translates (Easy to implement, just translate the object the same way the mouse is going in x, y).