Results 1 to 6 of 6

Thread: DirectX in VB?

  1. #1

    Thread Starter
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033

    DirectX in VB?

    Is this possible?
    I'm bringing geeky back...

  2. #2
    Zaei
    Guest
    Of course. =)

    Z.

  3. #3
    Addicted Member
    Join Date
    Feb 2001
    Location
    Classified
    Posts
    234
    download the DirectX8 SDK from microsofty ;P

    http://msdn.microsoft.com/downloads/...xml&frame=true

    ive been up day and night trying to figure out how to load textured models, without luck so im probably gonna resort to OpenGL ;o (probably better anyways...)
    My ICQ Status: (85634850)

    Seriously Sick Tshirts

  4. #4
    Zaei
    Guest
    There is pretty much no difference between D3D and OGL in graphics speed. On the other hand, D3D is FAR easier to use in VB, as it is directly supported (OGL would be like using the API, you have to get all of the function declarations "Declare"d in VB first.

    As for texturing models, make sure tht your model has Texture coordinates, by loading some random texture from a file (remember, it has to be a square texture, with dimnesions that are powers of two), and set that texture before you draw the model. If the texture shows Up, you know the model is correct. Then, you should take a look through the SDK samples (the code), to find where they load a model (there is a tutorial on this as well). If I remember correctly, using the D3DX model loading function, there should be a parameter where you pass in a string (dont quote me, i dont have any code availible to me, at the moment) to get the texture paths. Using that string, extract the filenames, and load those textures, and go from there.

    Again, read through the model loading tutorial, and browse the samples, and you should be able to get it easily.

    Z.

  5. #5
    Zaei
    Guest
    Well, I just took a look at the online Docs, and did some research for you. You pass in a buffer (retMaterials). Inside of this buffer are the materials and texture paths. You can get those using several more D3DX functions: D3DX8.BufferGetMaterial, and D3DX8.BufferGetTextureName.

    Enjoy!

    Z.

  6. #6
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    What part of DirectX are you looking into? DirectAudio, Direct3D, DirectDraw(7), DirectPlay?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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