Subject:
|
Re: mouse model manipulation
|
Newsgroups:
|
lugnet.cad.dev.mac
|
Date:
|
Mon, 10 Jun 2002 16:36:53 GMT
|
Viewed:
|
2333 times
|
| |
| |
In lugnet.cad.dev.mac, Jim DeVona writes:
> More about mouse spinning - as Chris mentioned in the post I noted before, when
> rotating the model with the mouse it often doesn't seem to rotate appropriately
> for the direction of mouse movement -- the model will rotate about a given axis
> as if it is being roasted on a spit, with the mouse just causing it to rotate
> without any bearing on the direction of rotation.
>
> Rotisserie legos...
Maybe we can get to the bottom of this one. Try the debugging command
line switch -g and see what it prints out when you do a mouse spin. It
should spew all sorts of stuff to the console window. Look for pdn(x,y)
and pan(x,y) to see if there's anything fishy there. I'm almost willing
to bet glutWarpPointer(x,y) doesn't work on the Mac version of glut.
It's supposed to move the invisible pointer back to the middle of the
window whenever it gets more than 10 pixels out. This fixed a problem
where the object would stop spinning when you moved the pointer outside
the window, but if glutWarpPointer doesn't work then the (x,y) coords
will move further and further away from the center of the window, and
further from where I think they should be, causing the model to spin
into never-never-land.
Don
|
|
Message has 2 Replies: | | Re: mouse model manipulation
|
| (...) Well, I looked at the pdn and pan values, but they never seemed to get crazy or anything (although I'm not familiar with the inner workings of OpenGL so I'm not entirely sure what constitutes fishy). Their values stay relatively close (...) (22 years ago, 11-Jun-02, to lugnet.cad.dev.mac)
| | | Re: mouse model manipulation
|
| (...) Just clicking on the model in preparation for mouse rotation (LDGLite mode) gives pdn(314, 219), -> (-6.00, 21.00, -4000.00) platform_step(-1, 2, 0) platform_step(-1, 2, 0) platform_step(-1, 2, 0) platform_step(-1, 2, 0) platform_step(0, 1, 1) (...) (22 years ago, 11-Jun-02, to lugnet.cad.dev.mac)
|
Message is in Reply To:
| | mouse model manipulation
|
| More about mouse spinning - as Chris mentioned in the post I noted before, when rotating the model with the mouse it often doesn't seem to rotate appropriately for the direction of mouse movement -- the model will rotate about a given axis as if it (...) (22 years ago, 10-Jun-02, to lugnet.cad.dev.mac)
|
66 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|