Digital Eclipse details one of the many struggles they faced bringing Minecraft to the New 3DS

Wondering how Digital Eclipse managed to get Minecraft on the New 3DS? Seems like something that should have been impossible, right? Well the process was certainly a trying one. There were a lot of hiccups along the way, but the dev team involved was dedicated to making it happen. Sometimes it involved coming up with custom solutions along the way. You can read about one of those examples below. The info comes from Keith Kaisershot, a Programmer at Digital Eclipse.

Throughout the development of Minecraft for 3DS we were hurting for memory, even on the more powerful New 3DS. So we wanted to play around with some of the texture formats the 3DS supported. The 3DS's internal texture format is weird. It's tile-based, organized in a zig-zag pattern of zig-zag patterns, but then organized linearly at the highest level.

Unfortunately, nobody on the team was familiar enough with the compressed formats to write a conversion utility. Another programmer, Ian, had previously written a texture converter for Mega Man Legacy Collection, but that was more about uncompressed pixel data.

That custom texture converter of his took a .png and spit out a ".3dst" file with a custom format that he invented – it was essentially a minimal header plus raw data we could just blast into memory ready to go ("3dst" stands for "3DS Texture"-- pretty clever, eh?).

Nintendo provided their own conversion utility but it only exported images into a "package" file which you had to use Nintendo's library to parse and load at runtime. That was too much overhead for us. Unfortunately again, that file format was undocumented by Nintendo and this appeared to be the only way to get compressed images arranged in the format the 3DS expected.

So I decided to get my hands dirty in a hex editor. I fed Nintendo's utility various images of different sizes and formats and made note of what changed in the header of their files until I had identified enough fields to rustle out the data I needed. I threw together a quick utility to extract the raw data from Nintendo's package files, then put together a batch script to apply this process to the textures we needed. It wasn't fast, and it certainly wasn't elegant, but it worked.





from GoNintendo

0 comments:

About SykoNews

Video Games Movies / Film Music Nerd News Underground News Star Trek Nerd Videos Tours Trailers Interviews Hatchet Family Juggalo News Underground Music Psychopathic Horrorcore ICP Insane Clown Posse Psy Live Music Tour Psychopathic Records Kottonmouth Kings DC Comics Sci-Fi Television / TV Comic Books Movie News Reggae DC Cinematic Universe Movie Trailers News Comedy / Humor TV News Suburban Noize Nintendo Wii Subnoize Batman Technology Batman v Superman Music News Superman SRH Celebrities Music Videos Comic Strips Syko.org TV Promos Wonder Woman Animation King Klick Social Media Sports Chucky Chuck Marvel Comics Obnoxious DGAF Johnny Richter Rap Music Arizona / AZ Stargate Suburban Noize Records Superbowl Album News Dropout Kings Football Hed P.E. Linkin Park Madchild Man of Steel Science Suicide Squad WhitneyPeyton Xbox 360 BLESTeNATION DC Films Editorials Government KMK MBC MBugout CIty Nintendo DS Podcasts Box Office Comic Book News Green Lantern Harley Quinn Kevin Zinger Kottonmouth Kings Records Microsoft New Music Rock News Suns Twitter Basketball Blogosphere Business DC Extended Universe DC Television Universe Daily Deals EDM Electronic Food / Beverage KMKR KopyRite Marijuana Marvel Cinematic Universe PlayStation 3 RIP Saint Dog Spider-man Staff News Super Bowl 50 The Joker Video of the Day Warner Bros. Web Development Wonder Woman kingmaker scam alert Album Releases Angry Birds Apple Aquaman Archie Comics Auctions Batgirl Birds of Prey Bluetooth Books Bryan Fuller C4MULA CBS California California / CA Cartoons Chester Bennington Crime Customization D-Loc DC Entertainment Daddy X Dead by Sunrise Deaths Deep Space Nine Dj Bobby B Ebay Eddie Ruxpin Eddie Ruxspin Electronic Music Email Facebook Features Financial Florida / FL Fringe Gmail Google+ Greg Berlanti Hawkman Health Japan Julien-K Kingdom Come Lil Saint Literature Luxury MNE Martian Manhunter Mobile / Wireless Multiplayer Multitouch Music Snippets Music Teaser NSFW Nevada / NV New Albums New Artists Nintendo 3DS No Warning Operating Systems Orgy Ouija Macc PSN PTB Records Pakelika Papa Roach Pete's Dragon Press Releases Reviews Rockstar Seth Macfarlane Software Software Update Son of Saint Sony Stacc Styles Star Trek Beyond Staunch Streaming Media Syko Sam SykoDeals SykoPoetry Tech News The Avengers The CW The Dirtball The Flash The Flintstones Themes Throttle House Music Tony Slippaz Tour News Kottonmouth Kings Transportation Trekkers Trekkies United Family Music Voyager Walmart Warehouse 13 Website Tools Windows Windows 10 Windows Media Xbox Live YouTube captain chronic iMac william moseley