Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm playing a bit with LibGDX (OpenGL ES 2.0 wrapper for Android).

I found some sample code which used prepared files to load models and mipmap textures for them, e.g., at https://github.com/libgdx/libgdx/blob/master/demos/invaders/gdx-invaders/src/com/badlogic/gdxinvaders/RendererGL20.java it reads .obj file for the model and RGB565 format .png file to apply a mipmapped texture to it.

What is the best / easiest way for me to create these files?

I understand .obj files are generated by a bunch of tools (I installed Blender, Wings3D and Kerkythea so far), but which ones will be the most user friendly for someone unfamiliar with 3D modelling?

But more importantly, how do I produce a .png file with the mipmapped texture? The .png I looked at ( https://github.com/libgdx/libgdx/blob/master/demos/invaders/gdx-invaders/data/ship.png ) seems to include different textures for each of the faces, probably created with some tool. I browsed through the menus for the 3 tools I have installed but didn't find an option to export such a .png file. What am I missing?

share|improve this question
    
libGDX will do the mipmap automatic for you. It will use your texture as the main one, and generate/use the optimized ones. I think what you want is a TexturePacker. –  AranHase Nov 17 '12 at 15:25
    
Yes, I know it can do multiple resized textures in one mipmap. But I think here something else has been done - the textures for all planes for a particular mesh have been stored in one .png. Are you sure TexturePacker tool does that? –  John M Nov 17 '12 at 22:55
1  
that is exactly what is does. This tool packs many smalls ".png" into a single file. You can load each small piece as a sprite in libGDX. If you want to use the result texture in a 3D model, you will have to manually do the UV-Mapping with your favorite 3D modeler tool... –  AranHase Nov 17 '12 at 23:07
1  
Ah, the UV-Mapping keyword is helpful. I somehow had missed it before. I will read some UV-Mapping tutorials for the tools I have installed, I think that is the method I'm looking for. –  John M Nov 18 '12 at 8:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.