PDA

View Full Version : BitmapFactory.decodeResource compatible 2D Texture Files



Ghyrome
05-03-2013, 02:18 PM
I am working with textures on Android, OPENGL ES 2.0 & Java.

I need to find in the public domain (if possible) 2D texture files that can be applied to my various objects. I am currently using two texture files successfully (Bumpy Bricks & Stone Wall). These .png files are read and processed by the BitmapFactory.decodeResource method.

My question is: How do I acquire and/or create a 2D compatible texture file for use within my Android app?

Thanks in advance.
Ghyrome

Dave Driesen
05-14-2013, 01:29 AM
You can create such textures in Gimp, Photoshop, and many other applications.

If you want your textures to be tileable then you'll ideally want to retouch them by hand. Takes a little bit of effort but it is very rewarding. There's many guides out there and even plugins that help you achieve your goal.

For best results, try to stick with so-called "power of two" textures.

Dave Driesen
Actually doing some thinking inside the box

Ghyrome
05-14-2013, 08:49 AM
Dave :: Thanks for the help. I'll download GIMP. [Ghyrome]



You can create such textures in Gimp, Photoshop, and many other applications.

If you want your textures to be tileable then you'll ideally want to retouch them by hand. Takes a little bit of effort but it is very rewarding. There's many guides out there and even plugins that help you achieve your goal.

For best results, try to stick with so-called "power of two" textures.

Dave Driesen
Actually doing some thinking inside the box