Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Looking for an example

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 10-21-2006   #1 (permalink)
John
Guest


 

Looking for an example

I am trying to understand how to do HitTesting on a 3d plane. For example
if I have a 3d plane with 2 buttons displayed, using visual brushes, how can
I know which button has been clicked? Does anyone have a simple example of
this?


My System SpecsSystem Spec
Old 11-06-2006   #2 (permalink)
Stoitcho Goutsev \(100\)
Guest


 

Re: Looking for an example

John,

I don't think you can hitest primitives in the visual brush. What you can do
thought is to put the buttons on two separate meshes or 3d visual models and
hittest against them.
Hittesting in 3D is done using the VisualTreeHelper.HitTest method. Using
this method is straightforward. I believe there is samples in the SDK about
this. One place that I'm sure you can find implementation of 3D hittesting
is in the sample code from the north face demo
http://msdn.microsoft.com/windowsvis...html/fluid.asp

Download the code and look at the Video Carousel code.


--
HTH
Stoitcho Goutsev (100)


"John" <lorenzen_j@hotmail.com> wrote in message
news:1C677B17-965B-489E-A708-DD559344E694@microsoft.com...
>I am trying to understand how to do HitTesting on a 3d plane. For example
>if I have a 3d plane with 2 buttons displayed, using visual brushes, how
>can I know which button has been clicked? Does anyone have a simple
>example of this?



My System SpecsSystem Spec
Old 11-06-2006   #3 (permalink)
Stoitcho Goutsev \(100\)
Guest


 

Re: Looking for an example

John,

I don't think you can hitest primitives in the visual brush. What you can do
thought is to put the buttons on two separate meshes or 3d visual models and
hittest against them.
Hittesting in 3D is done using the VisualTreeHelper.HitTest method. Using
this method is straightforward. I believe there is samples in the SDK about
this. One place that I'm sure you can find implementation of 3D hittesting
is in the sample code from the north face demo
http://msdn.microsoft.com/windowsvis...html/fluid.asp

Download the code and look at the Video Carousel code.


--
HTH
Stoitcho Goutsev (100)


"John" <lorenzen_j@hotmail.com> wrote in message
news:1C677B17-965B-489E-A708-DD559344E694@microsoft.com...
>I am trying to understand how to do HitTesting on a 3d plane. For example
>if I have a 3d plane with 2 buttons displayed, using visual brushes, how
>can I know which button has been clicked? Does anyone have a simple
>example of this?



My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes




Vistax64.com 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 2005-2008

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 47 48 49 50 51