the website of xero harrisonxero, xero harrison, harrison, nu, x-e.ro, whois.x-e.ro, blog.x-e.ro, code.x-e.ro, lab.x-e.ro, img.x-e.ro, etc.x-e.ro, feeds.x-e.ro, fontvir.us, fontvirus, font, fonts, git, portfolio, program, programming, code, coding, codes, codez, dev, develop, developer, qoob, open qoob, openqoob, framework, code, api, lab, laboratory, experiment, experiments, demo, netart, net art, unixporn, unix porn, unixp0rn, unixpr0n, images, photos, etc, random
https://blog.x-e.ro
Fri, 29 Mar 2024 05:48:13 -0400https://blog.x-e.roopen[qoob]PQ torus knothttps://blog.x-e.ro/papervision3d_pq_torus
https://blog.x-e.ro/papervision3d_pq_torus
<p><img title="papervision3D PQ torus knot" src="http://blog.x-e.ro/ui/img/blog/uploads/PQtorus01.png" alt="papervision3D PQ torus knot" width="710" height="261" /></p>
<p>here we go again, another <a href="http://blog.papervision3D.org/" target="_blank">papervision3D</a> demo featuring math permeated lines. this time im working with a classic piece of code known as the PQ torus. the vague idea is that you have 2 numbers (P + Q) that are used in the algorithm to define the knot. in general, given P + Q mutually prime, the line wraps meridionally around the torus P times and wraps the longitudinally around it Q times. i was having some 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> 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>xero harrison2008-09-15T01:15:00-04:00custom flex skinshttps://blog.x-e.ro/custom_flex_skins
https://blog.x-e.ro/custom_flex_skins
<p><img title="skinned flex app" src="http://blog.x-e.ro/ui/img/blog/uploads/skinned-app.gif" alt="skinned flex app" width="500" height="136" /></p>
<p><span>creating web-applications with flex 3 is great. there are a ton of pre-made components, and an open-ended architecture to allow you to create your own. built into flex is also a variety of options to change the visual styles of the components. today i will talk about two different types of customization. first, the simplest method, is using css to style your components. next, the more advanced technique, is creating component skins. for this example i will be using flash cs3.</span><br /><br /><span>with in a flex mxml application, css is natively understood. so by utilizing the </span>tags, we can create a variety of styles for an application. personally, i don't really care for the eclipse/flex built in css editor, but since flex uses valid css, any editor can work!</p>xero harrison2008-06-05T14:22:00-04:00another as3 range seeded randomizerhttps://blog.x-e.ro/another_as3_range_seeded_randomizer
https://blog.x-e.ro/another_as3_range_seeded_randomizer
<p>just another take on a classic piece of code. the pseudo-random number generator. this one is <a href="http://blog.x-e.ro/actionscript3_randomizer">almost the same</a>, just a slightly diffrent algorithm.</p>
<pre class="brush: as3">private function randomizer(low:Number, high:Number):Number {
var num:Number = high-low;
return (Math.random()*num)+low;
}</pre>
<p>then use it...</p>
<pre class="brush: as3">var x:Number = randomizer(5, 50);</pre>
<p>i <span style="color: #cc0000;"><3</span> randomization</p>xero harrison2008-04-10T15:44:00-04:00tracing 3D objects with papervision3Dhttps://blog.x-e.ro/tracing_3d_objects_with_papervision
https://blog.x-e.ro/tracing_3d_objects_with_papervision
<p><img title="draw logo" src="http://blog.x-e.ro/ui/img/blog/uploads/draw-logo.png" alt="draw logo" width="710" height="307" /></p>
<p><span>a question popped up on the papervision3D mailing list the other day about using the lines3D class to trace a 3D object. i found the idea fascinating, so i whipped up this little demo to demonstrate how simple it actually was. i started out by creating a simple cylinder with a wide base and small top, and setting its visibility to false. then creating my lines3D object. finally in the render loop i create a new line3D that connects each vertice. by checking to see in a counter variable is less than the total object vertice count ((box.geometry.vertices.length)), and adding a new line3D if the counter is less than that, or deleting all the lines and starting over...</span></p>xero harrison2008-03-21T17:55:00-04:00the lorenz attractorhttps://blog.x-e.ro/3d_flash_lorenz_attractor
https://blog.x-e.ro/3d_flash_lorenz_attractor
<p><img title="papervision3D lorenz attractor" src="http://blog.x-e.ro/ui/img/blog/uploads/lorenz.png" alt="papervision3D lorenz attractor" width="710" height="253" /></p>
<p>we were discussing recursive algorithms and chaos theory at work yesterday. when one of the chemistry professors brought up the lorenz attractor. he was trying to draw one on the white board for about 10 minutes until i decided it would be easier to draw in flash, lol!<br /> <br /> after a quick conversation w/ <a href="http://blog.zupko.info/" target="_blank">andy zupko</a> about the new Line3D object, and my new <a href="http://blog.x-e.ro/canvasview3d_new_pv3d_flex_component">CanvasView3D</a> component for papervision, i made a sweet lorenz attractor! <br /> <br /> the algorithm is super simple:</p>
<pre class="brush: plain">x1 = x0 + h * a * (y0 - x0);
y1 = y0 + h * (x0 * (b - z0) - y0);
z1 = z0 + h * (x0 * y0 - c * z0); </pre>xero harrison2008-02-09T11:52:00-05:00CanvasView3Dhttps://blog.x-e.ro/canvasview3d_new_pv3d_flex_component
https://blog.x-e.ro/canvasview3d_new_pv3d_flex_component
<p><span>after my </span><a href="http://blog.x-e.ro/extending_the_pv3d_basic_view">last post</a><span> about creating an actionscript project that extends the basic view, i got to thinking... my flex canvas3D is getting a bit outdated. these days i just make canvas then add my viewport3D or a basicView to it. so why not create a new UIcomponent that extends basicView? why not indeed...</span><br /><br /><span>introducing my new class, called </span><a href="http://lab.x-e.ro/flexView/CanvasView3D.as" target="_blank">CanvasView3D</a><span>! this little flex gem makes setting up papervision3D in an MXML setting simple. by creating the CanvasView3D component, and initializing it to a local variable, you will automatically create a scene3D, camera3D, viewport3D, and a basicRenderEngine, all the core components of any </span><a href="http://blog.papervision3d.org/" target="_blank">PV3D</a><span> application! </span></p>xero harrison2008-02-05T19:33:00-05:00extending the basic viewhttps://blog.x-e.ro/extending_the_pv3d_basic_view
https://blog.x-e.ro/extending_the_pv3d_basic_view
<p>the core PV3D team has released a new class called the <a href="http://lostboys.epologee.net/papervision/greatwhite.doc/html/org_papervision3d_view_BasicView.html" target="_blank">basicView</a>. the idea here is to create one object that already contains the camera, scene, viewport, and render engine needed to made a 3D scene in flash. <br /><br />after reading the post <a href="http://blog.zupko.info/?p=96" target="_blank">about it on andy’s blog</a>, you can see that this is a very simple technique. but lets take it one step further. why not create a new actionscipt project that extends basic view?! its very simple, and makes setting up your scene a snap!</p>xero harrison2008-02-04T15:17:00-05:00