Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    arunforce's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    A place for amigos
    Posts
    24,704
    Reputation
    4747
    Thanks
    12,562
    My Mood
    Yeehaw

    Direct3D sprites

    I am using .NET 2003 and the December 2005 version of Direct X SDK.

    I started a basic window, and I would like to know how to start intializing 2d sprites to show up in my window. I am a total newb, so help me real well.



    BRING BACK BT, BRING BACK SAGA, BRING BACK VF, BRING BACK MPGHCRAFT, BRING BACK HABAMON


  2. #2
    shercipher's Avatar
    Join Date
    Dec 2005
    Posts
    108
    Reputation
    10
    Thanks
    14
    You are using D3D, correct?

    I'd like to direct you to the game programming wiki; it has an article about this...

    https://gpwiki.org

  3. #3
    arunforce's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    A place for amigos
    Posts
    24,704
    Reputation
    4747
    Thanks
    12,562
    My Mood
    Yeehaw
    It doesn't tell anything on how to load a bitmap.

    I tried using Drunken Hyena, but they got no bitmap loader.



    BRING BACK BT, BRING BACK SAGA, BRING BACK VF, BRING BACK MPGHCRAFT, BRING BACK HABAMON


  4. #4
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    35,837
    Reputation
    5782
    Thanks
    41,292
    My Mood
    Devilish
    Jew I have a whole engine setup... Look at my game source.





    THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE


    "First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311

    HAVING VIRTUAL DETOX

  5. #5
    shercipher's Avatar
    Join Date
    Dec 2005
    Posts
    108
    Reputation
    10
    Thanks
    14
    What language are you using?

    If its C++ get an image library (if its C++ don't use DX use SDL).
    If its VB.NET or another then...there is some object that will do it for you (look it up).

    If I'm being retarded, let me know.

  6. #6
    arunforce's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    A place for amigos
    Posts
    24,704
    Reputation
    4747
    Thanks
    12,562
    My Mood
    Yeehaw
    I'm using C++.net.

    Dave strongly advised me not to use SDL, and to use DirectX. I know for a fact that SDL doesn't look that good, but I don't want to copy-and-paste Daves code. I want to learn what I am doing. 3D is way too complicated for a C++ beginner like me, with no DirectX experience.

    I tried SDL before, it's ok, but I rather use DirectX, it's more "professional".
    Heh, would look good on a resume. ^^



    BRING BACK BT, BRING BACK SAGA, BRING BACK VF, BRING BACK MPGHCRAFT, BRING BACK HABAMON


  7. #7
    bugmenotX's Avatar
    Join Date
    Jan 2006
    Posts
    4
    Reputation
    10
    Thanks
    0
    Well, why don't you work up from SDL? It's a lot simpler and the code produced is cleaner.
    "I know for a fact that SDL doesn't look that good"
    What do you mean by that?
    SDL has many sprite manipulation functions and would be great for a noob like yourself.
    Just my opinion.

  8. #8
    shercipher's Avatar
    Join Date
    Dec 2005
    Posts
    108
    Reputation
    10
    Thanks
    14
    I thought that was a joke, until halfway I realized you were serious.

    What gave you the idea SDL is less professional/more stupid then DirectX??????

    SDL supports everything DirectX does, such as 3D, 2D, color keying, alpha blending, sprites, networking, sound, shading, etc. You better believe SDL looks just as good as DirectX.

    But really there is no contest between the two...they are about the same in the way of performance and functionality. I'm not saying don't go with DirectX...certainly DX looks very good on a resume (ok, I take that back...it does look a little better...but if you work on open source that cancels the goodness out most of the time) but don't assume that SDL isn't as good as it.

    So pretty much, its a matter of opinion. Choose whatever, but my personal experience has told me SDL is better...because I've actually written something in it (I gave up on DX after I got like 200 errors for something I copied out of a book).

  9. #9
    arunforce's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    A place for amigos
    Posts
    24,704
    Reputation
    4747
    Thanks
    12,562
    My Mood
    Yeehaw
    Well, Direct-X is way better, considering it is a standard, and that the 3d has support for 16-pipe graphics, trillinear flip flopping, dynamic volumetric shadows, bump mapping, etc...

    The only way SDL can compare to Direct X is in 2d.



    BRING BACK BT, BRING BACK SAGA, BRING BACK VF, BRING BACK MPGHCRAFT, BRING BACK HABAMON


  10. #10
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    35,837
    Reputation
    5782
    Thanks
    41,292
    My Mood
    Devilish
    Direct-X > SDL. SDL is newbie, its just like someone trying to write an full end app like Photoshop or 3ds Max in VB, granted your expectations are high. If you set a high goal for yourself, your product will be just as good if you aim and work toward that goal.

    Like you said its up to your opinion, I had problems like everyone who has used Direct-X when starting, but once your in it is like flowing current of a lake. Calm... Usually.

    I've seen examples of SDL and almost threw up after seeing them. SDL is just another excuse for total newbs to make a game.





    THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE


    "First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311

    HAVING VIRTUAL DETOX

  11. #11
    Chronologix's Avatar
    Join Date
    Dec 2005
    Location
    Calgary, Alberta, Canada
    Posts
    969
    Reputation
    10
    Thanks
    66
    any easy way to transfer a gif into a bmp sprite sheet? i hate doing it manually in PS

    but so far i actually got the Diablo 2 Baal and Hell Lord movement, standing, and dying animations successfully transfered into sprite sheets (and i also added them into Infantry...i ran around as the Hell Lord with a super fast axe and chased after people...it was fun till i made the baal vehicle work :P)

  12. #12
    arunforce's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    A place for amigos
    Posts
    24,704
    Reputation
    4747
    Thanks
    12,562
    My Mood
    Yeehaw
    Well, SDL is good for C++ game programming newbies.



    BRING BACK BT, BRING BACK SAGA, BRING BACK VF, BRING BACK MPGHCRAFT, BRING BACK HABAMON


  13. #13
    bugmenotX's Avatar
    Join Date
    Jan 2006
    Posts
    4
    Reputation
    10
    Thanks
    0
    Umm... SDL does 3D through OpenGL - you should stop believing things noobs have told you Arun.
    Also, SDL is portable (portable full-stop, DirectX isnt) SDL works on PC (every OS) Xbox, PS2, PSP, DS (AFAIK) and many other things.
    In recent times it would seem that DirectX has gained some ground over OpenGL, but OpenGL is also friendlier than DX.

    There is no loss in performance when using SDL over DirectX, and SDL is very powerful, so I don't see the parallel between SDL and VB.

  14. #14
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    35,837
    Reputation
    5782
    Thanks
    41,292
    My Mood
    Devilish
    Portable to every OS? So? Open-Gl is also fully portable, Direct-X isn't, but here is the point... Who goes to another computer based os to play a game? Windows is generally the operating system people use to play video games. Besides that clock a simple app with a sprite shown. Direct-X runs easily at 250 FPS, SDL however I clocked at 80 FPS. Direct-X sprites are more powerful because you can either choose from using straight up Direct3d or DirectShow. Using SDL is a little like using DirectShow to make a game now days. However I believe using DirectShow to make a game would be 10x better then using SDL.

    The parrallel, gets back to my point, SDL is too simple, too newbish for my likings. I don't know about how you feel but there are too many games, and most of the newer games coming out on PC are CRAP.





    THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE


    "First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311

    HAVING VIRTUAL DETOX

  15. #15
    bugmenotX's Avatar
    Join Date
    Jan 2006
    Posts
    4
    Reputation
    10
    Thanks
    0
    Actually, I could get around 150 FPS on my Pentium-II with a TNT2 in a game made with SDL - not a simple game either. Also I think that the frame-rate on a modern computer would be much higher, don't you?

    "I don't know about how you feel but there are too many games, and most of the newer games coming out on PC are CRAP."
    I agree, I like BF2 though, COD2 sucks as does CSS.

Page 1 of 2 12 LastLast