Thread: Where do you get your sprites?

  1. #16
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072

    Can anyone post few examples or those alpha/transparent masked sprites?
    Here's a (very early) screen shot of my latest game.

    Notice the explosion sprite which is half-transperent in the edges and how it overlaps the missile.
    This is done using Direct3D and PNG-sprites.

    EDIT:
    Notice the FPS
    Last edited by Sang-drax; 05-02-2003 at 05:54 PM.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  2. #17
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    The clouds are also made half-transparent and saved in the PNG format:
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #18
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    THats pretti good, so how do you load them into your game? Does Direct3D provide you with all the functions you need? All you do is create a transparent PNG picture? I wonder in Allegro can overlapp images transparently as well

  4. #19
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    I'm certainly no expert on Allegro, but think Allegro cannot handle half-transparent PNG-images.

    To make this work you have to use 3D-hardware (this is *very* slow in software mode). If you use Direct3D, the procedure is quite easy using Direct3DX.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  5. #20
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    I presume you learn those stuff from a particular book?

    Btw, whens your game out?

  6. #21
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Originally posted by Nutshell
    I presume you learn those stuff from a particular book?
    http://www.gamasutra.com/features/20010629/geczy_01.htm
    is a good article. A (free) membership is required though.
    Originally posted by Nutshell
    Btw, whens your game out?
    Since I only have time to work on it on weekends, it'll probably take some time.
    Last edited by Sang-drax; 05-04-2003 at 03:18 AM.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  7. #22
    I didn't know PNG images had alpha information saved in them. Hmm....interesting. I may switch over to them. My format makes for some large filesizes. PNG can do some awesome compression. It looks better than JPEG images, and they are free domain.

  8. #23
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Hmm, Sang-Drax, that's a nice explosion(s). Did you make it yourself, or did you get it off the internet?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  9. #24
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    I got it from the internet, but I had to edit the animations (rendered on a black background) and add alpha values myself.

    First, I was going to implement the explosions with a particle engine, but then I found those explosion animations.
    I did use the particle engine to render smoke from the explosions(not shown in those "old" screenshots) and it looked quite good.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  10. #25
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Hmm, then how did you add the alpha values? Did you use paintshop pro or something?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  11. #26
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Originally posted by Hunter2
    Hmm, then how did you add the alpha values? Did you use paintshop pro or something?
    Yes, I used Paint Shop Pro 7 -- IMO a very good program.

    But if you want the same alpha value over the whole image, then perhaps it's easier to just set te colorkey when you're rendering the image. 0x7FFFFFFF is half-transparent.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  12. #27
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >IMO a very good program
    IMO too, if I ever figure out how to use it

    And yes, I've heard of the infamous constant transparency value thinger, and I even got MrWizard to write me up an article on alpha () but I could never figure out how to make these alpha-integrated sprites.
    Last edited by Hunter2; 05-10-2003 at 09:58 AM.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  13. #28
    Ecologist
    Join Date
    Aug 2001
    Location
    Utah.
    Posts
    1,291
    Sang,

    You know what would fit perfectly in with that game?...

    http://www.cprogramming.com/cboard/s...ghlight=bitmap



    Please!!!
    Staying away from General.

  14. #29
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    If you can provide a side-view of that character, I'll absolutely use him.
    Currently, I get my sprites from Google image search.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. making sprites
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 02-20-2010, 07:00 AM
  2. DirectX and Sprites
    By andyhunter in forum Game Programming
    Replies: 6
    Last Post: 12-24-2004, 06:40 PM
  3. I Found some nice sprites but need more...
    By BigCheese in forum C++ Programming
    Replies: 1
    Last Post: 03-23-2004, 06:03 PM
  4. drawing sprites with the windows gdi
    By lambs4 in forum Game Programming
    Replies: 10
    Last Post: 08-14-2003, 09:06 AM
  5. Animating Multiple Sprites
    By Tommaso in forum Game Programming
    Replies: 2
    Last Post: 10-11-2002, 12:06 AM