Results 1 to 14 of 14

Thread: DirectX 9 and C# Tutorials?

  1. #1

    Thread Starter
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346

    Question DirectX 9 and C# Tutorials?

    I am looking for some simple tutorials on DX9 and C#. I know some come with the DX9 SDK, but they arent really tutorials. I want to start with the very basics, im new to DX programming, and want to get started in the right direction. Thanks
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    \m/\m/

  3. #3

    Thread Starter
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346
    Very, very little dealing with version 9.
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    im sad about that...there was some kind of VB site..you could take a look by there..but i dont remember the link..maybe someone in this forum does..it was something like www.vbdirectx.com ..sorry i dont remember
    \m/\m/

  5. #5

    Thread Starter
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346
    Do you mean this one? Its pretty good, i'll try there for now and see if i can get somethign going.

    http://www.directx4vb.com/
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  6. #6
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    yeah exactly, that one
    \m/\m/

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    DX9 is so new, I doubt there are many tutorial about it. Here, you can have what I've written.

    It's kind of a game framework in C#. Much left to add and change, but I'm developing it as I go along. Note that there seems to be a bug: every blit that hits pixel (0,0) causes the app to crash. I guess it's a bug in managed DX9. Maybe there already is a patch by MS.

    Also, direct locking is extremly slow. Too slow for any real use, and it needs its own bug workaround if you use any color depth than 8 bit.
    Attached Files Attached Files
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8

    Thread Starter
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346
    Wow! Very nice... I'll have to run it when i get home, thats where my DX stuff is and see what it does. Thanks!
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  9. #9
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    what is ur comp bee?
    \m/\m/

  10. #10
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Athlon 600.
    Runs at ~ 100 FPS just blitting a few images and not locking the damned surface.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  11. #11
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    hmmm...then dx9 managed sucks? all ppl were waiting 4 it to do games (3d) and then it sucks for that?
    also, did u try it using unmanaged? the speed diference is huge?
    \m/\m/

  12. #12
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    No, I didn't compare it to unmanaged directly. I know from the past that locking was quite fast in unmanaged. The problem is that managed DX allocates an array that serves as buffer. When done it copies the array to the screen buffer. That's one memory allocation, which is slow in .Net, and one memory copy, which is not very fast either. And a bug makes the array DX allocates useless in any color mode but 8-bit, so you have to allocate ANOTHER array yourself, which slows it down even more.

    I haven't use the Direct3D part yet, I guess it has been done more carefully than DirectDraw as DirectDraw is just "so that it is there" while Direct3D is the future.
    Or whatever. DirectInput works nicely.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  13. #13
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    arent goin be patches or new versions out there to correct the 8bit bug?
    \m/\m/

  14. #14
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Probably.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width