Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Camera transform affects hit test results

 
 
Old 01-10-2006   #1 (permalink)
viliescu


 
 

Camera transform affects hit test results


I used to move the camera by modifying the Location and Up vector. Nov CTP
introduced camera transform so I have rewritten the application to use this
property. The problem is that if the camera transform is not the identity,
the hit test results are "distorted" (I am clicking on an object and a
different one is selected). I am not sure but I suspect that camera transform
is not taken into account when converting the 2D hit point into a 3D ray.

My System SpecsSystem Spec
Old 01-10-2006   #2 (permalink)
Jordan Parker [MSFT]


 
 

Re: Camera transform affects hit test results

We found a few bugs related to the Transform property and hit testing. What
type of Camera is it? Perspective? Matrix?

Thanks,
Jordan

"viliescu" <viliescu@discussions.microsoft.com> wrote in message
news:BFBCA4E2-7A4E-4309-8788-25CBDE0119FB@microsoft.com...
>
> I used to move the camera by modifying the Location and Up vector. Nov CTP
> introduced camera transform so I have rewritten the application to use
> this
> property. The problem is that if the camera transform is not the identity,
> the hit test results are "distorted" (I am clicking on an object and a
> different one is selected). I am not sure but I suspect that camera
> transform
> is not taken into account when converting the 2D hit point into a 3D ray.



My System SpecsSystem Spec
Old 01-10-2006   #3 (permalink)
viliescu


 
 

Re: Camera transform affects hit test results

It's a PerspectiveCamera.

I have reposted the issue in another thread (see "Dec CTP" on 12/19) and
somebody said this is a known bug. So I am using a workaround - I am applying
the transform directly to the camera's properties (Position, UpDirection,
LookDirection)

Thank you,
Valentin

"Jordan Parker [MSFT]" wrote:

> We found a few bugs related to the Transform property and hit testing. What
> type of Camera is it? Perspective? Matrix?
>
> Thanks,
> Jordan
>
> "viliescu" <viliescu@discussions.microsoft.com> wrote in message
> news:BFBCA4E2-7A4E-4309-8788-25CBDE0119FB@microsoft.com...
> >
> > I used to move the camera by modifying the Location and Up vector. Nov CTP
> > introduced camera transform so I have rewritten the application to use
> > this
> > property. The problem is that if the camera transform is not the identity,
> > the hit test results are "distorted" (I am clicking on an object and a
> > different one is selected). I am not sure but I suspect that camera
> > transform
> > is not taken into account when converting the 2D hit point into a 3D ray.

>
>
>

My System SpecsSystem Spec
Old 01-10-2006   #4 (permalink)
Jordan Parker [MSFT]


 
 

Re: Camera transform affects hit test results

From reflecting on the Dec CTP bits, it appears the
PerspectiveCamera.Transform hit testing bug didn't make it in time. The next
release should contain it so let us know if you still have a problem with
the next one.

Jordan

> It's a PerspectiveCamera.
>
> I have reposted the issue in another thread (see "Dec CTP" on 12/19) and
> somebody said this is a known bug. So I am using a workaround - I am
> applying
> the transform directly to the camera's properties (Position, UpDirection,
> LookDirection)
>
> Thank you,
> Valentin



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Some Pan/Zoom Test Results.... Vista's MM6 is best Vista music pictures video
Test results of 17 disk/file recovery programs on SD card Vista file management
very disconcerting test results Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46