<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ChipMusic.org - 3D visualizer :: PQ Torus :: open source flash / flex / as3]]></title>
		<link>https://chipmusic.org/forums/topic/578/3d-visualizer-pq-torus-open-source-flash-flex-as3/</link>
		<description><![CDATA[The most recent posts in 3D visualizer :: PQ Torus :: open source flash / flex / as3.]]></description>
		<lastBuildDate>Mon, 08 Feb 2010 14:39:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: 3D visualizer :: PQ Torus :: open source flash / flex / as3]]></title>
			<link>https://chipmusic.org/forums/post/9680/#p9680</link>
			<description><![CDATA[<b><i>xero says:</i></b><div class="quotebox"><cite>arfink wrote:</cite><blockquote><p>One thought- make one where as it draws it fades the older lines, so what you can constantly have glowing particles whipping around the camera when it&#039;s zoomed in. It would look really cool.</p></blockquote></div><p>agreed, <br />good idea, i will experiment with that</p><p>thanx!</p>]]></description>
			<pubDate>Mon, 08 Feb 2010 14:39:57 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/9680/#p9680</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D visualizer :: PQ Torus :: open source flash / flex / as3]]></title>
			<link>https://chipmusic.org/forums/post/9001/#p9001</link>
			<description><![CDATA[<b><i>arfink says:</i></b><p>Nice work. I listened to Firestorm&#039;s IK+ remix and Ooh La La by Slyspy while playing with this. Amazing stuff, matched the music rather nicely. (hint, Demovibes 9)</p><p>One thought- make one where as it draws it fades the older lines, so what you can constantly have glowing particles whipping around the camera when it&#039;s zoomed in. It would look really cool.</p>]]></description>
			<pubDate>Thu, 04 Feb 2010 20:02:17 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/9001/#p9001</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D visualizer :: PQ Torus :: open source flash / flex / as3]]></title>
			<link>https://chipmusic.org/forums/post/8994/#p8994</link>
			<description><![CDATA[<b><i>jikoo says:</i></b><p>Hello, <br />Waooow ! It&#039;s very nice. It works perfectly ! Bravo !</p>]]></description>
			<pubDate>Thu, 04 Feb 2010 19:48:19 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/8994/#p8994</guid>
		</item>
		<item>
			<title><![CDATA[3D visualizer :: PQ Torus :: open source flash / flex / as3]]></title>
			<link>https://chipmusic.org/forums/post/8504/#p8504</link>
			<description><![CDATA[<b><i>xero says:</i></b><p><a class="postimg" href="http://the.fontvir.us/b10g/img/PQtorus.jpg" title="http://the.fontvir.us/b10g/img/PQtorus.jpg" id="forum_image_28441590"><img src="http://the.fontvir.us/b10g/img/PQtorus.jpg" /></a></p><p>view demo :: <a href="http://the.fontvir.us/pv3d/PQtorus/" target="_blank">http://the.fontvir.us/pv3d/PQtorus/</a><br />view sources:: <a href="http://the.fontvir.us/pv3d/PQtorus/srcview/" target="_blank">http://the.fontvir.us/pv3d/PQtorus/srcview/</a><br />view blog post :: <a href="http://the.fontvir.us/b10g/?id=116" target="_blank">http://the.fontvir.us/b10g/?id=116</a></p><p>here we go again, another papervision3D demo featuring math permeated lines. <br />this time im working with a classic piece of code known as the PQ torus. the vague <br />idea is that you have 2 numbers (P + Q) that are used in the algorithm to define the <br />knot. in general, given P + Q mutually prime, the line wraps meridionally around the <br />torus P times and wraps the longitudinally around it Q times. i was having some <br />trouble grasping exactly how this was going to be achieved, until i read <a href="http://www.blackpawn.com/texts/pqtorus/" target="_blank">this article</a> <br />on <a href="http://www.blackpawn.com/" target="_blank">blackpawn</a>’s website. he really breaks down the algo to a very simplistic level...</p><div class="codebox"><pre><code>r = .5 * (2 + sin(Q * Φ))
x = r * cos(P * Φ)
y = r * cos(Q * Φ)
z = r * sin(P * Φ)</code></pre></div><p>simple right? lol.<br />so Φ (or phi in my code) is basically a variable that is definded by change. <br />in this case, im simply incrementing phi + .02 every frame. this seeds the <br />math and gives you the cool visual effect.</p><p>anyway, after getting a handle on the math, writing the demo code was a snap. <br />i took the existing code i wrote from the <a href="http://the.fontvir.us/b10g/?id=109" target="_blank">3D object tracer</a> and the <a href="http://the.fontvir.us/b10g/?id=107" target="_blank">lorenz attractor </a><br />and combined them. (i also found + fixed an error for computing the line gradient <br />color) i started out by allowing the users to only select values for PQ and that <br />actually made sense.</p><p><a class="postimg" href="http://the.fontvir.us/b10g/img/PQtorus.5-3.jpg" title="http://the.fontvir.us/b10g/img/PQtorus.5-3.jpg" id="forum_image_53522401"><img src="http://the.fontvir.us/b10g/img/PQtorus.5-3.jpg" /></a><br /><a class="postimg" href="http://the.fontvir.us/b10g/img/PQtorus.7-4.jpg" title="http://the.fontvir.us/b10g/img/PQtorus.7-4.jpg" id="forum_image_5623884"><img src="http://the.fontvir.us/b10g/img/PQtorus.7-4.jpg" /></a></p><p>but after some experimentation i found that using some unorthodox values <br />for P+Q could net some very interesting results. take a look at some of these...</p><p><a class="postimg" href="http://the.fontvir.us/b10g/img/PQtorus.5-16.jpg" title="http://the.fontvir.us/b10g/img/PQtorus.5-16.jpg" id="forum_image_30292256"><img src="http://the.fontvir.us/b10g/img/PQtorus.5-16.jpg" /></a><br /><a class="postimg" href="http://the.fontvir.us/b10g/img/PQtorus.40-25.jpg" title="http://the.fontvir.us/b10g/img/PQtorus.40-25.jpg" id="forum_image_98740846"><img src="http://the.fontvir.us/b10g/img/PQtorus.40-25.jpg" /></a><br /><a class="postimg" href="http://the.fontvir.us/b10g/img/PQtorus.25-50.jpg" title="http://the.fontvir.us/b10g/img/PQtorus.25-50.jpg" id="forum_image_43909757"><img src="http://the.fontvir.us/b10g/img/PQtorus.25-50.jpg" /></a><br /><a class="postimg" href="http://the.fontvir.us/b10g/img/PQtorus.33-50.jpg" title="http://the.fontvir.us/b10g/img/PQtorus.33-50.jpg" id="forum_image_21374203"><img src="http://the.fontvir.us/b10g/img/PQtorus.33-50.jpg" /></a></p><p>e n j o y !</p>]]></description>
			<pubDate>Tue, 02 Feb 2010 19:40:06 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/8504/#p8504</guid>
		</item>
	</channel>
</rss>
