Windows Vista Forums
Vista Forums Home Join Vista Forums Donate 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

Map a functional UI to the side of a 3d object

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 08-23-2006   #1 (permalink)
Weston Weems
Guest


 

Map a functional UI to the side of a 3d object

I'd like to see something along the lines of a ui. One form worth of
user input on the side of a cube, another form of input on another side
of the cube.

Previous this wasnt possible, only able to SIMULATE by transforming and
painting (but apparently the controls themselves were no longer functional?)

I was just curious if this remains to be true.

Thanks in advance.

My System SpecsSystem Spec
Old 08-24-2006   #2 (permalink)
=?Utf-8?B?VGhlUkhvZ3Vl?=
Guest


 

RE: Map a functional UI to the side of a 3d object

For WPF V1 the answer is "nothing has changed"...but....

WPF V2 should have a fix for this.

Third party control vendors may have offerings of a fix post V1 and pre V2.

You can do a 2d to 3D to 2d transitions...which can be tricky, but it can
work. I've done this numerous times for WPF demos - like the latest
healthcare app. The tricky part is dynamic resizing which third party vendors
will need to investigate for a more robust solution using this technique.


"Weston Weems" wrote:

> I'd like to see something along the lines of a ui. One form worth of
> user input on the side of a cube, another form of input on another side
> of the cube.
>
> Previous this wasnt possible, only able to SIMULATE by transforming and
> painting (but apparently the controls themselves were no longer functional?)
>
> I was just curious if this remains to be true.
>
> Thanks in advance.
>

My System SpecsSystem Spec
Old 08-28-2006   #3 (permalink)
sbarlea@gmail.com
Guest


 

Re: Map a functional UI to the side of a 3d object

You still have to simulate mouse events. Maybe this post will help you
:

http://www.codeproject.com/useritems...nteraction.asp

The trick is to map the visuals in int ui each on their own model to
make the manual hittesting simpler.


TheRHogue wrote:
> For WPF V1 the answer is "nothing has changed"...but....
>
> WPF V2 should have a fix for this.
>
> Third party control vendors may have offerings of a fix post V1 and pre V2.
>
> You can do a 2d to 3D to 2d transitions...which can be tricky, but it can
> work. I've done this numerous times for WPF demos - like the latest
> healthcare app. The tricky part is dynamic resizing which third party vendors
> will need to investigate for a more robust solution using this technique.
>
>
> "Weston Weems" wrote:
>
> > I'd like to see something along the lines of a ui. One form worth of
> > user input on the side of a cube, another form of input on another side
> > of the cube.
> >
> > Previous this wasnt possible, only able to SIMULATE by transforming and
> > painting (but apparently the controls themselves were no longer functional?)
> >
> > I was just curious if this remains to be true.
> >
> > Thanks in advance.
> >


My System SpecsSystem Spec
Old 08-28-2006   #4 (permalink)
bonk
Guest


 

Re: Map a functional UI to the side of a 3d object

I was told that it is possible in wpf to retrieve the texture-UV-Coordinates
of where an object was hit. I haven't managed to implement a working sample
that does this, though. In case this is possible, the rest is not so hard
anymore. Does anyone have a working sample that does that ?

<sbarlea@gmail.com> schrieb im Newsbeitrag
news:1156747609.703032.240090@m79g2000cwm.googlegroups.com...
> You still have to simulate mouse events. Maybe this post will help you
> :
>
> http://www.codeproject.com/useritems...nteraction.asp
>
> The trick is to map the visuals in int ui each on their own model to
> make the manual hittesting simpler.
>
>
> TheRHogue wrote:
>> For WPF V1 the answer is "nothing has changed"...but....
>>
>> WPF V2 should have a fix for this.
>>
>> Third party control vendors may have offerings of a fix post V1 and pre
>> V2.
>>
>> You can do a 2d to 3D to 2d transitions...which can be tricky, but it can
>> work. I've done this numerous times for WPF demos - like the latest
>> healthcare app. The tricky part is dynamic resizing which third party
>> vendors
>> will need to investigate for a more robust solution using this technique.
>>
>>
>> "Weston Weems" wrote:
>>
>> > I'd like to see something along the lines of a ui. One form worth of
>> > user input on the side of a cube, another form of input on another side
>> > of the cube.
>> >
>> > Previous this wasnt possible, only able to SIMULATE by transforming and
>> > painting (but apparently the controls themselves were no longer
>> > functional?)
>> >
>> > I was just curious if this remains to be true.
>> >
>> > Thanks in advance.
>> >

>



My System SpecsSystem Spec
Old 08-29-2006   #5 (permalink)
Florian Kruesch
Guest


 

Re: Map a functional UI to the side of a 3d object

funny, to me it seems to be the other way round
mapping 3d to 2d is not soo difficult (turn mouseposition
into ray and calculate intersection with plane).
but how would you translate the found coordinate into a
click event?

cheers
Florian


bonk wrote:
> I was told that it is possible in wpf to retrieve the texture-UV-Coordinates
> of where an object was hit. I haven't managed to implement a working sample
> that does this, though. In case this is possible, the rest is not so hard
> anymore. Does anyone have a working sample that does that ?

My System SpecsSystem Spec
Old 08-29-2006   #6 (permalink)
Florian Kruesch
Guest


 

Re: Map a functional UI to the side of a 3d object

I realize that there's quite a few different scenarios.
mapping a functional ui onto a side of a 3d cube, IMHO involves the
following steps:
1. create a normal (2D) UI (e.g. a Panel with buttons) and hide it
somewhere.
2. setup your 3d scene and map a visual brush onto the cube, which
you bind to the hidden ui
3. translate mouseclicks to relative 2d coordinates on the side of
the cube (construct a ray using an inverse matrix and intersect the
ray with the functional side of the cube).
4. artifically raise a mouseclick event on the hidden ui...

except for the last step, it all seems doable to me.
I've wrapped my head around this for quite a while, but possible
solutions all look pretty difficult. e.g. using UIAutomation or
create a custom subclass of InputDevice.

Florian
--
kruesch.de
Florian Krüsch | MCAD
info@kruesch.de
My System SpecsSystem Spec
Old 08-29-2006   #7 (permalink)
Ifeanyi Echeruo [MSFT]
Guest


 

Re: Map a functional UI to the side of a 3d object

Or try

RoutedEventArgs fakeArgs = CreateFakeInputEventArgs(originalEventArgs,
fake2DX, fake2DY);
hiddenElement.RaiseEvent(fakeArgs);

CreateFakeInputEventArgs(...) would create an appropriate
(MouseButtonEventArgs or KeyEventArgs) by cloning and modifying the
apropriate properties on originalEventArgs

-- Ifeanyi Echeruo [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

"Florian Kruesch" <nospam@kruesch.de> wrote in message
news:OHMx1L1yGHA.3440@TK2MSFTNGP06.phx.gbl...
>I realize that there's quite a few different scenarios.
> mapping a functional ui onto a side of a 3d cube, IMHO involves the
> following steps:
> 1. create a normal (2D) UI (e.g. a Panel with buttons) and hide it
> somewhere.
> 2. setup your 3d scene and map a visual brush onto the cube, which
> you bind to the hidden ui
> 3. translate mouseclicks to relative 2d coordinates on the side of
> the cube (construct a ray using an inverse matrix and intersect the
> ray with the functional side of the cube).
> 4. artifically raise a mouseclick event on the hidden ui...
>
> except for the last step, it all seems doable to me.
> I've wrapped my head around this for quite a while, but possible
> solutions all look pretty difficult. e.g. using UIAutomation or
> create a custom subclass of InputDevice.
>
> Florian
> --
> kruesch.de
> Florian Krüsch | MCAD
> info@kruesch.de



My System SpecsSystem Spec
Old 08-29-2006   #8 (permalink)
Florian Kruesch
Guest


 

Re: Map a functional UI to the side of a 3d object

Ifeanyi - exactly that's what I was going to do, but everything position
related is bound to a MouseDevice, which is a sealed class and cannot
be overridden.

Florian


Ifeanyi Echeruo [MSFT] wrote:
> Or try
>
> RoutedEventArgs fakeArgs = CreateFakeInputEventArgs(originalEventArgs,
> fake2DX, fake2DY);
> hiddenElement.RaiseEvent(fakeArgs);
>
> CreateFakeInputEventArgs(...) would create an appropriate
> (MouseButtonEventArgs or KeyEventArgs) by cloning and modifying the
> apropriate properties on originalEventArgs

My System SpecsSystem Spec
Old 08-30-2006   #9 (permalink)
Ifeanyi Echeruo [MSFT]
Guest


 

Re: Map a functional UI to the side of a 3d object

Yup, you're right. I was channeling the winforms mouse eventing model, where
the x and y of the mouse are captured in the event args.

-- Ifeanyi Echeruo [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

"Florian Kruesch" <nospam@kruesch.de> wrote in message
news:%23WMolW6yGHA.1288@TK2MSFTNGP03.phx.gbl...
> Ifeanyi - exactly that's what I was going to do, but everything position
> related is bound to a MouseDevice, which is a sealed class and cannot
> be overridden.
>
> Florian
>
>
> Ifeanyi Echeruo [MSFT] wrote:
>> Or try
>>
>> RoutedEventArgs fakeArgs = CreateFakeInputEventArgs(originalEventArgs,
>> fake2DX, fake2DY);
>> hiddenElement.RaiseEvent(fakeArgs);
>>
>> CreateFakeInputEventArgs(...) would create an appropriate
>> (MouseButtonEventArgs or KeyEventArgs) by cloning and modifying the
>> apropriate properties on originalEventArgs



My System SpecsSystem Spec
Old 09-03-2006   #10 (permalink)
Jon Davis
Guest


 

Re: Map a functional UI to the side of a 3d object

v2? Is this for .NET v4?

Jon


My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Application failed to start - side-by-side configuration incorrect LisaV Vista General 1 05-27-2008 06:51 AM
Show Windows Stacked or Side by Side - Create Shortcuts Brink Tutorials 0 04-04-2008 05:18 PM
Microsoft Flight Simulator X side-by-side configuration error Eddie Vista Games 5 07-17-2007 07:46 PM
side-by-side comparison chart for different editions of Vista Hamsaffar Vista General 1 10-31-2006 05:00 PM
Adding canonical aliases for Compare-Object, Measure-Object, New-Object Alex K. Angelopoulos [MVP] PowerShell 2 05-26-2006 07:58 AM


Update your Vista Drivers Update Your Vista Drivers Now!!

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