Home > OpenGL ES > Blender 2.57 Objective-C Export Script
Blender 2.57 Objective-C Export Script
Posted on Tuesday, April 5, 2011 by android apps market for tablests
A few days ago, the Blender Foundation put out the first release candidate of Blender 2.5. This release unexpectedly broke compatibility with most existing 2.5 python scripts, including my Objective-C header Export Script.
Which was great timing, since I needed to use the script today. I could've just gone back to an older version of Blender, but decided instead to re-write the script to work. I just added to GitHub, the new 2.57 compatible version of the export script. This version is back to being an add-on that you can add through the User Preferences.
I've also added a few options that you can select when exporting (they're on the left side of the file selection screen, underneath the volumes and recently visited locations). You can see the new options in the following screen grab:

The first option lets you specify whether modifiers are applied before exporting the mesh. If you uncheck this, the script will strip the modifiers before exporting, otherwise, it will apply them to the mesh before exporting.
The second option will rotate the object 90� along the X axis, which converts the object from Blender's Z-up coordinate space to OpenGL's Y-up coordinate space. I've made this the default, but I could foresee situations where people would want to skip the conversion.
The final option will move the export the object using its world space coordinates rather than exporting it using object space coordinates. This option will, for example, preserve relative distance between multiple objects exported from the same file into different headers. Or, to put it another way, objects exported will normally have use their coordinates as they relate to the object's origin, regardless of where the object is in the Blender scene. If this is checked, the vertex coordinates will be exported relative to the scene's origin.
NB: There was a problem with the triangulation code in the version posted earlier. If you're having problems, pull again from GitHub.
Which was great timing, since I needed to use the script today. I could've just gone back to an older version of Blender, but decided instead to re-write the script to work. I just added to GitHub, the new 2.57 compatible version of the export script. This version is back to being an add-on that you can add through the User Preferences.
I've also added a few options that you can select when exporting (they're on the left side of the file selection screen, underneath the volumes and recently visited locations). You can see the new options in the following screen grab:

The first option lets you specify whether modifiers are applied before exporting the mesh. If you uncheck this, the script will strip the modifiers before exporting, otherwise, it will apply them to the mesh before exporting.
The second option will rotate the object 90� along the X axis, which converts the object from Blender's Z-up coordinate space to OpenGL's Y-up coordinate space. I've made this the default, but I could foresee situations where people would want to skip the conversion.
The final option will move the export the object using its world space coordinates rather than exporting it using object space coordinates. This option will, for example, preserve relative distance between multiple objects exported from the same file into different headers. Or, to put it another way, objects exported will normally have use their coordinates as they relate to the object's origin, regardless of where the object is in the Blender scene. If this is checked, the vertex coordinates will be exported relative to the scene's origin.
NB: There was a problem with the triangulation code in the version posted earlier. If you're having problems, pull again from GitHub.
Category Article 3D, Blender, Open Source, OpenGL ES
Powered by Blogger.
Blog Archive
-
▼
2011
(4034)
-
▼
April
(428)
- April Reflections
- Weekly Geeks: Catching Up On Reviews
- Remove Blogger Sidebar and Maximize Main Width on ...
- Library Loot Fifth Trip in April
- The Judgment
- A Brief History of Montmaray (YA)
- Video Chat on Your Android Phone
- The Land of the Silver Apples (MG/YA)
- Introducing the new Google Docs app for Android
- Sharp North (YA)
- Verizon officially announces HTC Droid Incredible ...
- Apple gets its white iPhone 4 ducks in a row ahead...
- PICTURES - SONY ERICSSON XPERIA PRO 2
- NOKIA OUTLINES ITS PLANS RELATED TO THE NEAR FIELD...
- NOKIA C7 (NFC MOBILE EXPERIENCE IN WMA CONGRESS 2011)
- DELL VENUE PRO SOFTWARE (VS NEXUS S & iPHONE 4)
- New Smartphone User Study and Webinar
- The Ropemaker (MG/YA)
- B&N Nook Color update released, brings Froyo, apps...
- ANDROID - ACER STEAM UNBOXING AND SIZE COMPARISON
- Nintendo confirms next Wii coming in 2012, will pr...
- iPHONE 4 VS DROID X VS EVO 4G VS VIBRANT (GALAXY S...
- Samsung makes sure you know the Galaxy S II is rea...
- Apple signs Warner Music to its cloud-based music ...
- ANGRY BIRDS RUNNING ON SYMBIAN S60v3 (NOKIA E5)
- UNBOXING THE SONY ERICSSON ASPEN
- Dell's 10-inch Android and Windows tablets get nam...
- HTC Flyer up for preorder for $499 at Best Buy on ...
- SONY ERICSSON XPERIA ARC - HANDS ON VIDEO
- HTC Sensation procures online real estate, launche...
- MOTOROLA ATRIX 4G VS SONY ERICSSON XPERIA ARC
- ADJUSTABLE MOBILE STAND
- Sunday Salon: Week In Review #17
- Weekly Geeks: ABC's of Favorite Authors
- Library Loot: Fourth Trip in April
- Exclusive: White iPhone 4 lands at Vodafone UK
- UNBOXING THE HTC DROID INCREDIBLE 2
- Could the iPhone 5 look like a beveled iPod touch?
- Norio Ohga, former Sony chairman and multimedia pi...
- ANDROID COLLECTIBLES
- Appsterdam
- Samsung strikes back at Apple with ten patent infr...
- APPLE OVERTAKES NOKIA AS LARGEST HANDSET VENDOR BY...
- Walmart to Sell Samsung Infuse 4G in May for $178.88?
- Reuters: Apple set to launch cloud-based music ser...
- VIDEO - LONDON ON 3D MAPS FROM NOKIA
- NOKIA - TEN YEARS OF ECO INNOVATION
- T-Mobile willing to knock $100 off G-Slate, if you...
- ANDROID APP - GOOGLE TRANSLATE WITH TEXT TO SPEECH
- SKYFIRE 4.0 FOR ANDROID - VIDEO DEMO
- Rounded Corners for Blogger Posts
- NOKIA AND MICROSOFT SIGN STRATEGIC PARTNERSHIP
- ASUS Eee Pad Transformer hits US on April 26th for...
- HTC Sensation 4G launching on June 8th, because Go...
- ANDROID - SKYFIRE LAUNCHES 4.0 VERSION MOBILE BROW...
- NOKIA AND MICROSOFT SIGN DEFINITIVE AGREEMENT
- NOKIA Q1 2011 - PROFITS DOWN 10% - SOLD 108.5 MILL...
- Amazon to take on Apple this summer with Samsung-b...
- Verizon CFO suggests next iPhone will be a 'global...
- ANDROID RUNNING ON PALM PRE
- Wickham's Diary
- T-Mobile G-Slate and Sidekick 4G now on sale, Andr...
- T-Mobile G2x review
- iPHONE IS SILENTLY LOGGING YOUR LOCATION
- SAMSUNG GALAXY S 2 - SECOND COMMERCIAL
- ANDROID - PINBALL HD FOR TEGRA 2 PHONES
- POKEN - NFC TECHNOLOGY USING NOKIA QT SDK
- INTRODUCING HBO GO FOR ANDROID,iPAD AND iPHONE
- WHITE iPHONE 4 SPOTTED WITH NEW MULTITASKING UI
- Apple spent nearly $5.7b on Samsung parts in 2010,...
- BlackBerry PlayBook now on sale in the US and Cana...
- NEW HACK FOR ALL SYMBIAN DEVICES
- ANGRY BIRDS MAGIC TO COME EXCLUSIVELY TO NOKIA C7
- PICTURES - NOKIA C2-06
- INTRODUCING OVI MAPS 3D
- The Voyage of the Dawn Treader
- EU FINALLY AGREES FOR TECHNICAL RULES FOR 4G WIREL...
- Undo certain Gmail actions in your mobile browser
- White iPhone 4 appears to be ready to order at Thr...
- Samsung promises a dual-core 2GHz smartphone 'by n...
- SAMSUNG GALAXY S 2 FIRST COMMERCIAL
- iPhone 5 to have 8 megapixel camera and improved a...
- KYOCERA ECHO REVIEW
- ANDROID ROM CYANOGEN MODE 7 - VIDEO TOUR
- T-MOBILE NOKIA ASTOUND - HANDS ON VIDEO
- What Jane Austen Ate and Charles Dickens Knew
- Verizon to Launch 4G LTE in a ??Mess of New Cities...
- 8 Bit Motorbike
- Special Ford suit used to mimic the elderly finds ...
- Rumor: New HTC Windows Phone with 16 Megapixel Cam...
- Samsung Gem SCH I100 Smartphone
- Samsung readies a 2GHz dual-core smartphone for 2012
- Motorola Atrix for Orange UK in May, reduced price...
- Rumor: Samsung to Release 2GHz Dual-Core Phone As ...
- Sprint Introduces Samsung Replenish, the First �??...
- Samsung Series 9 NP900X1A-A01US 11.6-Inch Laptop A...
- Samsung Galaxy S II Now Available For Pre-Order At...
- iPhone 4 set to rule Flickr in the next few months
- Britain's Got Talent 2011 has an Android app
- Sunday Salon: Week In Review #16
-
▼
April
(428)