WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-13-2011, 08:05 PM
dbrateris dbrateris is offline
Member
 
Join Date: Apr 2011
Posts: 1
Cool Creating packets for viz.net

Hi all,

I need to send data to vizard, prefferably in a manner that will trigger a NETWORK_EVENT so that I can use a callback to process the data. I have successfully setup network comm between two computers running vizard, very easy actually, but I need to setup network comm between vizard and a different platform, specifically from an apple iPad. I have successfully connected from the iPad to the vizard udp socket waiting at port 4950 but cannot get the NETWORK_EVENT to actually be called.

The problem, I believe is that vizard expects the udp packet to be in a specific format, so that variables and the like can be extracted out from the packet.

What I need to know, and wondering if someone knows the answer, is how to format the data in the udp packet so that vizard will successfully parse the packet and fire a NETWORK_EVENT

Any help would be greatly appreciated,
Thanks,
Dan
Reply With Quote
  #2  
Old 04-13-2011, 08:36 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The udp packets are encoded using the Python pickle module. I would recommend using the socket module instead, and handling the raw data yourself. The following post contains sample code for doing this:

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

Tags
data, format, network, socket, udp

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
Creating a loop to switch between menu pages RodRSpv Vizard 1 03-02-2009 02:19 PM
Help With Creating Menus and Buttons for a Chess Game RodRSpv Vizard 1 02-27-2009 02:12 PM
Creating a road Saz Vizard 3 11-14-2008 03:45 AM
creating avatar animation class? Vbents Vizard 1 01-18-2006 10:34 AM
PeopleMaker - creating morphs vjonshih Vizard 4 01-02-2005 04:30 PM


All times are GMT -7. The time now is 05:37 PM.


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