Hi,
I'm developing a program who allows me to position the models
into the scene with the mouse. The problem is the values gluUnproject
gives me back. The scene initially is empty, then I start positioning a
model with mouse but the model doesn't follow mouse cursor and gluUnproject
gives me back some values; as soon as I succeed in having the mouse cursor
on the model this one follows the mouse as it would do and the values of
gluUnproject are different from those I got when the model is not under the
mouse cursor. If I move the mouse cursor too fast and this one is not on the
model anymore I find myself into the situation described above. What is
wrong ?
--
Bye,
Colossus
Mizio, a proxy scanner tool with GUI for Linux
http://mizio.sourceforge.net
|
|
0
|
|
|
|
Reply
|
colossusNO_SPAM (7)
|
9/8/2004 9:43:54 AM |
|
Colossus wrote:
> If I move the mouse cursor too fast and this one is not on the
> model anymore I find myself into the situation described above. What is
> wrong ?
Nothing is "wrong", you just made some assumptions
which aren't true. You already seem to have figured
out why it fails.
--
<\___/>
/ O O \
\_____/ FTB. For email, remove my socks.
Governments, like diapers, should be changed often,
and for the same reason.
|
|
0
|
|
|
|
Reply
|
fungus
|
9/8/2004 2:29:00 PM
|
|
fungus wrote:
> Nothing is "wrong", you just made some assumptions
> which aren't true. You already seem to have figured
> out why it fails.
Please fungus, could you be more clear ? I haven't understood
your reply. Thank you.
--
Bye,
Colossus
Mizio, a proxy scanner tool with GUI for Linux
http://mizio.sourceforge.net
|
|
0
|
|
|
|
Reply
|
Colossus
|
9/9/2004 7:06:30 AM
|
|
Colossus wrote:
> fungus wrote:
>
>
>>Nothing is "wrong", you just made some assumptions
>>which aren't true. You already seem to have figured
>>out why it fails.
>
>
> Please fungus, could you be more clear ? I haven't understood
> your reply. Thank you.
There's no bug in your program, there's a bug
in your logic. If moving the mouse over the
object makes it fail then you have to rethink
the program design.
--
<\___/>
/ O O \
\_____/ FTB. For email, remove my socks.
Governments, like diapers, should be changed often,
and for the same reason.
|
|
0
|
|
|
|
Reply
|
fungus
|
9/9/2004 10:17:49 AM
|
|
fungus wrote:
> If moving the mouse over the
> object makes it fail then you have to rethink
> the program design.
When the mouse cursor IS over the mouse
the program behaves correctly, the problem is
that initially the model doesn't follow the mouse,
as soon as the model goes under the mouse cursor,
by moving the mouse randomly, it behaves correctly.
Since you are an expert of opengl, what if I send you
the files to compile ? You will need a Linux box with qt
libraries to compile. The code is not too much, please.
--
Bye,
Colossus
Mizio, a proxy scanner tool with GUI for Linux
http://mizio.sourceforge.net
|
|
0
|
|
|
|
Reply
|
Colossus
|
9/9/2004 11:57:15 AM
|
|
Colossus wrote:
> Since you are an expert of opengl, what if I send you
> the files to compile ? You will need a Linux box with qt
> libraries to compile. The code is not too much, please.
Fear not to succeed ? You don't like linux ? Or what else ?
--
Bye,
Colossus
Mizio, a proxy scanner tool with GUI for Linux
http://mizio.sourceforge.net
|
|
0
|
|
|
|
Reply
|
Colossus
|
9/10/2004 9:33:49 AM
|
|
|
5 Replies
252 Views
(page loaded in 0.096 seconds)
|