WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-01-2008, 01:53 PM
Rachel Rachel is offline
Member
 
Join Date: Feb 2008
Posts: 3
Updating viewpoint via external computer

Hello. Brand new to Vizard (and networks) here.

I would like to update the viewpoint in a Vizard scene based on position data Iím sending from a Matlab script running on another computer on the network (UDP). Iím posting to ask if this a case where the ďviz.NETWORK_EVENTĒ callback would work. Iíve been looking at the help files, and it would seem that I could send the Matlab position data over the network and receive it as ďe.dataĒ in Vizard. Then there could be a callback in the Vizard code that updates the viewpoint according to the Matlab data received. Is this correct?

If so, is there a particular place in the Vizard code where this callback should go?

I see that Vizard sends and receives via port 4950 by default. Not having the appropriate background for this forum, Iím afraid I donít know what to do with that information. How would I make sure the position data Iím sending from Matlab goes to port 4950? I donít understand the difference between specifying the port and specifying the IP address of the computer you want to talk/listen to. If users on the forum have the patience to explain, I would appreciate the help.

Finally, the help menu mentions a ďPrimer on NetworkingĒ, but the link to that primer isnít active. Any suggestions about how to go forward with this set-up or other on-line resources I might tap into for this application?

Sincere thanks,
Rachel Brady
Reply With Quote
  #2  
Old 02-04-2008, 07:23 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Vizards built-in network features will only work with other Python programs. If you want to communicate with non-Python programs, like Matlab, then you will need to use the Python socket library to send/receive data. The following link contains sample code showing how to do this in Vizard:

http://www.worldviz.com/forum/showthread.php?t=1126
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Viewpoint control Vinicius Lima Vizard 6 08-20-2007 06:51 PM
Problems running R3 and R2.5 on the same computer cade_mccall Vizard 5 09-05-2006 12:26 PM
3d viewpoint movement spacefarer Vizard 9 07-25-2006 04:37 PM
Setting the viewpoint with tracking VAmanda Vizard 3 10-26-2005 03:02 PM
VRML Viewpoint error bstankie Vizard 1 03-11-2003 03:10 PM


All times are GMT -7. The time now is 10:24 AM.


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