PDA

View Full Version : Positioning with high accuracy



GOOFY
12-04-2000, 02:26 PM
I have difficulties with the positioning of
an object. The positioning vector has a high
value(50000.00f) and high accuracy but changes very little in time (0.001f/200 milliseconds).
The vector is nicely updated but on the screen repositioning only occurs after every
5 tenths(every 0.5)in the positioning value.
Can you help me out, I don't have a clue how to solve this problem?

Glossifah
12-05-2000, 03:06 PM
Are you forcing a flush of the GL pipeline ala glFlush(); every time the value is incremented 0.001f, or relying on a buffer swap?

Glossifah

Elixer
12-05-2000, 03:40 PM
What projection matrix you using? What is the call? 50k is a big #, so do you have something like:
gluPerspective(45.0f, (GLfloat)width/(GLfloat)height, 0.1f, 500000.0f);

??

You might want to check those values if you are.

GOOFY
12-06-2000, 03:31 AM
Do you mean that such a big matrix is causing the problems? And if I scale everything a thousand times this will be solved?
Thanks,

GOOFY

GOOFY
12-06-2000, 03:32 AM
Why, is flushing with GLFlush the problem?

Glossifah
12-06-2000, 05:58 AM
glFlush() might have been a solution, had you not been calling that every time the value was increment 0.001f. The value may have been incrementing without forcing the redisplay.

Sorry GOOFY, I'm out of suggestions. If you want to send me a snippet of what you are doing, with your assumptions on what should be happening, I'll take a look.

Glossifah