tag:blogger.com,1999:blog-79041322951440016692009-07-12T15:16:12.210+10:00polymonkey_codeyep, it's a blogger site. I wish I had more time too.polymonkeynoreply@blogger.comBlogger20125tag:blogger.com,1999:blog-7904132295144001669.post-31064717017932344772009-07-08T14:41:00.006+10:002009-07-09T07:21:24.682+10:00So like, what happened to Matt?<div style="text-align: center;"><a href="http://www.flickr.com/photos/polymonkey/3623926279/" title="night merry go round with no focus by matt ditton (AKA polymonkey), on Flickr"><img src="http://farm4.static.flickr.com/3310/3623926279_9c9ac0025d.jpg" width="400" alt="night merry go round with no focus" /></a></div><br />Over the last few months I've been working on a number of projects that are slowly getting to a stage where I can talk about them. In the coming weeks I'll be updating the site and writing up some details on all of them. But as a teaser.<br /><br />One of the big one's was work that I did for <a href="http://www.qubekonstrukt.com/"><span class="blsp-spelling-error" id="SPELLING_ERROR_0">Qube</span> <span class="blsp-spelling-error" id="SPELLING_ERROR_1">Konstrukt</span></a>. <span class="blsp-spelling-error" id="SPELLING_ERROR_2">Qube</span> was after something <span class="blsp-spelling-corrected" id="SPELLING_ERROR_3">different</span> while they worked for <span class="blsp-spelling-error" id="SPELLING_ERROR_4">SBS</span> ONE and <span class="blsp-spelling-error" id="SPELLING_ERROR_5">SBS</span> TWO. So enter Processing and that Generative "look". As luck would have it they called me up, had a chat and hit the ground running making cool stuff.<br /><br />There are few projects that I've worked on that have been so rewarding. It was a dream to work on, and <span class="blsp-spelling-error" id="SPELLING_ERROR_6">Qube</span> are flat out awesome. And now the output is slowly making it's way into the world. To begin with <span class="blsp-spelling-error" id="SPELLING_ERROR_7">SBS</span> has posted a (badly compressed) selection of their new station id's to their <span class="blsp-spelling-error" id="SPELLING_ERROR_8">facebook</span> page. <a href="http://www.facebook.com/video/video.php?v=80268541403&amp;ref=mf">You can see them here.</a><div><br /></div><div><a href="http://www.facebook.com/video/video.php?v=80268541403&amp;ref=mf"></a>The first two are from <a href="http://www.qubekonstrukt.com/"><span class="blsp-spelling-error" id="SPELLING_ERROR_9">Qube</span></a>, the next two are by <a href="http://www.mightynice.com.au/">Mighty Nice</a> and the last three are from <a href="http://www.iloura.com.au/"><span class="blsp-spelling-error" id="SPELLING_ERROR_10">Iloura</span></a>. Amazing stuff all round. The sound reactive particle system in the first one (the red one) is mine.<br /><br /><br /></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-3106471701793234477?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com1tag:blogger.com,1999:blog-7904132295144001669.post-23557852789259275422009-02-11T21:46:00.004+10:002009-02-11T23:13:13.469+10:00It's over, and now we're free.Pandemic Brisbane closed it's doors yesterday. <br /><br />I joined at the start of DAH2 and in the four years I was there I experienced the best working environment that I've ever known. If there are better teams and better people out there then I pray I find them one day. <br /><br />At the end of DAH2 when THQ took the license back, The Bravo Team picked their name first so we became known as the Alpha Team. We moved upstairs, Bravo started up their game and we just kept working. That first 9 months of pitching and experimenting and trying to nail the game idea was amazing. It changed the way I work, the way I look at the job. The respect we had for one another was impressive. That doesn't just happen. It's built, day by day.<br /><br />I equate it to a band that just kept playing, every month we got better. You'd know how every person would play. You'd know how everyone could shine. We got tight and the product was amazing. One day people will see it. And it'll be seen for what it is. The best game we'll all never finish.<br /><br />Your faithful tech.<br /><br />MattD<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-2355785278925927542?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-3751809966457599812009-02-11T21:33:00.005+10:002009-02-11T23:11:56.779+10:00GCAP 2008 - And now my talkSome wonderful people posted the entire talk on you tube. That's brilliant I was told no one got it. So here it is...<br /><br />Part 1<br /><br /><object width="425" height="264"><param name="movie" value="http://www.youtube.com/v/sqAtASciNYA&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/sqAtASciNYA&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="264"></embed></object><br /><br />Part 2<br /><br /><object width="425" height="264"><param name="movie" value="http://www.youtube.com/v/p_4X4XxptEk&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/p_4X4XxptEk&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="264"></embed></object><br /><br />Part 3 (this is the one with the pretty examples!!)<br /><br /><object width="425" height="264"><param name="movie" value="http://www.youtube.com/v/bAeYgHzjGbs&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/bAeYgHzjGbs&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="264"></embed></object><br /><br />Part 4 (more pretty things here)<br /><br /><object width="425" height="264"><param name="movie" value="http://www.youtube.com/v/oztqBhRWWzI&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/oztqBhRWWzI&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="264"></embed></object><br /><br />Part 5<br /><br /><object width="425" height="264"><param name="movie" value="http://www.youtube.com/v/VDjyd-9TzX0&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/VDjyd-9TzX0&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="264"></embed></object><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-375180996645759981?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com3tag:blogger.com,1999:blog-7904132295144001669.post-92100793608357863112008-12-10T15:40:00.004+10:002008-12-10T15:44:48.687+10:00My screen is full of linesMore videos of stuff I'm working on at the moment. This time vector forces and particle collision are sitting on my mind. <br /><br /><object width="400" height="308"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2478448&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2478448&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="308"></embed></object><br /><a href="http://vimeo.com/2478448">Vector Force System</a> from <a href="http://vimeo.com/polymonkey">matt ditton</a> on <a href="http://vimeo.com">Vimeo</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-9210079360835786311?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-71883598619270757822008-11-26T07:09:00.005+10:002008-11-27T08:09:54.554+10:00GCAP 2008 - Videos from my talkThese are videos of some the software that I showed off at GCAP <br /><br /><object width="400" height="308"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2332133&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2332133&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="308"></embed></object><br /><a href="http://vimeo.com/2332133">Drawing With Strings</a> from <a href="http://vimeo.com/polymonkey">matt ditton</a> on <a href="http://vimeo.com">Vimeo</a>.<br /><br /><object width="400" height="308"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2335316&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2335316&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="308"></embed></object><br /><a href="http://vimeo.com/2335316">HeightField Demo</a> from <a href="http://vimeo.com/polymonkey">matt ditton</a> on <a href="http://vimeo.com">Vimeo</a>.<br /><br /><object width="400" height="308"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2335767&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2335767&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="308"></embed></object><br /><a href="http://vimeo.com/2335767">Particle System Demo</a> from <a href="http://vimeo.com/polymonkey">matt ditton</a> on <a href="http://vimeo.com">Vimeo</a>.<br /><br /><object width="400" height="308"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2336564&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2336564&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="308"></embed></object><br /><a href="http://vimeo.com/2336564">Slitscanning Workspace Demo</a> from <a href="http://vimeo.com/polymonkey">matt ditton</a> on <a href="http://vimeo.com">Vimeo</a>.<br /><br /><object width="400" height="251"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=2345739&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=2345739&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="251"></embed></object><br /><a href="http://vimeo.com/2345739">Space Invader Class</a> from <a href="http://vimeo.com/polymonkey">matt ditton</a> on <a href="http://vimeo.com">Vimeo</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-7188359861927075782?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-81297175949126482512008-11-22T08:47:00.005+10:002008-11-22T09:04:58.383+10:00GCAP 2008 - Slides from my talkOn Friday I gave a talk at <a href="http://www.gameconnectap.com/">GCAP</a>. The topic was on teaching artists to program and how this can benefit the whole team. It was a chance to show off some of the experiences I've had through the year while teaching processing.<div><br /></div><div>It's also got a few tips on how to write code for other artists in your team to use. The whole thing went over well, and as promised here are the slides from the talk. If I'm really lucky maybe I can get a recording of it.<a href="http://www.polymonkey.com/blogger-polymonkey/GCAP_2008.pdf"></a><div><br /></div></div><br /><iframe src="http://docs.google.com/EmbedSlideshow?docid=ddm6wzxm_108rrrdpncp" frameborder="0" width="410" height="342"></iframe><div><br /></div><div><a href="http://docs.google.com/Presentation?id=ddm6wzxm_108rrrdpncp">the link to the doc</a></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-8129717594912648251?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-88081321947703673082008-08-17T11:16:00.004+10:002008-08-17T11:25:43.265+10:001 minute 32 seconds of pure genius.<a href="http://www.vimeo.com/1507417">natalie portman's shaved head - sophisticated side ponytail. </a><br /><br />The bit at 1.10 where the whale eats the katamary ball of the band is inspired. Also the band has taken 1995 and injected all that awesome into their <a href="http://that-go.net/ponytail/npsh_vr.html">virtual reality bonus zone</a>. Make sure you've got sound. The midi is to die for.<br /><br />MattD<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-8808132194770367308?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-29683100156165339272008-07-12T18:37:00.003+10:002008-11-24T06:58:56.710+10:00Objloader version 014 up on google codeNow with VBO!<br /><br />One piece of advice for all who come after me. When dealing with arrays in opengl, remember that the stride of an array IS IN BYTES. That's right F**KING BYTES. One Float is 4 bytes. to get to the second element in a float array you need to skip 4 bytes. Motherfu----.<br /><br />Seriously I spent about 8 hours on that bug. Just another example of information so common knowledge I knew nothing about it. Opengl you are a fickle mistress.<br /><br />mattD<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-2968310015616533927?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-47417206559185914632008-06-29T17:21:00.004+10:002008-06-29T17:44:36.089+10:00StarCraft 2 now Diablo 3, this is the end of days.Diablo 3 was announced today. After seeing the game play video I understand that whenever it gets released I do not want a game coming out anywhere near it. You can't fight that kind of awesome. Just stand back and think "So that's how you do a teaser video".<br /><br />The release of any game by Blizzard will cause a singularity that will destroy the non-Blizzard shelves of your local gaming store. If you're making a PC game right now, you'd better hurry and get it to market. When Blizzard releases Starcraft or Diablo you aren't going to sell anything for about six months.<br /><br />Of course knowing the Blizzard release system (roll 5 D20, 100 means it's ready) you've probably got a bit of time.<br /><br />MattD<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-4741720655918591463?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-46663122351828812852008-05-05T14:29:00.010+10:002008-05-06T08:00:30.787+10:00copy for HTML.Processing has a "copy for discourse" feature and when it works it awesome. It takes the code in the pde file and formats it for the discourse board. But this doesn't help when you want to publish some code on the rest of the internet. Something like this<br /><pre><blockquote><span style="color: rgb(204, 102, 0);">void</span> <span style="color: rgb(153, 102, 0);">setup</span>(){<br /><span style="color: rgb(204, 102, 0);"> String</span> myString = backwards(<span style="color: rgb(204, 0, 0);">"the quick brown fox"</span>);<br />}<br /><br /><span style="color: rgb(204, 102, 0);">String</span> backwards(<span style="color: rgb(204, 102, 0);">String</span> s){<br /><span style="color: rgb(204, 102, 0);"> String</span> t = <span style="color: rgb(204, 0, 0);">""</span>;<br /><span style="color: rgb(204, 102, 0);"> for</span>(<span style="color: rgb(153, 102, 0);">int</span> i = s.<span style="color: rgb(153, 102, 0);">length</span>() - 1; i >= 0; i --){<br /> t = t + s.<span style="color: rgb(153, 102, 0);">charAt</span>(i);<br />}<br /><span style="color: rgb(204, 102, 0);"> return</span> t;<br />}</blockquote></pre><br />OMFG colour. Adds a lot to code doesn't it.<br /><br />Well I thought that maybe other people might find this tool useful, so here is the pde that makes the pretty colored text above. It takes the contents of the "formated for discourse" clipboard and formats it for the web.<br /><ol><li>Get your code and copy it for discourse. </li><li>Run the copy for HTML pde.</li><li>Paste into blog. </li></ol><a href="http://www.polymonkey.com/uploads/copy_to_HTML.zip">copy_to_HTML</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-4666312235182881285?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-77226296512195602852008-05-05T09:32:00.003+10:002008-05-05T15:59:11.588+10:00Make your own Engrish<a href="http://www.flickr.com/photos/polymonkey/2070586820/" title="Homo Sausage by matt ditton (AKA polymonkey), on Flickr"><img src="http://farm3.static.flickr.com/2080/2070586820_4d5b4cb943_b.jpg" alt="Homo Sausage" width="400" /></a><br /><br />Fun with translators. Type in a simple phrase. and then keep translating the output till it can't translate anything else. For example.<br /><ol><li>Hello what is your name?</li><li>When there is a name, present several?</li><li>Is there a multiple which when name shows?</li><li>When name shows, is there a multiple?</li><li>When name multiple it shows there, is?</li><li>The first-rate multiple which when, is shown there where it is?</li><li>At the place where it has that, the time it is shown first-rate multiple there?</li><li>At the place where it has that, has time that been shown first-rate multiple there?</li><li>At the place where it has that to that, time has been shown thing first-rate multiple there, it is?</li><li>At the place where it has that the, had time been shown the first-rate multiple of thing, there where that it is?</li><li>Time having been shown the first-rate multiple of thing in the place where it has, there it is the that somewhere?</li><li>At the place where it has first-rate multiple of thing the time when it is shown, there it is that somewhere?</li><li>Is first-rate multiple of time thing as for that, there of a certain place which is shown that somewhere?</li><li>Is first-rate multiple time a certain place which is shown thing somewhere, there in regard to that?</li><li>Is first-rate multiplex time a certain place which has been shown somewhere thing in regard to that, there?</li></ol><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-7722629651219560285?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-14984805997699506582008-04-25T07:27:00.004+10:002008-11-24T07:01:11.230+10:00Classic lines from game dev.<span style="font-style: italic;">"I added this thing so that you can slow down time.<br />I couldn't speed up time cause things explode"<br /><br /></span><div style="text-align: right;"><div style="text-align: left;">Matt Clark<br /><br /><br />I have a very weird job.<br /></div><span style="font-style: italic;"></span></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-1498480599769950658?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-45757294272638137032008-04-07T07:05:00.003+10:002008-04-07T07:12:40.782+10:00Some damn funny game design over at Mazapan.<br /><br /><a href="http://www.mazapan.se/games/BurnTheRope.php">You Have To Burn The Rope</a><br /><br />rock paper shotgun did a <a href="http://www.rockpapershotgun.com/images/april08/ropewalkthrough.txt">walkthrough</a><br /><br />Absolute genius.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-4575729427263813703?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-69447525646397843472008-03-29T09:22:00.005+10:002008-11-24T06:59:59.819+10:00we're up on google code<a href="http://www.flickr.com/photos/polymonkey/2119707753/" title="city lights river view by matt ditton (AKA polymonkey), on Flickr"><img src="http://farm3.static.flickr.com/2032/2119707753_37c9195e3d_b.jpg" alt="city lights river view" width="400" /></a><br />In the last week I've been putting the two libraries I'm involved in up on google code. So the OBJLoader and the Collada Loader both have nice safe source controlled homes. Over the coming weeks I'll be making sure that all documentation and examples are also up on google code.<blockquotes></blockquotes><br /><pre>the <a href="http://code.google.com/p/saitoobjloader/">OBJLoader</a><br />the <a href="http://code.google.com/p/polymonkey-collada-importer/">Collada Loader</a><br /></pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-6944752564639784347?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-65890116339424237692008-03-21T07:19:00.012+10:002008-03-21T08:15:45.696+10:00Saving uncompressed TGA<div style="text-align: center;"><a href="http://www.flickr.com/photos/polymonkey/2346859161/" title="Arch by matt ditton (AKA polymonkey), on Flickr"><img src="http://farm4.static.flickr.com/3248/2346859161_a4613b565e_b.jpg" alt="Arch" width="400" /></a><br /></div>(this image has nothing to do with this post. Just something I'm working on)<br /><br />Alas <a href="http://en.wikipedia.org/wiki/RLE_Compression">RLE</a> compression isn't supported everywhere. Can't expect the earth, it's only old enough that I can't find when it was invented. But onto the problem.<br /><br />I needed to dump out uncompressed tga's from processing. Turns out this was an old processing feature that was upgraded to RLE. Because I'm still living in the dark ages, <a href="http://toxi.co.uk/blog/">Toxi</a> pointed me towards the original code that he wrote for uncompressed tga saving. Just so I don't lose it and maybe other people are looking for something like this. Here is the slapped together bit of code.<br /><pre><blockquote><a href="http://www.polymonkey.com/blogger-polymonkey/uploads/save_out_uncompressed_tga-080321a.zip">The zipped up sketch</a></blockquote></pre><br /><br />MattD<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-6589011633942423769?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-27304687094611064652008-03-11T07:43:00.005+10:002009-03-16T11:48:15.915+10:00Collada Loader 003The Collada Loader has been updated and now sits at version 003. There are a few new functions involving materials. You can check out the supplied example file for the usage. But here is the list of new stuff.<br /><pre><blockquote><br />model.toggleTexture();<br />//toggles the texture on and off<br /><br />model.toggleMaterial();<br />//toggles the collada material<br /><br />model.setTexture(PImage);<br />//replaces the loaded texture with a supplied PImage<br /><br />model.originalTexture();<br />//reloads the original texture<br /></blockquote></pre><br /><a href="http://www.polymonkey.com/blogger-polymonkey/ColladaLibrary_003_demo.zip">ColladaLibrary_003_demo.zip</a><br /><a href="http://www.polymonkey.com/blogger-polymonkey/ColladaLibrary_003_lib.zip">ColladaLibrary_003_lib.zip</a><br /><a href="http://www.polymonkey.com/blogger-polymonkey/ColladaLibrary_003_src.zip">ColladaLibrary_003_src.zip</a><br /><br />UPDATE: I'm sorry to say that with the updates to the XML library in processing, the collada loader broke. And broke hard. If anyone would like to help out in fixing this, that would be great. I'm afraid free time is just not happening for me at the moment.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-2730468709461106465?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com3tag:blogger.com,1999:blog-7904132295144001669.post-14346261142021918142008-03-06T07:22:00.008+10:002008-04-07T07:10:55.030+10:00processing and tga'sYou can always depend on a <a href="http://en.wikipedia.org/wiki/Truevision_TGA">tga</a>. That faithful image format is like an old friend. But processing has a bug where is saves them out upside down. You can see the bug in this code<br /><blockquote><pre><br />line(10,10,90,90);<br />save("data/img.tga");<br />PImage img = loadImage("img.tga");<br />img.save("data/img2.tga");<br />exit();<br /></pre></blockquote><br />Until a fix gets in, here is a workaround<br /><blockquote><pre><br />line(10,10,90,90);<br />save("data/img.tga");<br />PImage img = loadImage("img.tga");<br />PImage outImg = createImage(img.width, img.height, ARGB);<br />for(int x = 0; x < y =" 0;"></pre></blockquote><br />UPDATE:<br /><br />It's fixed for 0136. WooT<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-1434626114202191814?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-30827726421309837652008-03-05T07:49:00.006+10:002008-03-05T07:59:46.645+10:00one down thirteen to go<a href="http://www.flickr.com/photos/polymonkey/2229516948/" title="20080122_07-15_HeightField_Example_0008 by matt ditton (AKA polymonkey), on Flickr"><img src="http://farm3.static.flickr.com/2304/2229516948_d800c371b7_o.jpg" alt="20080122_07-15_HeightField_Example_0008" width="400"></a><br /><br />Week 01 of 1109GFS is in the can. Thank you to all the awesome students who came along. I had a great time. See you same place, same time, next week.<br /><br />remember<br /><pre><blockquote><br />problem = pebkac;<br />lol(u);<br /></blockquote></pre><br />mattD<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-3082772642130983765?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-73371746046112617282008-03-01T09:36:00.008+10:002008-03-05T07:59:23.234+10:001109GFS and trying to explain (art == data)<a href="http://www.flickr.com/photos/polymonkey/1928407420/" title="Words as Lines, The first book of Genesis by matt ditton (AKA polymonkey), on Flickr"><img src="http://farm3.static.flickr.com/2177/1928407420_419ae43e64_o.jpg" alt="Words as Lines, The first book of Genesis" width="400" /></a><br /><br />This is the last weekend before I start teaching at <a href="http://www.griffith.edu.au/faculty/qca/">QCA</a>. This year between working full time making games, I'll be teaching two classes called 1109GFS and 1112GFS. They have been titled something like "Programming for Artists 1 &amp; 2" but I prefer to call them 1109 and 1112.<br /><br />The formal structure of the class will be teaching <a href="http://www.processing.org/">processing</a> to students of the <a href="http://www17.griffith.edu.au/cis/p_cat/admission.asp?ProgCode=1338&amp;Type=overview">games design degree</a>. But the subtext of whole thing is to try to show that you can view art as a form of data. It's a different approach and one that takes understanding before you can appreciate all the ramifications of what that approach means. Consequently when I talk about this idea at work they smile politely and nod. There is a lot of scratching and shaking of heads, and it mostly finishes with everyone agreeing that I'm on to something, we just can't put a good finger on it.<br /><br />First class is on Tuesday night. Wish me luck.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-7337174604611261728?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com0tag:blogger.com,1999:blog-7904132295144001669.post-38301572935616415112008-02-19T16:04:00.004+10:002008-02-19T16:44:56.055+10:00Processing Collada Loader version 001<span style="font-family:arial;">Here it is.</span><br /><br /><a style="font-family: arial;" href="http://www.polymonkey.com/processing/colladaLoader/001/colladaLoader_001.zip">Library</a><br /><a style="font-family: arial;" href="http://www.polymonkey.com/processing/colladaLoader/001/Collada_Loader_source_001.zip">Source</a><br /><a style="font-family: arial;" href="http://www.polymonkey.com/processing/colladaLoader/001/collada_library_test.zip">Example</a><br /><br /><blockquote style="font-family: arial; font-weight: bold;">So why another format?</blockquote><br /><span style="font-family:arial;">Lot's of reasons but mostly because I needed to load Collada files into processing. The added bonus is that the collada format is far more extendable than the obj format. It can store mesh, splines, cameras, lights, skeletons, skins, animation and even physics. So it's more a storage medium for 3D data rather than being just a model format.</span><br /><br /><blockquote style="font-family: arial; font-weight: bold;">What can your loader do for me?</blockquote><br /><span style="font-family:arial;">At the moment the loader can load and display one model with one material (textured or untextured). There are also several helper functions for drawing the bounding box, vertex normals, face normals and the wire frame. You can see them all in the example above.</span><br /><br /><blockquote style="font-family:arial;"><span style="font-weight: bold;">Is that it?</span></blockquote><br /><span style="font-family:arial;">In this release, I'm afraid so. There is a lot more work to do. The current todo list (in order) looks like this.</span><br /><ol style="font-family: arial;"><li>Multiple materials</li><li>Multiple geometries.</li><li>Cameras</li><li>Lights</li><li>Splines</li><li>Animation</li></ol><br /><span style="font-family:arial;"><span style="font-weight: bold;"><blockquote>So when is it going to be finished?</blockquote></span><br />Um. I'll get back to you on that.<br /><br /><span style="font-weight: bold;"><blockquote>Can you add support for (insert thing here)?</blockquote></span><br />Yes. It's meant to be used. If there is something that you need from the loader just ask.<br /><br /><blockquote style="font-weight: bold;">I broke it.<br /></blockquote><br />Excellent. Drop me and email and I'll try and get it sorted.<br /></span><br /><br /><span style="font-family:arial;">MattD</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7904132295144001669-3830157293561641511?l=www.polymonkey.com%2Fblogger-polymonkey'/></div>polymonkeynoreply@blogger.com2