<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Real Studio - REALbasic Programming</title>
	<atom:link href="http://bigdaddysurf.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://bigdaddysurf.com/blog</link>
	<description>Sharing Projects</description>
	<lastBuildDate>Sun, 03 Mar 2013 04:11:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Real Studio and Xcode</title>
		<link>http://bigdaddysurf.com/blog/?p=662</link>
		<comments>http://bigdaddysurf.com/blog/?p=662#comments</comments>
		<pubDate>Sun, 03 Mar 2013 04:11:11 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Blather]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=662</guid>
		<description><![CDATA[Occasionally, someone will post on the Real Studio NUG or Forums about how to learn how to Mac iOS or OS X app development and I thought I would make a comment or two on the subject. As someone who &#8230; <a href="http://bigdaddysurf.com/blog/?p=662">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Occasionally, someone will post on the Real Studio NUG or Forums about how to learn how to Mac iOS or OS X app development and I thought I would make a comment or two on the subject.</p>
<p>As someone who has transitioned from Real Studio (RS) aka REALbasic (Rb) to Xcode, as a self taught hobbyist programmer, I feel I have a nice perspective on this transition.</p>
<p>First of all, I find the Xcode IDE a very difficult and often times buggy development environment overall compared to Real Studio. RS is of course not without its&#8217; issues, but by and large it&#8217;s a far more stable IDE. The RS Event driven paradigm has been far easier to comprehend than Xcode. In some defense of Xcode, it does have more abilities to build for more Targets within the Mac platform than RS. And, I&#8217;m guessing here, that Xcode when it was being written before the days of Code Warrior was never intended to see the light of day outside Apple&#8217;s walls. As Xcode has progressed over the last few versions, it has become far more non-Apple engineer developer friendly. And, interestingly enough, the Interface Builder, Storyboard transition has become more and more very much like the RS way of visually developing your user interface. Although hooking things up from StoryBoard to Code is akin to black magic, blah.</p>
<p>My main point in this little blog posting is to state that starting off learning RS and its&#8217; Real Basic language is a perfect way to move on up to Xcode and the Objective-C (Obj-C) language. It&#8217;s not a perfect transition, but it is very solid path if you have intentions of being a Mac developer. In fact, although I only dabble in HTML, Java, C, C++ and other languages, I consider RS to be a solid foundation for learning programming even if you are not targeting Xcode as your next step. Again, RS is a solid foundation learning tool for programming. Xcode is not.</p>
<p>Yes, RS is that solid and good a product to invest your time in. Why? Mostly because it is a powerful programming application. Some reasons;</p>
<p>* The REALbasic language has its&#8217; roots in BASIC. Which to me, BASIC is understandable code instructions. Defining variables that are strongly typed, like understanding why and integer can not just be shown as a string in a label, is a fundamental learning experience. Rb is a strongly type language and this is great. Obj-C is not.</p>
<p>* Rb hides users from the use of pointers. They are there of course, but you don&#8217;t need to worry about what a pointer is or what it is doing. Frustration comes from not understanding pointers, you can leave them behind in RS. Obj-C is all about using pointers.</p>
<p>* Rb makes it fairly easy to grasp the concept of using classes and instantiating them in code. These classes introduce you to Methods and the use of Properties within a Class and from other Classes. Obj-C uses the same items but it&#8217;s just not presented in a very cogent manner like in RS. In fact, Xcode can make using these items darn right obfuscated and onerous.</p>
<p>* RS is an event driven program. It takes a little time to figure this out as a new user, but I think it gives the new programmer a sense of answering the question, &#8220;OK I have this code, where the heck do I put it?&#8221;. The events break down the loop cycle of any computer program. When a particular code sequence is executed is confusing. And it&#8217;s darn important to know what order things happen if your code is to be logical. Objects need to be created before they are used. While the event paradigm in RS doesn&#8217;t eliminate this issue all together, it does vastly simplify and shield it from users. Obj-C on the other hand, is not like this. It introduces allocation and initialization sequences, protocols and a host of other concepts regarding code execution sequences.</p>
<p>* RS does a lot for you behind the scenes &#8211; a lot. But this does&#8217;t mean you can&#8217;t get down and dirty as a more experienced programmer and get near C performance, you certainly can, not easily, but the language can be extended via declares to libraries and plugins (via Xcode). The newest version of Xcode is starting to do more and more for you behind the scenes too. Xcode just introduced, Automatic Reference Counting (ARC) &#8211; Mahalo Apple! This is a management scheme that Rb has basically already had for a decade or so. It takes away a lot of the drudgery associated with memory management, Memory management is a major pain and Rb is golden in this regard.</p>
<p>* Cross Platform Development. RS compiles for Mac, PC and Linux. The fee to accomplish this has always been too steep for me and cross platform is not important to me, so it was never a selling point personally &#8211; I prefer my Mac. I&#8217;d say &#8220;most&#8221; users of RS buy it for this feature. Xcode only compiles for an Apple product.</p>
<p>* Object Oriented Programming (OOP). The catch phrase of all catch phrases in the programming world. OOP introduces the use of classes and its&#8217; associated objects aka instantiation. It&#8217;s a very fundamental lesson in modern programming and RS easily supports and help you to understand this concept. But, it also allows you to NOT use it if you perhaps have an old BASIC program that you want to re-write. OOP is cool, but it takes awhile to grasp it. RS can help. Xcode and more specifically, Apple and Obj-C language, have embraced a concept called Model-View-Object (MVC) as their preferred paradigm or design pattern. And it takes classes to a whole new level. It really doesn&#8217;t force you to use it in your own code, but it does force you in a way due to the way the iOS frameworks are used together. For the most part the Rb language doesn&#8217;t adapt to the MVC design pattern very well. Interesting enough, Obj-C doesn&#8217;t allow for multiple inheritance in classes just like Rb. Obj-C uses protocols and delegates as an alternative to using subclasses.</p>
<p>* Why Xcode? So if I love using RS, why Xcode? Good question <img src='http://bigdaddysurf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Several reasons really. First of all, for me, programming is a challenge. You go to the gym or wherever to keep your body in shape. I use programming to keep my mind lean, toned and sharp. Xcode really is tough for me, and so is Obj-C. I&#8217;ve been using Rb since 1999, so it is second nature to me. I&#8217;ve learned to use declares in Rb side by side as I&#8217;ve been learning Obj-C. That has been a challenge and fun applying this to Rb. But my main goal in learning to use Xcode and Obj-C has been to get a native iOS App on the App Store, which I have done! Easy? Oh no, not for me, Xcode trips you up on about every step it can. A future version of RS is supposed to have the iPhone as a target, but in my opinion, this is going to be very tough for them to accomplish &#8211; I sincerely hope they do, but &#8230;. The other reason is Xcode uses all native controls for the Mac and will always support what ever product is new and groovy on from Apple. Xcode is what Apple engineers use. RS has never been able to keep up in a timely manner with Apple products. Even Cocoa is still a beta product. That&#8217;s not being critical of RS, just a statement of fact indicating my goal of being able to write up to date Apple apps.</p>
<p>* Show Me The Path. If you are wanting to know what Xcode is all about even if you&#8217;re completely new to programming, have decades of programming experience or anything in between, watch the iPhone and iPad series from Stanford University via iTunes. You should also go to Amazon and buy a few two, three, or a dozen books too, but this classroom video series is your avenue to what developing on a Mac using Xcode is all about &#8211; it&#8217;s fabulous and well produced. And it&#8217;s timely! The new semester for 2013 is already being posted. Taught by <strong>Paul Hegarty</strong>, awesome teacher who keeps things moving at a fast pace. Here are some links for you,</p>
<p>&#8211;> Stanford Page that shows the courses since 2010. The earlier video&#8217;s are worth your time too, some things will be dated, but the concepts are all there and solid.<br />
<a href="http://www.stanford.edu/class/cs193p/cgi-bin/drupal/" title="Stanford Home Page" target="_blank">Stanford Home Page</a></p>
<p>&#8211;> iTunes Page. This will link you to the Stanford video page.<br />
<a href="https://itunes.apple.com/us/course/coding-together-developing/id593208016" title="iTunes Page" target="_blank">iTunes Page</a></p>
<p>* Internet Sources. Just Google for Xcode iOS or OS X tutorials and a gabillion links pop up. Here are a few I like,</p>
<p>&#8211;> Not a tutorial site, but your go to site when you get errors in Xcode or need just some advice.<br />
<a href="http://stackoverflow.com" title="StackOverFlow" target="_blank">StackOverFlow</a></p>
<p>&#8211;> iOS Tutorials<br />
<a href="http://www.appcoda.com/ios-programming-tutorial-create-a-simple-table-view-app/" title="App Coda" target="_blank">App Coda</a></p>
<p>&#8211;> From Obj-C To The Kitchen Sink in Tutorials &#8211; Great Site<br />
<a href="http://www.raywenderlich.com/21320/objectively-speaking-a-crash-course-in-objective-c-ios6" title="Ray Wenderlich" target="_blank">Ray Wenderlich</a></p>
<p>* Summary. Want to learn to program? I mean really learn not just pretend. Get Real Studio and stop watching those brain draining TV reality shows and commit to a few hours a night. It&#8217;s a great product that is worth your time and money. As a note, Real Studio is about to change the way they offer their subscription programs i.e. $$ to use it. Soon, no one knows when, but hopefully (fingers crossed) in 2013, The IDE will be available for <strong>FREE</strong>. You can learn and use it for nothing and only pay a fee when and if you want to deploy (build) an executable.</p>
<p><a href="http://www.realsoftware.com" title="Real Studio Home Page" target="_blank">Real Studio Home Page</a></p>
<p>Xcode is free from the Mac App Store &#8211; It&#8217;s a huge download and comes with a precipitous learning curve.</p>
<p><a href="https://itunes.apple.com/us/app/xcode/id497799835?mt=12" title="Xcode" target="_blank">Xcode</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=662</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scene Kit 3D Cocoa</title>
		<link>http://bigdaddysurf.com/blog/?p=609</link>
		<comments>http://bigdaddysurf.com/blog/?p=609#comments</comments>
		<pubDate>Sat, 10 Nov 2012 06:07:20 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=609</guid>
		<description><![CDATA[Update 11.9.2012 I&#8217;ve added a few more models to the project, including a few I&#8217;ve just created using a program called SketchUp. I&#8217;m easily entertained, but this is quite cool. A free 3D app from Google that seems to work &#8230; <a href="http://bigdaddysurf.com/blog/?p=609">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Update 11.9.2012<br />
I&#8217;ve added a few more models to the project, including a few I&#8217;ve just created using a program called SketchUp. I&#8217;m easily entertained, but this is quite cool. A free 3D app from Google that seems to work very well where you can export the files to my Rb project to view them. I&#8217;m still going through the tutorials for SketchUp so my additions are very amateurish, but again, fun for me.</p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-09-at-9.05.54-PM.png"><img src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-09-at-9.05.54-PM-300x284.png" alt="" title="House Screen Shot" width="300" height="284" class="aligncenter size-medium wp-image-653" /></a><br />
<a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-11-at-4.42.29-PM.png"><img src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-11-at-4.42.29-PM-300x284.png" alt="" title="InteriorScreenshot" width="300" height="284" class="aligncenter size-medium wp-image-656" /></a></p>
<p><a href="http://www.maui.net/~mauitom/SceneKitDocumentViewer.zip" title="" target="_blank">Download This Project Here &#8230;</a></p>
<p>Update 11.5.2012<br />
Just completed one of the Apple project example ports. The example shows how to load a scene created with Collada.<br />
<a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-05-at-8.52.57-PM.png"><img src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-05-at-8.52.57-PM-300x284.png" alt="" title="Document Viewer Screenshot" width="300" height="284" class="aligncenter size-medium wp-image-640" /></a><br />
That dude is bobbing and moving a little &#8211; very cool. And it only takes a few lines of code to do this, amazing.</p>
<p><code>  Me.InitializeView<br />
  Me.AllowsCameraControl = True<br />
  Me.JitteringEnabled = True<br />
  Me.Playing = True<br />
  Me.AutoEnablesDefaultLighting = True<br />
  Me.BackgroundColor = &#038;c00000000<br />
  //<br />
  Dim aNSBundle As NSBundleTJC<br />
  aNSBundle = New NSBundleTJC(NSBundleTJC.MainBundle)<br />
  Dim bundlePtr As Ptr<br />
  bundlePtr = aNSBundle.URLForResource("scene", "dae")<br />
  Dim aNSURL As New NSURLTJC(bundlePtr)<br />
  //<br />
  Me.LoadSceneAtURL aNSURL.Pointer</code></p>
<p>The download is the compiled OS X binary.<br />
<a href='http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Scene-Kit-Document-Viewer.zip'>Download The Project App Here &#8230;..</a></p>
<p>11.4.2012 Original Post<br />
I&#8217;ve been coding up a few Cocoa only projects using declares to the Objective-C runtime calls. This is my most recent foray in to a relatively new framework, called Scene Kit. Conceptually, SceneKit sits above OpenGL, but below the higher level frameworks like AppKit. SceneKit is primarily what&#8217;s known as a scene graph management library. It manages one or more 3D objects plus lights and camera. These items together, comprise a &#8220;scene&#8221; that can be manipulated and displayed on screen. This blog from Jeff LaMarche will give you an idea of what the Scene Kit is capable of doing. <a href="http://iphonedevelopment.blogspot.com/2012/08/an-introduction-to-scenekit.html" title="Scene Kit Example" target="_blank">Scene Kit Blog</a><br />
If you peruse the Apple Developer site and have Xcode, you will find three nifty example code projects. In this posting I&#8217;m including the compiled Mac project of my most recent version.<br />
<a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-03-at-7.31.58-PM.png"><img src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-03-at-7.31.58-PM-270x300.png" alt="" title="Scene Kit App Screenshot" width="270" height="300" class="aligncenter size-medium wp-image-615" /></a><br />
The framework provides quite a few routines to draw primitives. These include a floor, box, capsule sphere, cone, torus, pyramid, tube and text. This screenshot is a test project using the 3D text features with a reflective floor. As you can see, you can attach textures (images) to the primitives and assign diffuse and ambient properties to these textures. Again, just like in OpenGL.<br />
<a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-03-at-7.52.17-PM.png"><img src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Screen-Shot-2012-11-03-at-7.52.17-PM-292x300.png" alt="" title="Scene Kit Text Screenshot" width="292" height="300" class="aligncenter size-medium wp-image-623" /></a><br />
One of the cool features is you get &#8220;for free&#8221; mouse control of the scene view class, you can use your mouse to rotate around the objects. For now, I&#8217;m just releasing this compiled app. I hope you enjoy it.</p>
<p>Sorry, due to my upload file size restrictions, you&#8217;ll have to download the App and the images separately. Uncompress the images and place in the same directory/folder as the app.<br />
<a href='http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Scene-Kit-Release-App.zip'>Scene Kit Release App</a><br />
<a href='http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/Images.zip'>Project App Images</a><br />
To run the app in 10.8.x, press your Control button, select app, and select &#8220;open&#8221; from the dialog.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=609</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Core Graphic Display Services Project</title>
		<link>http://bigdaddysurf.com/blog/?p=645</link>
		<comments>http://bigdaddysurf.com/blog/?p=645#comments</comments>
		<pubDate>Fri, 09 Nov 2012 04:14:47 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=645</guid>
		<description><![CDATA[This is one of my older projects that wraps most of the functions from CGDisplay Services Framework. See developer.apple.com for documents. Download The Project Here &#8230;.]]></description>
			<content:encoded><![CDATA[<p>This is one of my older projects that wraps most of the functions from CGDisplay Services Framework. See developer.apple.com for documents.</p>
<p><a href='http://bigdaddysurf.com/blog/wp-content/uploads/2012/11/DisplayServices1.0.1.1.rbp_.zip'>Download The Project Here &#8230;.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=645</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Box2D Lite Port</title>
		<link>http://bigdaddysurf.com/blog/?p=578</link>
		<comments>http://bigdaddysurf.com/blog/?p=578#comments</comments>
		<pubDate>Sat, 25 Aug 2012 02:54:43 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=578</guid>
		<description><![CDATA[Update &#8211; 8.24.12 I&#8217;ve come to a point where I am unable to make any progress on this project, despite giving it a lot of time and hours! So, if you have any interest in this project, here it is. &#8230; <a href="http://bigdaddysurf.com/blog/?p=578">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Update &#8211; 8.24.12</p>
<p>I&#8217;ve come to a point where I am unable to make any progress on this project, despite giving it a lot of time and hours! So, if you have any interest in this project, here it is. The project should be self explanatory. You&#8217;ll need to read up on Box2d. Erin Catto and others have a few resources floating around on the internet. Unfortunately, most of it has to do with the full version of the physics engine, not the lite version which this is trying to port. I&#8217;ve posted questions to the forum, but never got any responses. If you make any progress or if you have any questions after looking things over, please drop me an email. Thank you.</p>
<p><a href='http://bigdaddysurf.com/blog/wp-content/uploads/2012/07/box2dLiteRELEASE_3.1.rbp_.zip'>Download Project Here &#8230;..</a></p>
<p>It seems to run fine under Cocoa and Real Studio 2012 R1<br />
********************************************************</p>
<p>Recently, with my interest in iPhone programming and the Cocos2D sprite, OpenGl, Physics, framework, I&#8217;ve been trying to learn a little bit about game physics. Box2D by Erin Catto is the framework of choice for many programmers. It&#8217;s an open source framework, and while it&#8217;s not complex, it&#8217;s not terribly easy either. <img src='http://bigdaddysurf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  And when I started to port the code over to REALbasic, there&#8217;s some C++ coding styles that just won&#8217;t work, which means I really have to understand what the code is trying to do. In addition, you need to understand the procedural methods that physics concepts bring to programming. I&#8217;m decent at understanding the physics and the need for Euler type integration steps of the simulation.<br />
<a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/07/Screen-Shot-2012-07-20-at-4.40.54-PM.png"><img src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/07/Screen-Shot-2012-07-20-at-4.40.54-PM-150x150.png" alt="" title="Box2dLiteSS" width="150" height="150" class="aligncenter size-thumbnail wp-image-584" /></a><br />
That&#8217;s a screen shot. Black background, a simple box, and a line that represents the ground. Gravity is applied and the box drops, using physics calculations, contact points are shown. This version is using OpenGL to do the drawing. Later, I&#8217;ll make that an option so you can draw using any drawing techniques or frameworks your comfortable with, the Box2D framework uses OpenGL, but it is basically intended to be rendering agnostic.</p>
<p>After plowing through the current version, I came across Erin&#8217;s download of a &#8220;lite&#8221; version. It&#8217;s a bit simpler than the full blown version, so I thought I would back up, port the lite version then (hopefully) go back and finish up the full version.</p>
<p>I&#8217;m making some progress and while I&#8217;m not ready to release any code yet, I thought I would show you this brief quicktime video of a sample project, specifically, demo1.</p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/07/Box2DLite_RB.mov">Box2DLite_RB</a></p>
<p>Pretty cool huh? I&#8217;m not sure if anyone has a Real Studio port of this framework, but even if there is one, it&#8217;s a great learning exercise for me. There&#8217;s still some gremlins in the code I need to squash, hopefully I can find them! Stay tuned &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=578</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://bigdaddysurf.com/blog/wp-content/uploads/2012/07/Box2DLite_RB.mov" length="119308" type="video/quicktime" />
		</item>
		<item>
		<title>I&#8217;m A First Time GrandPa!</title>
		<link>http://bigdaddysurf.com/blog/?p=592</link>
		<comments>http://bigdaddysurf.com/blog/?p=592#comments</comments>
		<pubDate>Sat, 21 Jul 2012 03:12:41 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=592</guid>
		<description><![CDATA[My daughter and her husband just had their first child. Emmett Thomas Steil. Amazingly Happy]]></description>
			<content:encoded><![CDATA[<p>My daughter and her husband just had their first child. Emmett Thomas Steil. Amazingly Happy <img src='http://bigdaddysurf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
<a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/07/image.jpeg"><img src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/07/image-e1342840247895-225x300.jpeg" alt="" title="Emmett" width="225" height="300" class="aligncenter size-medium wp-image-593" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=592</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals</title>
		<link>http://bigdaddysurf.com/blog/?p=562</link>
		<comments>http://bigdaddysurf.com/blog/?p=562#comments</comments>
		<pubDate>Mon, 11 Jun 2012 05:32:23 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=562</guid>
		<description><![CDATA[If you&#8217;ve been programming for any time at all, I&#8217;m sure you&#8217;ve come across the subject of fractals. They are used to teach recursive programming techniques,which, I freely admit, mostly confuse me. Well, I understand them, but never quite know &#8230; <a href="http://bigdaddysurf.com/blog/?p=562">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been programming for any time at all, I&#8217;m sure you&#8217;ve come across the subject of fractals. They are used to teach recursive programming techniques,which, I freely admit, mostly confuse me. <img src='http://bigdaddysurf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Well, I understand them, but never quite know when a particular programming problem can be solved using the technique. Oh well, such is life. This is a little project that draws a few.<br />
<a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/06/Screen-Shot-2012-06-10-at-7.21.04-PM.png"><img src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/06/Screen-Shot-2012-06-10-at-7.21.04-PM-300x259.png" alt="" title="Fractal Screen Shot" width="300" height="259" class="aligncenter size-medium wp-image-566" /></a><br />
I particularly like the tree algorithm because it does an excellent job of combining the technique with colors. Credits for the original code I ported are given in the code. The project is not optimized and it takes about five seconds to get everything drawn to the screen, but it&#8217;s still a fun exercise. I hope you enjoy it.</p>
<p>Like the other projects here, I am doing my drawing using the DrawLine routine of the Graphics class on my Mac.</p>
<p><a href='http://bigdaddysurf.com/blog/wp-content/uploads/2012/06/Fractals.rbp_.zip'>Download Project Here &#8230;..</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=562</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Particle Kinematics</title>
		<link>http://bigdaddysurf.com/blog/?p=543</link>
		<comments>http://bigdaddysurf.com/blog/?p=543#comments</comments>
		<pubDate>Mon, 21 May 2012 02:01:01 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=543</guid>
		<description><![CDATA[One of my favorite books is &#8220;Physics for Game Developers&#8221; by David Bourg from O&#8217;Reilly. Amazon Link Well written, excellent explanations, a very approachable book to a fairly daunting subject. It was released quite a few number of years ago, &#8230; <a href="http://bigdaddysurf.com/blog/?p=543">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of my favorite books is &#8220;Physics for Game Developers&#8221; by David Bourg from O&#8217;Reilly.</p>
<p><a title="Amazon Link" href="http://www.amazon.com/gp/product/0596000065/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;tag=learningtopro-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596000065" target="_blank">Amazon Link</a></p>
<p>Well written, excellent explanations, a very approachable book to a fairly daunting subject. It was released quite a few number of years ago, but Amazon is indicating that an updated version is due out soon. In the beginnings of the book he gives a few examples that have to do with a canon firing a canon ball. It&#8217;s a 3D Particle Kinetics demonstration and I&#8217;ve ported it to Real Studio. It&#8217;s pretty simple, but it is using real world physics calculations relating to mass, gravity, etc. I would imagine the developers who wrote the &#8220;Crazy Birds&#8221; iPhone app had a copy of this book on their shelf. This type of physics &#8220;engine&#8221; code can be used in a remarkably broad set of circumstances limited only by your imagination to apply it in a game or simulation project.</p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/05/Screen-Shot-2012-05-20-at-3.11.45-PM.png"><img class="aligncenter size-medium wp-image-550" title="SS Canon" src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/05/Screen-Shot-2012-05-20-at-3.11.45-PM-300x228.png" alt="" width="300" height="228" /></a>The demo shows a top view and a side view of a canon (on left) shooting a projectile that hits a target (red rectangle). The path of the ball is traced out as the timer based animation plays. Again, nothing real fancy, but I think it&#8217;s pretty cool way to wrap your head around the physics of particle kinetics.</p>
<p>The project also includes a &#8220;bonus&#8221; folder of a Rb 3D Vector Library. This library includes a port from the C++ vector library presented in &#8220;iPhone 3D Programming&#8221; by Philip Rideout from O&#8217;Reilly Publishers. Vectors, Matrices, Quaternion and Parametric classes, nifty stuff.</p>
<p><a href="http://www.amazon.com/gp/product/0596804822/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&#038;tag=learningtopro-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596804822" title="Amazon" target="_blank">Amazon Link</a></p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/05/Canon-Physics.zip">Download Project Here &#8230;..</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=543</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bresenham Plots</title>
		<link>http://bigdaddysurf.com/blog/?p=519</link>
		<comments>http://bigdaddysurf.com/blog/?p=519#comments</comments>
		<pubDate>Sat, 28 Apr 2012 01:32:57 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=519</guid>
		<description><![CDATA[On the real studio forums there was a request for code to draw a rounded rectangle with dashes. Interesting problem. So this is my little project implementing some source code sources I found online. Source web sites given in project. &#8230; <a href="http://bigdaddysurf.com/blog/?p=519">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On the real studio forums there was a request for code to draw a rounded rectangle with dashes. Interesting problem. So this is my little project implementing some source code sources I found online. Source web sites given in project. The rectangle is shown in the bottom right of the screen shot. Came out nice if I do say so! I added an ellipse and antialias Wu line too. These are all drawn to a picture buffer graphics context writing to the individual pixels. Runs pretty fast!</p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/Screen-Shot-2012-04-27-at-3.21.54-PM.png"><img class="aligncenter size-medium wp-image-521" title="SSBresenham" src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/Screen-Shot-2012-04-27-at-3.21.54-PM-287x300.png" alt="" width="287" height="300" /></a></p>
<p>I&#8217;m using a call to Drawline with the same x and y locations, essentially like calling a plot pixel call. This technique doesn&#8217;t seem to work on my tests with Vista. I think you need to make sure GDI is enabled, might be a bug, again, not sure. Works like butter on a Mac. <img src='http://bigdaddysurf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/Bresenham-Ellipse2.0.rbp_.zip">Download Project Here &#8230;</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=519</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Date Picker Cocoa</title>
		<link>http://bigdaddysurf.com/blog/?p=508</link>
		<comments>http://bigdaddysurf.com/blog/?p=508#comments</comments>
		<pubDate>Mon, 16 Apr 2012 01:45:13 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=508</guid>
		<description><![CDATA[Update 4.28.2012 Added a feature request to be able to set the calendar to a particular date. The API is to set the calendar to a specific date, Pass Year, Month, Day, Hour, Minute, Second. This is for GMT time. &#8230; <a href="http://bigdaddysurf.com/blog/?p=508">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Update 4.28.2012</p>
<p>Added a feature request to be able to set the calendar to a particular date.</p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/Screen-Shot-2012-04-28-at-5.37.50-PM.png"><img class="aligncenter size-full wp-image-532" title="SSAssignDate" src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/Screen-Shot-2012-04-28-at-5.37.50-PM.png" alt="" width="152" height="161" /></a></p>
<p>The API is to set the calendar to a specific date, Pass Year, Month, Day, Hour, Minute, Second. This is for GMT time.</p>
<p><code>Me.SetDateFromComponents 1985, 7, 5, 12, 20, 10</code></p>
<p>****************************</p>
<p>Cocoa comes with a nifty calendar and clock option. If you want to add a simple display of this information in your Mac Cocoa App, you might want to give this module and class a try. It&#8217;s very easy to use with only a few lines of code required. This project wraps this functionality up for you. It is encrypted and free to use.</p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/Screen-Shot-2012-04-15-at-3.36.06-PM.png"><img class="aligncenter size-medium wp-image-509" title="Screen Shot 2012-04-15 at 3.36.06 PM" src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/Screen-Shot-2012-04-15-at-3.36.06-PM-300x293.png" alt="" width="300" height="293" /></a></p>
<p>The above screen shot of the included project is using five custom canvas classes. I added the ability to have the clock animate if you want.</p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/NSDatePickerClass2.3_encrypted.rbp_.zip">Download Project Here &#8230;..</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=508</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>OpenGL Planets</title>
		<link>http://bigdaddysurf.com/blog/?p=499</link>
		<comments>http://bigdaddysurf.com/blog/?p=499#comments</comments>
		<pubDate>Mon, 09 Apr 2012 02:08:45 +0000</pubDate>
		<dc:creator>bigdaddytom</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://bigdaddysurf.com/blog/?p=499</guid>
		<description><![CDATA[A question was posted on the Real Studio forum about rotating spheres in OpenGL. I remembered that the &#8220;red book&#8221; had an example of doing this. So I whipped up a little port of the demo. Some code from the &#8230; <a href="http://bigdaddysurf.com/blog/?p=499">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A question was posted on the Real Studio forum about rotating spheres in OpenGL. I remembered that the &#8220;red book&#8221; had an example of doing this. So I whipped up a little port of the demo. Some code from the red book is listed here. <a title="Redbook Code" href="http://lab.bachem-it.com/opengl/redbook/" target="_blank">Site Here ..</a></p>
<p><a href="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/Screen-Shot-2012-04-08-at-4.01.35-PM.png"><img class="aligncenter size-medium wp-image-500" title="Project Screenshot" src="http://bigdaddysurf.com/blog/wp-content/uploads/2012/04/Screen-Shot-2012-04-08-at-4.01.35-PM-289x300.png" alt="" width="289" height="300" /></a></p>
<p>The brown sphere represents a planet, the blue, smaller planet spins around the other one.  I added depth testing so the blue planet is not drawn as it goes behind the brown one. I&#8217;m on a Mac, you&#8217;ll have to see if it runs on your PC. <img src='http://bigdaddysurf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  If you click on the window, the animation will toggle.<br />
<a title="Download Project Here ..." href="http://www.maui.net/~mauitom/OpenGLPlanets.rbp.zip" target="_blank">Download Project Here &#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bigdaddysurf.com/blog/?feed=rss2&#038;p=499</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
