Results 1 to 17 of 17

Thread: Help with Direct x 7 stuff (see later posts)

  1. #1

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172

    Help with Direct x 7 stuff (see later posts)

    I am having a great idea for a game have several models etc etc. Now i want to create my game with Direct X 8 i found some tutorials but all of them seem not to work when i create them myself with the tutorial then i download there example and that one works. still i dont understand how to use it. does anybody know a site wich really tells me how to leanr DIRECT X 8 step by step? thanks in advance
    Last edited by Ultimasnake; Aug 30th, 2002 at 02:17 PM.
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  2. #2
    New Member
    Join Date
    Aug 2002
    Posts
    4

    DIRECT X

    directx4vb.com
    check it out, it helped me alot.

  3. #3

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    i tried that site and it is just what i mean i try the entire code they gave me (after reading it all over and over again), then i tried to run it .. nothing. i downloaded there code and got a diffrend kind of approach of the code. ... still will try that site but am hoping for a beter one
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    If you're failing on the device call, it's probably you need to tweak the settings - you may have an older card.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    I have a geforce 2 mx and that is really not the problem the example code is just not working like there final code looks like (wich is downloadable as a zipped file) i just dont see the blue screen while theirs does show it. anyway know any other sites?
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  6. #6

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    anyway i also saw that there are DIRECT X 8 engines to download but the only one i saw sucked ass and was still in beta . if i cant figure directx 8 out myself i am willing to use an dll than for the engine
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  7. #7
    Addicted Member
    Join Date
    Dec 2001
    Location
    Great White North, ey?
    Posts
    202
    When you start a project by yourself, you have to set "DirectX 8 for Visual Basic Type Library" in Project -> Refrences.

    Maybe that's why it doesn't work.

  8. #8

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    i have m8 anyway i found a DIRECT 3d FOR DUMMIES wich has some things i really like to know and step by step reviewing :P lets try that for a moment ... any links are still welcome
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  9. #9
    Lively Member
    Join Date
    Jul 2002
    Posts
    118
    So do the downloaded zip files run OK?

    Basically I am as thick as they come and they work for me.

    If the downloaded zips dont work u can guarantee it will be one of the colour settings. I think he sets them at X8R8G8B8 or R5G6B5 or FMT16 ( u will find these settings at the top of the function called Init (or initialise).

    Muck around with these.

    Also try running the enumeration program (lesson 2), it will tell u what your machine supports.

    Hey man I even got those programs running on a crap P2 with no hardware acceleration.

    If all else fails swith the device to REF not HAL. This will cause the program to run slow but at least the program will run.

    Good luck

    Dan

  10. #10

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    yeah after a while i found out how to fix it it was the colour settings thing .. anyway i now know how to do a simple d3d thingy with a car in it and a building and some objects. the car can move around (rotate etc etc). can any of you help me with getting the camera behind the freaking car? like they do in race games? also an example of collision detection would be very helpfull (like how to use bounding boxeS)


    oh btw i am now trying to learn DX7 (the example showed me how to do this and i understand the basics now )
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  11. #11

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    and if you need the source here it is.
    dont mind the sloppy programming it will be beter once i know how to do stuff. if you know how to make the camera follow the car please insert it in the code and post it back again .

    other things i really would like to know :
    Adding a texture to the model
    Making a sky
    Making a floor tile for the entire field (like a horizon with sky and floor)
    Collision detection (think i will learn the other things first )



    To bad i had to replace my nice models with 2 squares :P
    Attached Files Attached Files
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  12. #12
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    For a sky, you'll be doing a skybox (makes it look like the sky is static). Look into rendering a viewport onto a texture, and then make a box somewhere out of your racetrack. Make the camera look upward, and render that onto the top texture of your "world" box.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  13. #13

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    err ok i know what a skybox is (in unrealtournament i used it) i know what you mean with the rest of those things you tell me but how to create it? :S that is another question might helping me with that in my included program above? thnx allot
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  14. #14
    Addicted Member
    Join Date
    Dec 2001
    Location
    Great White North, ey?
    Posts
    202
    Ok, to make the camera follow the car just add:

    FR_USERCAR.AddChild FR_Camera


    below after you load your car mesh.

    The textures are usually not loaded onto the models, the models are already supposed to be made with textures. But it can be done. Give me a few minutes, I'll try to figure this out.

  15. #15
    Addicted Member
    Join Date
    Dec 2001
    Location
    Great White North, ey?
    Posts
    202
    Ok, here it is, I added texture to the car, clouds - cheap effect, but before you get a sky box it's good enough, collison detection between car and building - only when going forward, I got do lazy to do the rest. For the ground, just make a flat mesh and load it in just like you did with other x files and add the grass texture that I added to the car.

    Hope this helps.
    Attached Files Attached Files

  16. #16

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    hey thanks it is working , i have to go to work right now so i will look over the code when i get home (woohoo i am going to learn DIRECT 3d good now :P)
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  17. #17

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    err yeah the texturing thing is great thanks , the sky is cheap but a simple alternitive, collision detection really well sucks if i have 200 buildings i should set them all to be detected and will make a gigantic code i am hoping to learn how to use bounding boxes
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

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