Archive for iPhone App

Speeding up vertex-array fillrates: Sequential Loop vs. vDSP

Posted in Uncategorized with tags , , , , on July 4, 2010 by bersaelor

Recently I saw the WWDC presentation on the Accelerate-framework Apple provides for the iPhone.

Now I thought to myself: “My, one very big part of my 3D-Engines code is dedicated to putting 3D geometry information into interleaved arrays, maybe I could speed that up?”

Continue reading

New Book

Posted in Uncategorized with tags , , , on April 8, 2010 by bersaelor

My sister got me an Amazon Gift Coupon for easter, so I decided to get a Book about iPhone Programming.

Being quite experienced in the basics I went for “More iPhone 3 Development” by Dave Mark and Jeff LaMarche. So far I really like it, it’s written in a casual voice but not that informal as it would substract from the matter.

It covers NSStreams and establishing Socket Connection but seems to focus on Core Data. As of now I only see minor uses of Core Data to speed up loading and saving of games in my App. Still I might have a look into it once I’m going for the Version 1.1 of the game.

So thanks Dave Mark and Jeff LaMarche for writing the book. I also figured since I learned so much from Jeff’s Blog I had to buy some of his work.

Fun-Post: lego – frame for Promo – Videos

Posted in Uncategorized with tags , , , on March 21, 2010 by bersaelor

Both the iPod and the cameras tripod are mounted with rubber-parts (mostly tires) to minimize vibration that could distort the video.

So once I finish all artwork, I just have to borrow the High-Quality Camera of a friend and I’m ready to take a smooth professional promo video !

Totally unrelated to this, I always knew there would be some usage for my mindstormes box that I kept around for ages 😉

Creating 3D-headers files for Blender-Models

Posted in Uncategorized with tags , , , on March 20, 2010 by bersaelor

I thought my little program that translates an “obj”-file made in blender to a c-header file that can be imported in an iPhone project might be useful to someone else. There is already a script available at Jeff Lamarches blog but the calculation of normals didn’t work that well for me. He also provided another example here which I started my work from, but the issue of normals wasn’t addressed back then.

Continue reading

iPhone Client for Multiplayer with NSStreams – Part 2

Posted in Uncategorized with tags , , , on March 7, 2010 by bersaelor

In the first version of the communicator class we were only handling messages that were smaller then 1024 Byte.

To allow it to receive larger messages we need to know when an individual message is finished. Therefore we have to add a unique specifier to the string our server sends, for example “\r\n”. Then we can simply add an “NSMutableString msgBuffer” to our class and another method between the “- (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode;” and the “- (void) handleInput: (NSString*)string;” method that does the following:

- (void) processString:(NSString*)string {  
     [msgBuffer appendString:string];
     [string release];
     NSRange r=[msgBuffer rangeOfString:@"\r\n"];
     if (r.location!=NSNotFound) {
          [self handleInput:[[NSString alloc] initWithString:[msgBuffer substringToIndex:r.location]]];
          [msgBuffer setString:@""];

Objective C professionals probably realize that I don’t like “autorelease”. The string-argument is supposed to be retained, as is the argument to “[self handleInput]”. I know an object is supposed to be released where it was retained but my original string was retained in “handleEvent” and released in “handleInput” and I didn’t want to change those two methods. This code would not be consistent with the older post otherwise.

Final Version of the Main Menu

Posted in Uncategorized with tags , , , on March 6, 2010 by bersaelor

This is the final version of the Main Menu. I added a blurred PCB- Layer behind the menu to increase the feeling of the menu as one object, not 4 separate buttons. Continue reading

New Buttons

Posted in Uncategorized with tags , , , on March 5, 2010 by bersaelor

I designed some new buttons since the old ones were only meant for temporary usage when I designed the menus.

Also I had an argument with a friend who told me my Buttons look stupid, who reminded me they were only temporary.


My hexagons in the game actually gave the standard idea, but then symetric hexagons as buttons didn’t look that stylish. Asymptotic looked better but is similar to what has been done in other games. In the end that might not be a bad idea, to achieve some similarity to something people are used to.