vamsee kanth

01-06-2005, 12:39 AM

Hello,

iam using gluUnproject function to retrieve the object coordinates from the screen coordinates.

when i click on a point (2,2,2) i get the output from the function as(2.218335,2.226619,-0.000000)

when i click on a point (3,3,3) i get the output as (2.218335,2.226619,-0.000000)

when i click on a point (4,4,4) i get the output as

(3.079899,3.084041,-0.000000)

when i click on a point (5,5,5) i get the output as

(3.079899,3.084041,-0.000000)

why is there such a discrepancy in the actual values and the returned values of the function??

is it the nature of the function itself or there is some other problem with my code??

i want to retrieve atleast the x-coordinate more or less exactly??

plz help me ,may be with any other possible solution.

thanking you,

vamsee.

iam using gluUnproject function to retrieve the object coordinates from the screen coordinates.

when i click on a point (2,2,2) i get the output from the function as(2.218335,2.226619,-0.000000)

when i click on a point (3,3,3) i get the output as (2.218335,2.226619,-0.000000)

when i click on a point (4,4,4) i get the output as

(3.079899,3.084041,-0.000000)

when i click on a point (5,5,5) i get the output as

(3.079899,3.084041,-0.000000)

why is there such a discrepancy in the actual values and the returned values of the function??

is it the nature of the function itself or there is some other problem with my code??

i want to retrieve atleast the x-coordinate more or less exactly??

plz help me ,may be with any other possible solution.

thanking you,

vamsee.