-
Nov 4th, 2020, 05:52 AM
#1
[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>
Last edited by wqweto; Nov 4th, 2020 at 03:17 PM.
-
Nov 4th, 2020, 12:23 PM
#2
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
Last edited by reexre; Nov 4th, 2020 at 01:46 PM.
-
Nov 4th, 2020, 02:52 PM
#3
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>
Last edited by wqweto; Nov 4th, 2020 at 03:18 PM.
-
Nov 5th, 2020, 01:23 AM
#4
Re: [VB6] DirectX 11 for VB6 1.0 Type Library
Very good contribution! Thank you!
-
Nov 5th, 2020, 07:53 AM
#5
Re: [VB6] DirectX 11 for VB6 1.0 Type Library
This could be really useful to me. Thanks.
-
Nov 7th, 2020, 05:13 AM
#6
Addicted Member
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
-
Nov 7th, 2020, 10:01 AM
#7
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!
-
Nov 12th, 2020, 03:10 PM
#8
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.
-
Nov 26th, 2020, 11:30 AM
#9
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
Last edited by reexre; Nov 26th, 2020 at 11:34 AM.
-
Nov 26th, 2020, 11:59 AM
#10
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>
-
Feb 5th, 2023, 10:30 AM
#11
Re: [VB6] DirectX 11 for VB6 1.0 Type Library
The VNC server using this typelib is complete here: https://www.vbforums.com/showthread....op-Duplication
cheers,
</wqw>
-
Oct 25th, 2023, 03:15 AM
#12
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
-
Oct 25th, 2023, 04:50 AM
#13
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>
-
Oct 25th, 2023, 06:50 AM
#14
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.
-
Oct 25th, 2023, 07:11 AM
#15
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>
-
Jan 18th, 2024, 05:29 PM
#16
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|