![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |