Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How can i save an image without edges?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Forenkazan   Members   

224
Like
0Likes
Like

Posted 26 April 2014 - 03:45 PM

Hello

 

Is there anyway that i can save an image in Photoshop without any background?

 

I mean if i draw a triangle, i want the result image be a triangle not a triangle inside a square 

 

I need it for when i make a game and an object collides with my triangle, the collision starts when the object hits the triangle.

 

I hope you knew what i mean :( 

 

 

(the triangle is just an example my real image is something complex)



#2 SimonForsman   Members   

7633
Like
4Likes
Like

Posted 26 April 2014 - 04:29 PM

A) add an alpha channel and erase the background, save the image in a format that supports transparancy. (.png is fairly popular)

B) pick one color(magenta is popular for this) to use as "transparent" and filter it out in your engine.


Edited by SimonForsman, 26 April 2014 - 04:30 PM.

I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

#3 BagelHero   Members   

1524
Like
3Likes
Like

Posted 26 April 2014 - 05:19 PM

Next time when you start an image, if possible, start with no background. Either add a new layer, draw only on that, then delete/hide the old white one with the lock on it for immediate transparency, or when choosing to open a new image, make sure "transparent background" is used.

 

Much easier than drawing on white and erasing the background every time, of course you may need to do that with complex sprites you've already gotten/done that are all on the same layer/have white backgrounds.






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.