WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-07-2012, 02:54 AM
victorqx victorqx is offline
Member
 
Join Date: Apr 2012
Posts: 15
For anyone who is interested in the same thing, here's how I got it to work:

I created a small WPF application with a transparant window (in the XAML you can put something like: Background="#01000000" WindowStyle="None" AllowsTransparency="True" WindowState="Maximized" Topmost="True")

This application is then on top of the regular Vizard application and catches all mouse events. These mouse events are sent via UDP packets to the vizard master.

My script in the vizard master receives these packets (using the built in viz.callback(viz.NETWORK_EVENT,onNetwork) network mechanism) The packets (interpreted as a RawNetworkEvent) are then used to call the appropriate methods as if a mouse event was raised.

It was a little tricky to get object selection working, since the regular viz.pick didn't work for me when applied to a mouse position on the tablet. So, instead I used the intersect method based on two positions that I manually calculate based on the current caveorigin and the size of my ortho projection. PM me for more information if you're interested.

Regards,

Victor
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Events in a cluster jlesquembre Vizard 2 11-16-2011 05:03 PM
Mouse bug in V3 and V4 Renato Lima Vizard 2 05-11-2011 06:38 PM
assigning the mouse functionality to Keyboard events jaffaaswami Vizard 2 10-07-2010 10:58 PM
assigning the mouse functionality to Keyboard events jaffaaswami Vizard 0 10-06-2010 06:49 AM
Cluster Client Timeout after 10s... k_iwan Vizard 5 02-22-2007 01:56 PM


All times are GMT -7. The time now is 09:26 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC