Results 1 to 16 of 16

Thread: [VB6] DirectX 11 for VB6 1.0 Type Library

  1. #1

    Thread Starter
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,092

    [VB6] DirectX 11 for VB6 1.0 Type Library

    This might be useful to someone: https://github.com/wqweto/VBD3D11

    The repo includes a port of Beginner Direct3D11 Programming by kevinmoran.



    This is a screencast from the final 10. Blinn-Phong Lighting tutorial (moving camera like a berzerk:-))

    The commit history of the repo can be used to study changes made in each tutorial compared to the previous one.

    cheers,
    </wqw>

  2. #2
    Fanatic Member
    Join Date
    Sep 2010
    Location
    Italy
    Posts
    678

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    Hi, it seems to me an interesting project!
    I have to ask you a perhaps stupid question.
    DirectX V12 is installed on my system.
    Running a demo file in the tutorial folder, I get the error -2005270483 (Failed to create Direct3D11).
    How can I solve? (Do I need to install DX11? Can they coexist?)

    EDIT
    Can't still Run even after installing directx_Jun2010_redist.exe

    EDIT 2:
    Resolved !
    by Setting
    Code:
    DebugBuild = False

  3. #3

    Thread Starter
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,092

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    Ooops, sorry about that!

    This DXGI_ERROR_SDK_COMPONENT_MISSING error (-2005270483) is handled since 07. Virtual Camera tutorial and later ones. Should probably backport it to previous ones as well when time permits.

    Glad you figured it out on your own. (There are no debug build DLLs with redist of DX11.)

    Edit: Done! Earlier tutorials should work now too.

    cheers,
    </wqw>

  4. #4

  5. #5
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    2,223

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    This could be really useful to me. Thanks.

  6. #6
    Addicted Member
    Join Date
    Jan 2010
    Posts
    250

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    amazing things..I once learn DX7 VB6, and I stopped since only supported till DX8, while DX9 more supported by VB.NET

  7. #7
    The Idiot
    Join Date
    Dec 2014
    Posts
    2,720

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    much appreciated, very useful. with DirectX11, nobody can say VB6 is not capable enough.
    right now busy with a 2D game, but I have plans in the future to make a 3D game, and this will be studied and used!

  8. #8
    Fanatic Member
    Join Date
    Sep 2010
    Location
    Italy
    Posts
    678

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    Amazing work!

    But it is also complicated and for insiders.
    Now I think it would be useful to create higher level procedures / functions (within classes) around this project to simplify its usability.
    I mean that to implement "relatively simple" things the code to be written is quite complex.
    For this, higher level procedures / functions, incorporating complex code would be of great use.
    I imagine classes with procedures / functions at a higher level of abstraction of the main elements such as "Screen", "Mesh", "Texture", "Camera", "Shader" etc ..
    Now, who knows if anyone will have the time and the desire to do it and share it.
    Maybe I could make a contribution ... but I don't know.
    Main problem is that writing these high-level functions implies a deep knowledge of DirectX and the (shared) choice of the specific objectives they should have.

    "Alternatively" I'd like to see the way other people use this project. (more code)
    So that the examples (to learn from) are more numerous and could ignite inspiring ideas.

  9. #9
    Fanatic Member
    Join Date
    Sep 2010
    Location
    Italy
    Posts
    678

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    @wqweto
    Hi, I' don't know much about shaders.
    From what I can see, in these examples HLSL is used.
    From what I understand HLSL code is compiled and "executed by DX".
    What I'm wondering is if with Shaders it is possible to make complex renderings like in ShaderToy
    https://www.shadertoy.com/view/Xds3zN
    (by adding HLSL mathematical and vector functions that may be not be included in that language)
    [plus: is it possible to pass parameters to the shader while running (in "Real time")?]

    PS
    I take the opportunity to remind everyone who uses this library that sharing Sample Codes will be very appreciated. Thanks

  10. #10

    Thread Starter
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,092

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    I'm certainly *not* a domain expert and I just ported the tutorials 1-to-1 and in the meantime created the typelib necessary to compile the code in VB6 but it is certainly lacking a lot of functions and interfaces and probably existing ones are plain wrong.

    I'm completely unaware of HLSL, the included shaders are verbatim copies of the original tutorial. These look very powerful but the domain-specific language (DSL) they use will need a couple of books to get groked.

    My purposes are very simple: for my remote-support in production I need DXGI desktop-duplication running on Win10 and I need some way to "paint" the result of desktop-duplication over a texture in a hWnd resized and GPU accelerated so everything else here is not my focus. The typelib and the tutorial are merely by-products to this.

    But. . . everyone is invited to carry on the torch because I will probably not develop the repo any further. (Sorry about that.)

    cheers,
    </wqw>

  11. #11

  12. #12
    The Idiot
    Join Date
    Dec 2014
    Posts
    2,720

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    I try to add your typelib but I get an error:

    - Can't add a reference to the specific file.

    I have never used it before so its not in the registry (but I did a search just to make sure)
    Im in Windows 7 but Directx11 should work and I dont have problems with games/tools using Directx11

  13. #13

    Thread Starter
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,092

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    Btw, you can try manually registering the typelib before adding the reference with something like this

    Code:
    Option Explicit
    
    Private Sub Form_Load()
        CreateObject("TLI.TLIApplication").TypeLibInfoFromFile("D:\TEMP\VBD3D11-master\typelib\VBD3D11.tlb").Register
    End Sub
    cheers,
    </wqw>

  14. #14
    The Idiot
    Join Date
    Dec 2014
    Posts
    2,720

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    ah. the file was corrupted. when I download it I got a .html file instead of the .tlb. fixed. thx.

  15. #15

    Thread Starter
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,092

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    github UI is a mess but there is a Download ZIP link under Code button which allows downloading repo w/o git client:



    cheers,
    </wqw>

  16. #16
    Member
    Join Date
    Sep 2018
    Posts
    42

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    Another amazing work!, thanks for sharing

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