|
retry: does not seem to have gone thru the first
time
-----Original Message-----
From: Olivier fillon <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, August 03, 1999 11:36 AM Subject: CanvasPt to VW Pt problem inthe perspective projection (first email wrongly addressed, I hope you will
only get one instance!!)
Dear all,
I have a problem implementing a zoom/focus
method:
after each mouse click, I take the pixel pt in the canvas and
convert it with the following calls:
getPixelLocationInImagePlate((int)pt.x, (int)pt.y,
VworldPt);
// transform the point from an imageplate coordinate to a Vworld // coordinate getImagePlateToVworld(imagePlateToVworld); imagePlateToVworld.transform(VworldPt);
then I translate my viewing platform to be set in the VworldPt
.x/VworldPt .y and reduce its z value by a factor
I so expect a zoom effect with a translation to focus on the
clicked area
this works fine for the first few clicks, but the more I go,
the more I seem to get the effect of distortion??
in short if I click on a non centered same point in my scene I
end up with VworldPt changing ( the more i zoom, the more it
differs)
and of course the focus gets wrong
Can anyone help me there??
Is the concept wrong somewhere??Is it a
bug?
Any help welcome
Cheers
Olivier
--Olivier Fillon Minestar Project [EMAIL PROTECTED] Mincom Limited Ph.+61-7-3303-3344 61 Wyandra Street Fax+61-7-3303-3232 Teneriffe Qld. 4005. Australia Company home page: http://www.mincom.com/ Personal home page: http://www.home.gil.com.au/~fillon |
