Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Load from Sketchup 3D .obj export — Gideros Forum

Load from Sketchup 3D .obj export

tkhnomantkhnoman Member
edited April 2015 in Code snippets
After modifying code from horse example at Gideros, here are basic sketchup obj loader.
Probably would update later, if i find something more

Things to remember:
1. At Export > 3D models... Do not forget to Triangulate all faces at Options...
2. Red is X, Blue is Y, and Green is Z. Like usual, Y is reverted between 3D model and gaming coordinate, so we need to invert it at setScale(x,-y,z).
3. Since 1m = 1 pixel, you need to scale it big if you made it too small
4. Delete that weird person at sketchup... =))

Edit: Forgot to mention, if you are using non-Pro version, you can't export as obj. But there are free SketchUp plugin available online that able to export it.

http://rhin.crai.archi.fr/rld/plugin_details.php?id=790
lua
lua
objloader.lua
4K
+1 -1 (+4 / -0 )Share on Facebook

Comments

Sign In or Register to comment.