<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: UDP connections from Unity to Max</title>
		<atom:link href="http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 00:43:10 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/#post-62112</guid>
					<title><![CDATA[UDP connections from Unity to Max]]></title>
					<link>http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/#post-62112</link>
					<pubDate>Fri, 02 Mar 2012 23:07:34 +0000</pubDate>
					<dc:creator>Yiannis Ioannides</dc:creator>

					<description>
						<![CDATA[
						<p>Hi folks,</p>
<p>I know that 50% of the question is not relating to Max/MSP, but it&#8217;s all Javascript questions so there goes:</p>
<p>So I have created a middleware in Max/MSP, as my audio front-end, and I want it to be receiving basic integer data info from Unity, so it adapts audio based on Unity&#8217;s gameplay.</p>
<p>Now, unfortunately I don&#8217;t know any Javascript to help my situation, but I found this at it seems of some relevance, as for the interoperability of the two software, and specifically, from Unity to Max, which is what I care for. <a href="http://forum.unity3d.com/threads/4853-Max-MSP-communication?p=37572&#038;viewfull=1#post37572" rel="nofollow">http://forum.unity3d.com/threads/4853-Max-MSP-communication?p=37572&#038;viewfull=1#post37572</a></p>
<p>The guy wrote a Javascript script from Unity&#8217;s end, to connect with Max through port 32000, and from Max&#8217;s end, in the same posts, there&#8217;s a compressed code, including the mxj net.udp.recv @32000 that seems to receive values in the &#8220;val0 val1 val2&#8243; format.</p>
<p>Now, looking at the Javascript code, with the very little scripting knowledge that I have, seems kind of straightforward; Seems like a test connection, generating random values for Max to receive from the other Max test patch, but it&#8217;s not doing anything really. You&#8217;d expect to automatically update val0 and val1 in the Max patch, but nothing is happening.</p>
<p>Anybody has an input or previous experience on how to work these two together? Is there extra footwork to be done before the data parsing process starts? I hope I am not in the wrong side of the forum, just because there&#8217;s too much Javascript here, if so, please let me know!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/#post-224354</guid>
					<title><![CDATA[Re: UDP connections from Unity to Max]]></title>
					<link>http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/#post-224354</link>
					<pubDate>Sat, 03 Mar 2012 08:39:35 +0000</pubDate>
					<dc:creator>Siska Ádám</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>there&#8217;s a lot of code in the link you sent, it&#8217;s not completely clear, to which code you are referring to. However, in general, if data is not arriving, you should double-check if all network addresses are set up properly (and, if the sender and receiver software are on different machines, then also the firewall settings).</p>
<p>Unfortunately I don&#8217;t know Unity, but an important question would be, if data is being sent using some common format (like OSC) or not. If yes, then either <code>net.udp.recv</code> (or even better: <code>udpreceive</code>) should do the work. If not, you might give a try to my UDP-stream reader object called <code>sadam.udpReceiver</code>. You should also make sure that Unity is sending the data through UDP and not through TCP, otherwise it won&#8217;t work. If you need TCP, you can use <code>net.tcp.recv</code> for OSC and <code>sadam.tcpReceiver</code> for non-OSC communication.</p>
<p>HTH,<br />
Ádám</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/#post-224355</guid>
					<title><![CDATA[Re: UDP connections from Unity to Max]]></title>
					<link>http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/#post-224355</link>
					<pubDate>Sat, 03 Mar 2012 17:08:44 +0000</pubDate>
					<dc:creator>AudioLemon</dc:creator>

					<description>
						<![CDATA[
						<p>Glad you are still looking into this DeusNovus. A solution to using Max/Msp with a gaming platform would be greatly appreciated by many people.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/#post-224356</guid>
					<title><![CDATA[Re: UDP connections from Unity to Max]]></title>
					<link>http://cycling74.com/forums/topic/udp-connections-from-unity-to-max/#post-224356</link>
					<pubDate>Sat, 03 Mar 2012 17:55:40 +0000</pubDate>
					<dc:creator>Yiannis Ioannides</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks so much for your answer Adam! From my research, people mostly use net.udp.recv for simple one-way data transfer, and I&#8217;ve been told that it&#8217;s a &#8220;plug &#8216;n&#8217; play&#8221; process, sticking the communication code somewhere in Unity and then Max will automatically start reading data flow through port 32000, by default. I really don&#8217;t understand what&#8217;s going on.</p>
<p>And grizzle, it has been such a frustrating experience, I&#8217;ve losing my hair over this, especially for a non-programmer. Hopefully, I will be updating you guys soon. You can all collaboratively help if you guys are into it, look into UDP/TCP code, simple data transfer examples from Unity to Max etc.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

