RandomMeme Blog tag:www.randommeme.com,2010:/mblog/ Notes on various personal projects. Mango 1.4.3 The Ritual urn:uuid:5DB7EC3C-9C58-5A92-6DE875B0E86D86FC 2010-03-14T12:03:21Z 2010-03-14T12:03:49Z <p>A dream I had the other night...</p> <p>A young boy stands before his parents in a dark wood. Others are hidden off in the woods, watching silently.ᅠ The boy turns, and begins walking along the path.ᅠ Along the way, he finds,ᅠ in the dust, words written in smooth white river stones.ᅠ Insults: baby, cry, weak, little girl, stupid, child... at each group of stones, he pauses, reads and considers, then picks up the stones and puts them into a pouch that he carries.ᅠ Parents follow, at a distance, mother weeping, father consoling.</p> Andy <p>A dream I had the other night...</p> <p>A young boy stands before his parents in a dark wood. Others are hidden off in the woods, watching silently.ᅠ The boy turns, and begins walking along the path.ᅠ Along the way, he finds,ᅠ in the dust, words written in smooth white river stones.ᅠ Insults: baby, cry, weak, little girl, stupid, child... at each group of stones, he pauses, reads and considers, then picks up the stones and puts them into a pouch that he carries.ᅠ Parents follow, at a distance, mother weeping, father consoling.</p> <p>He comes to a lake, and walks into the shallows, slowly walking towards a small island, farther down the beach.ᅠ As he walks, he takes out the stones, considers them, and throws them out across the lake.ᅠ When he gets to the island,ᅠ his older/younger brother/friend greets him with a handshake and a strong hug.ᅠ They cross the island together, to the opposite side,ᅠ where there is pile of rocks on the beach, beyond which is deep cold blue water.ᅠ The boy turns to his companion, hugs once more, hands off the now empty pouch.ᅠ He turns to the deep water, and without a pause runs and dives in, vanishing from sight.ᅠ After a pause, the young man's head breaks the surface, and he swims around the small island, to the beach, to be greeted by all his family and friends, who bring him to a big feast in his honor.</p> <p>In the dream, my point of view kept changing, from the boy to the parent and back, until finally, I was the person that met the boy on the island, who watched him dive into the lake...</p> Dungeon Sample: That Frog... urn:uuid:81F7C286-C5D5-C788-42A1B01188ED18F7 2010-01-30T08:01:36Z 2010-01-30T09:01:56Z <p>I've been playing with the various LDraw tools lately... hoping to have some fun and build some scenery.</p> Andy <p>I've been playing with the various <a title="LDraw" href="http://www.ldraw.org/" target="_blank">LDraw</a> tools lately... hoping to have some fun and build some scenery.</p> <p>Built this image with <a title="MLCad" href="http://www.lm-software.com/mlcad/" target="_blank">MLCad</a>, captured it from <a title="LDView" href="http://ldview.sourceforge.net/" target="_blank">LDView</a>, and cropped and added the thought bubble with Paint Shop Pro.</p> <p><img style="border: 0;" src="/mblog/assets/content/Lego/Dungeon/Dungeon-LastGuy.jpg" alt="Dungeon Crawler - That frog..." width="500" height="400" />ᅠ</p> <p>Oh, and thanks to <a title="BrickQuest" href="http://www.brickquest.com/brickquest/" target="_blank">BrickQuest</a> for the wall designs...</p> <p><img src="/mblog/assets/content/Lego/Dungeon/Dungeon-LastGuy02.jpg" alt="" width="500" height="312" /></p> Simple LDraw viewer code in Processing urn:uuid:1FEA1D9B-E1A2-5BBA-856E23D602EE3F18 2010-01-11T07:01:27Z 2010-01-11T07:01:48Z <p>Well, here's the code that I wrote almost year and a half (!) ago, to display LDraw files using the Processing language.</p> Andy <p>Well, here's the code that I wrote almost year and a half (!) ago, to display LDraw files using the Processing language.</p> <p>It's very basic, without too many features, and it certainly isn't optimized, so don't try to display anything too big or complex.ᅠ It was written for Processing 1.0.1, I think, but it's been a while since I have had the time to look at it.ᅠ I think I included all of the library files for procesing that you'd need to build it, but you have to place them in the normal place in the Processing install folders.ᅠ I also included the LDR models that I was using for testing.</p> <p>You'll need to download Processing, install it and the libraries, and you'll need to have the LDraw parts library installed on your machine.ᅠ I have the location of the LDraw parts library hard coded in the file for now.</p> <p>Here's the zip: <a title="ProcessingLcad-Oct2008.zip" href="/mblog/assets/content//Lego/LDraw/ProcessingLcad-Oct2008.zip" target="_blank">ProcessingLcad-Oct2008.zip</a></p> <p>If I remember correctly, I needed to consult several message boardsᅠon some of the math/matrix type stuff while I was working on it...ᅠ It was pretty intense.</p> <p>I'd love to hear if anyone does anything with it, so please drop me a line on here if you do.ᅠ </p> Found SR 3D Builder Virtual Lego Tool urn:uuid:1920FDA1-F742-9119-0B4B88C7FCF96715 2010-01-10T11:01:33Z 2010-01-10T06:01:06Z <p>Well, started to fool around with some virtual Lego again.ᅠ Not my dabbling with the tool I started in Processing, but I found a new tool online, called <a href="http://staff.polito.it/sergio.reano/" target="_blank"><span style="text-decoration: underline;"><span style="color: #0066cc;">SR 3D Builder</span></span></a>.ᅠ It's a work in progress, but it has some awesome abilties so far, like snapping to connection points, and rotating pieces around an axis.ᅠ Every piece that I tried to rotate around an axis worked extremely well, even locking into place for my favorite tricks, like a 3-4-5 triangle and a 5-12-13 triangle.</p> Andy <p>Well, started to fool around with some virtual Lego again.ᅠ Not my dabbling with the tool I started in Processing, but I found a new tool online, called <a href="http://staff.polito.it/sergio.reano/" target="_blank"><span style="text-decoration: underline;"><span style="color: #0066cc;">SR 3D Builder</span></span></a>.ᅠ It's a work in progress, but it has some awesome abilties so far, like snapping to connection points, and rotating pieces around an axis.ᅠ Every piece that I tried to rotate around an axis worked extremely well, even locking into place for my favorite tricks, like a 3-4-5 triangle and a 5-12-13 triangle.</p> <p>Was able to build these data files extremely quickly, coinsidering I was only using the tool for a couple of hours.ᅠ These were built using SR 3D Builder, then edited slightly in <a href="http://lddp.svn.sourceforge.net/viewvc/lddp/trunk/Current%20Build/LDDesignPad.exe" target="_blank">LDDesign Pad</a>, to remove some extra characters inserted by SR 3D Builder that other LDraw tools aren't expecting.ᅠ Then they were displayed using <a href="http://ldview.sourceforge.net/Downloads.html" target="_blank">LDView</a>.</p> <p>ᅠ</p> <p><img src="/mblog/assets/content//Lego/LDraw/Sphere1.jpg" alt="6.8 stud diameter perfect Lego Sphere" width="500" height="375" /></p> <p><img src="/mblog/assets/content//Lego/LDraw/Technic345example1.jpg" alt="Perfect Triangle 3-4-5 in Lego" width="500" height="375" /></p> <p><img src="/mblog/assets/content//Lego/LDraw/Technic51213Example1.jpg" alt="Perfect Triangle 5-12-13 in Lego" width="500" height="375" /></p> <p>Now, it's not perfect yet, but it's one heck of a good start...ᅠ You should check it out.</p> <p>Dat files are here:<br /><a href="/mblog/assets/content//Lego/LDraw/Sphere.LDR" target="_blank">6.8 Sphere</a><br /><a href="/mblog/assets/content//Lego/LDraw/Technic345example.ldr" target="_blank">3-4-5 Triangle</a><br /><a href="/mblog/assets/content//Lego/LDraw/Technic51213Example.ldr" target="_blank">5-12-13 Triangle</a></p> Feynman: Fun to Imagine 8 - Seeing Things urn:uuid:5EEBF6F5-CCBD-9214-400C9FC9D63293DF 2009-08-27T10:08:57Z 2009-08-27T10:08:25Z <p>Richard Feynman, talking about how we see.</p> Andy <p>Richard Feynman, talking about how we see things, and how all of the electromagnetic energy is always there around us.</p> <p><a href="http://www.youtube.com/watch?v=1qQQXTMih1A">http://www.youtube.com/watch?v=1qQQXTMih1A</a></p> <p>ᅠ</p> Ode to MeepMeep urn:uuid:2086FBE1-B09D-8B71-2B85104A914F38BD 2008-09-01T08:09:56Z 2008-09-01T08:09:58Z <p>Here's a brief little move clip I stumbled across with Beaker from the Muppets singing Ode to Joy.</p> Andy <p>I have always loved Jim Henson's Muppets, and although I did not intend to post just anything to my blog, I can't resist putting this little gem out to be seen by whoever is reading.</p> <p><a href="http://www.youtube.com/watch?v=xpcUxwpOQ_A" target="_blank">Beaker singing Ode to Joy</a></p> <p>This has Beaker from the Muppets singing Ode to Joy...ᅠ There's so much going on at the same time that I needed to watch it several times to get it all.ᅠ I especially love when the Beaker in the middle on the top breaks the glass with his voice, and the water spills on the lower middle Beaker, causing the metronome to speed up...ᅠAnd then things really get going. My gosh, this is everything that is great about the Muppets.</p> LDraw viewer in Processing urn:uuid:115B1B15-C851-D1F7-534E7A1F17D8744D 2008-08-29T09:08:39Z 2008-08-29T10:08:46Z <p>One of the great things about the online Adult Lego community is that you can find such a large number of really talented individuals that like to "Play Well" and share their creations. One such sub-community is the people that work on <a title="LDraw.org" href="http://ldraw.org/" target="_blank"><span style="text-decoration: underline;"><span style="color: #800080;">LDraw .org</span></span></a>.ᅠThese hard working individuals have built a huge library of 3D Lego part definitions and the software needed to build virtual Lego models in 3D.</p> <p>The specifications for their part definitions are all online, and they have some great documentation explaining how to use them.</p> <p>I have always been interested in working with 3D programming, but have never had the time to learn it properly. As it so happens, <a title="Processing programming language" href="http://www.processing.org/" target="_blank"><span style="text-decoration: underline;"><span style="color: #800080;">Processing</span></span></a> has some nice simple syntax to allow OpenGL drawing, so I have taken it upon myself to see what I can do. As you can see below, have managed what I would consider a decent start.</p> <p><img src="/mblog/assets/content/Lego/LDraw/ForestMan-082908.jpg" alt="My LDraw viewer showing a Lego (LDraw) Forestman" width="350" height="350" /></p> Andy <p>One of the great things about the online Adult Lego community is that you can find such a large number of really talented individuals that like to "Play Well" and share their creations. One such sub-community is the people that work on <a title="LDraw.org" href="http://ldraw.org/" target="_blank">LDraw .org</a>.ᅠThese hard working individuals have built a huge library of 3D Lego part definitions and the software needed to build virtual Lego models in 3D.</p> <p>The specifications for their part definitions are all online, and they have some great documentation explaining how to use them.</p> <p>I have always been interested in working with 3D programming, but have never had the time to learn it properly. As it so happens, <a title="Processing programming language" href="http://www.processing.org/" target="_blank">Processing</a> has some nice simple syntax to allow OpenGL drawing, so I have taken it upon myself to see what I can do. As you can see below, have managed what I would consider a decent start.</p> <p><img src="/mblog/assets/content/Lego/LDraw/ForestMan-082908.jpg" alt="My LDraw viewer showing a Lego (LDraw) Forestman" width="350" height="350" /></p> <p>In the basic LDraw part definitions, they have Lines, Triangles, Quads, Optional Lines, and SubParts.ᅠI have implemented all except Optional Lines at this point. Optional Lines are used to give correct colored borders to curved pieces only where they are needed.ᅠ As for Colors, I have implemented the basic LDraw colors, but not the complementary colors that are usually used for edging each colored piece, at this time, I'm still using just plain black. Still, I'm pleased that I have made such progress in such a short period of time (just a few days of actual coding).</p> <p>Processing has also made it easy to put in the various transparent colors, as seen in this example:</p> <p><img src="/mblog/assets/content/Lego/LDraw/GearTransTest-082908.jpg" alt="My LDraw viewer showing a sample of bricks, including some that are transparent." width="350" height="350" /></p> <p>Naturally, I didn't actually build the model files with my little program... I used <a title="Mike's Lego CAD" href="http://www.lm-software.com/mlcad/" target="_blank">MLCad</a>, which is one of the best tools available for Lego CAD work, even though it hasn't been updated in a few years. I believe that the author started having a family of his own right around the same time that I did.</p> <p>Where am I going with this tool?ᅠ I really don't know. I'd like to continue to play with it for a while, and see how far I can take it.ᅠ When it gets a little bit more complete,ᅠI would like to release the source code and allow other people to use it for their own projects...</p> <p>In the meantime, my short to do list is:</p> <ol> <li><span style="color: #555555;">get edge colors working</span></li> <li><span style="color: #555555;">get optional lines working</span></li> <li><span style="color: #555555;">count each primitive (line, tri, quad, optline) as a basis before optimizing</span></li> <li><span style="color: #555555;">examine possibility of using Back Face Culling as defined in the LDraw specs for doing less work in each draw cycle</span></li> <li><span style="color: #555555;">use one of the Processing camera libraries for moving the view around</span></li> </ol> <p>We'll see how it progresses...</p> Lego enters the picture again urn:uuid:114C666F-A18A-731C-6F78BF97C9639430 2008-08-29T09:08:19Z 2008-08-29T09:08:51Z <p>I have loved Lego Bricks since I was very young.ᅠWith my children growing a little older, they are coming back into my life. :-)</p> Andy <p>I've always loved Lego bricks, from when I was a child. A few years back, before my children were born, I came out of my "dark age", as it's called in the Adult Lego community, and began collecting again. I found <a title="LUGNET" href="http://www.lugnet.com/" target="_blank">LUGNET</a>, the Lego Users Group Network, and joined and was active on there for a few years, until my eldest son became old enough to be mobile and exploring the environment. Away went the Lego bricks, for a time, as fatherhood was, of course more important. Now my eldest is almost 7 and my youngest is 2 1/2, and the physical danger is now gone, so Lego is gradually creeping back into my life. My oldest son shows me something that he has built nearly every day, and it is really quite a thrilling time.</p> A Princess of Mars (Barsoom volume 1) urn:uuid:0BDB1F4C-ECF4-7029-E079CA7F5F76C7A8 2008-08-28T08:08:23Z 2008-08-29T11:08:03Z <p>Just finished reading "A Princess of Mars" by Edgar Rice Burroughs. Loved it... even though the science is quite dated.</p> Andy <p>I just finished reading a rather old science-fiction/fantasy novel. It was <a href="http://en.wikipedia.org/wiki/Barsoom" target="_blank">"A Princess of Mars", by Edgar Rice Burroughs</a>. It was first published as a serial written way back in 1912! Edgar Rice Burroughs probably sounds familiar, and he should, as he is much more famous for writing about Tarzan of the Apes.</p> <p>I was able to read this book through my email, through a great website called <a href="http://www.dailylit.com/" target="_blank">DailyLit</a>. They break books down into small, easily finished bits that they then either send you through email, or allow you to subscribe through a feed reader. They have a large number of books that are free, but they also have an increasing number of books that you can pay a small fee to receive in this way.</p> <p>As for the book, I really enjoyed it quite a bit. It's obviously more than a bit dated, as at the time that it was written, science still believed that there were canals on Mars. You can tell that it was written as a serial, as there's quite a bit of action, and the hero, JohnᅠCarter,ᅠis rather larger than life. I've signed myself up for the next book in the series from DailyLit, and I can't wait to get the first email tomorrow. :-)</p> I'm an Evolutionary Dead-End urn:uuid:286B8320-A1BD-9279-34B229AC6E7490D5 2008-07-17T10:07:00Z 2008-08-28T02:08:01Z <p>I've begun to suspect that I'm an evolutionary dead-end. Believe me, it's discouraging, but I'm not really sure what to do about it.</p> Andy <p>I've begun to suspect that I'm an evolutionary dead-end. Believe me, it's discouraging, but I'm not really sure what to do about it.</p> <p>Maybe not totally a dead end, I mean, I've managed to pass on my genes... But somehow, that doesn't seem to be enough. Evolution means survival of the fittest, and lately, I just don't feel like one of the fittest.</p> <p>I've been trained from birth to be a rule follower, and a law abiding citizen. And trust me, the training took. Which leads me to believe that I've been set up to be mediocre. I'm not sure how an individual can make a positive contribution to their species by following the pack. But at the same time, I understand that there needs to be a certain level of pack behavior in order for the pack to prosper as a whole. Those people that go too far against the pack are not allowed to contribute to the future. However, the ones that seem to go along with the pack, but are actually serving their own interests, go much further than the fodder that meekly go along.</p> <p>Of course, reading this back to myself, I realize that evolution has nothing to do with the individual. Individuals aren't important, the species is key. Still, I find little comfort there.</p> <p>I look at my children, and sometimes I wonder if I am doing them a disservice by teaching them rules and having them follow the order that I have been trained to follow. Maybe I should be teaching them how to manipulate the system, while smiling and acting like the good models that society expects them to be. On the other hand, I doubt that living with cunning little manipulators would be all that appealing.</p> <p>Perhaps I'm growing too cynical...</p> The Tree urn:uuid:0FCD0020-0CAC-449B-3C07E9E85C9E1206 2008-07-10T09:07:59Z 2008-07-11T08:07:05Z <span style="font-size: 16px; font-family: Times">I had a dream last night...I dreamt that I was high above the earth, in a vast, living tree. I stood at a branching of the limb, and realized that I had to choose which path to take. </span> Andy <p>I had a dream last night...I dreamt that I was high above the earth, in a vast, living tree. I stood at a branching of the limb, and realized that I had to choose which path to take. I looked ahead, but the branches did not, could not continue of course, until I decided which one I would take. I looked behind me and I saw thousands of branches, thousands of decisions that I had made in the past, any one of which would have brought me to a different part of the tree entirely.</p><p>I thought of the path that I had followed, and I thought of the seasons that I had seen. Of the Spring times, with the wild growth, and happiness running rampant, of carefree life with many rewards. I thought of the Summer times, with warmth and growing maturity, growth tempered by wisdom, and rewards that came from hard work. Of the Autumn seasons, progress stunted by obstacles, occasional clouds and chill, and setbacks and failures. Finally I thought of the Winters, of the cold days, of loneliness, feelings of hopelessness and despair, and loss so strong that I felt the tree sway beneath my feet and the sun seemed dim. My heart was heavy as I thought of some of the seasons that I had seen as I walked my path of branches.</p><p>I looked to my left, at a branch that ran parallel to the one I was on. I wondered what choices I could have made to be there, instead of here. I wondered what choices would lay at my feet if I were on that branch, but the distance between here and there was too great, there was no way to tell, and anyway, there was no way to get from here to there.</p><p>I looked up and saw the sun far above me, giving me life, and calling me upward. I looked again at the tree of my life, and saw that during my journey I had not always taken the upward path, there were times when I descended back toward the abyss from which I began. The decisions were hard, and the path long and difficult. I could not change the decisions that I had made in the past, but I could remember where they had taken me as I went forward. I could feel my family and friends all around me, but only I could make the decision that lay before me. I looked upward to the sun, and reveled in its warmth. I stepped onto the upward path, and the branches grew at my feet. Soon there would be a new branch, and I would continue onward... </p><p>Written 5/30/2000 <br />Copyright 2000, Andrew Lynch </p> Processing Programming Language urn:uuid:4D496EC1-E081-61E6-F6B4D69F558938A7 2008-02-24T04:02:54Z 2008-02-24T04:02:40Z Andy <p>Found this great project a few months ago:</p><p><a href="http://www.processing.org/"><u><font color="#800080">http://www.processing.org/</font></u></a></p><p>It&#39;s a programming language based on top of Java, but it has a simple interface to graphics, both 2D and 3D.</p>