SFML community forums

Help => General => Topic started by: Subject on May 09, 2018, 12:49:46 pm

Title: Program for making 2D Textures
Post by: Subject on May 09, 2018, 12:49:46 pm
Hello.

What program i can use to build my own textures and animations that i can use in my SFML code?

Ive been working alot with just random shapes that represent the things i wanted to build, but now i want make it look more realistic.
Title: Re: Program for making 2D Textures
Post by: eXpl0it3r on May 09, 2018, 12:52:57 pm
A texture is nothing other than an image. So anything that can create an image will work with SFML.

I believe you can spend a bit more time doing your own research for image editing tools. ;)
Title: Re: Program for making 2D Textures
Post by: Subject on May 09, 2018, 01:57:55 pm
Yes i know that.

So do you think photoshop(for example) is good for that?
Btv, pictures are only xxxx.png or can be any other format like jpg(for example)?

Also if this is not the right place to ask these kind of questions, just move my post. No Problem.

 
Title: Re: Program for making 2D Textures
Post by: Arcade on May 09, 2018, 04:02:49 pm
From the SFML documentation (https://www.sfml-dev.org/documentation/2.4.2/classsf_1_1Image.php#a9e4f2aa8e36d0cabde5ed5a4ef80290b)
Quote
The supported image formats are bmp, png, tga, jpg, gif, psd, hdr and pic. Some format options are not supported, like progressive jpeg.

The best image editor to use kind of depends on what art style you want your game to have and your personal preferences. Photoshop would probably work fine. Alternatively there's GIMP, Krita, mspaint, Aseprite, or the many others out there.
Title: Re: Program for making 2D Textures
Post by: Martin Sand on May 10, 2018, 10:09:49 am
What program i can use to build my own textures and animations that i can use in my SFML code?

Depending on the type of texture you could use a specific program or technique. What do you want to create?
Title: Re: Program for making 2D Textures
Post by: Subject on May 10, 2018, 08:22:53 pm
Hi

I want to make some spaceships, towers, projectiles... Something of that sort.

Edit: With alot of details
Title: Re: Program for making 2D Textures
Post by: Martin Sand on May 10, 2018, 09:16:03 pm
Ok, so it seems you want to create sprites instead of textures.

You could use inkscape to create them, here is a good tutorial:
http://www.2dgameartguru.com/2012/04/top-down-view-soldier.html

If you want to start directly with pixel art, https://www.aseprite.org/ is a good tool.

You can use the tools above also for animations. You simply create all the frames in the tools and create a sprite sheet (is it called like this?).
https://graphicriver.net/item/secret-agent-game-sprite/10670491
Title: Re: Program for making 2D Textures
Post by: Subject on May 10, 2018, 09:29:43 pm
Yep, i think thats just what i needed. Thanks!

I spent some time googling "2d art", and i found very good online program. Its called "Piskel".

Will be looking forward to learn how to use them, since im just newbie at doing art... xD