Home » Community » Forums » » DirectX Graphics for Visual Basic Part 1
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 DirectX Graphics for Visual Basic Part 1
Post Reply 
The "DirectX Graphics for Visual Basic" looks like its going to be a nice articl I would just like to know what are going to be in the next 3 articls???

-VBLimits
Sorry about the Spelling..
www.VBLimits.com

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

I haven't finalised the other parts yet, but by the end of the DirectXGraphics series I hope to have covered all the bases - anyone who follows them all should have a firm place from which to expand/explore from...

Jack;



 User Rating: 1947   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

I learned about this site while reading an EGM magazine. They gave this site's URL, claiming that it was an excellent resource for game programming/designing. I have an interest in both making games and in programming, and decided to come to the site to learn more. I program primarily in Visual Basic, and know little about C/C++ or any other non-BASIC language (with the exception of HTML). I was dissapointed when I discovered that many of the modern-day games are programmed in C/C++, because I have little knowledge about those languages. I had been searching for information about Visual Basic game programming, and had come up empty handed. I had some free time today though, and I went to this site to see if I could find any information about making games in Visual Basic. One of the first links on the page caught my eye - the link referring to the implementation of DirectX 8.0 into Visual Basic. I began reading through the article and was shocked to be learning vocabulary about 3D graphics. I had long been searching for a way to make a 3d game in DirectX in the language that I am most knowledgable about - Visual Basic! I had thought that only the C and C++ languages supported this type of technology (3D graphics), and I am glad that soon (hopefully!) I will be able to use it!
I look forward to reading the rest of the tutorial/article, and hope that soon I will be able to make a 3D game! Thanks alot for writing this!

- EmanC23@aol.com

 User Rating: 1015    Report this Post to a Moderator | Link

quote:
Original post by jollyjeffers

I haven't finalised the other parts yet, but by the end of the DirectXGraphics series I hope to have covered all the bases - anyone who follows them all should have a firm place from which to expand/explore from...

Jack;




Jack,

Great article! Very well organized and writen. I'm looking forward to the rest of them. How long will we wait?

I understand why you created a triangle tutorial (most basic shape,etc), but I couldn't help being a little disappointed because it was almost the same example from the DirectX8 tutorial.

The thing I've been struggling with is making 3D objects & importing meshes. I've been totally unsucessful at using the 3DCube (and other objects) or importing a new X-file mesh into the texture mesh tutorial in DirectX8. I guess what I'm saying is, please cover these topics in your next articles.

Thank you for taking the time to write these very helpful articles,

Ki-Rin

 User Rating: 1015    Report this Post to a Moderator | Link

Great article! When are the next two parts coming? Can't wait.

Andy

 User Rating: 1019   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Great article! I just wondered when your next one is coming ? Good job!

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Like others who have read this article I use VB as part of my job (VB 6 and SQL7) I have a side interest in game programming and have been looking round for about 6 months considering programming in VB or C (thought about java for a day). I know VB better than C but am concerned with the future of VB.Net and its realistic capabilities as a game programming language.

I was wondering what your views were, a lot of people I speak to tell me C is the language to use and the Gamedev site will confirm that in a way due to the ratio of information on C as opposed to VB.

So what do you think.

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

hi,

Thanks for all the complements!!

VB.Net looks a bit shaky to me - I haven't seen it running yet, but maybe it'll be fine... There looks to be so much new stuff in it that it'll be like learning a language all over again - at which point I'll probably concentrate on C++ (if I'm going to learn a new language, C++ is of most benefit)...

Jack;



 User Rating: 1947   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

The articles are written using DX8 I only have DX7 on my machine and am reluctant to upgrade to DX8 just yet, are there likely to be any problems running the articles example code on DX7.

I am only investigating graphic programming and DX, one downer I have come acrosss with VB.Net is that it does not allow direct access to video memory. This means using the undocumented functions VarPtr (aswell as a couple of others) is not allowed.
Using VarPtr is one way you can get a pointer to a DirectDraw surface in VB (so I have read).



 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Hi Jack,

Just thought I'd mention to you, if your looking for topics to cover then have a look at nehe, they've covered most of the important stuff in basic 3D programming, but using C++ and OGL. I'm not saying copy the format, but they have a good layout and range of topics.



----------------
Freeride Designs
----------------

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Where do I put all the code. You dont tell me. You just say, put it in the initialisation sub, WHERE! in the initialisation sub, in the errorhandler, after setting the objects, before setting the objects, inbetween them, where? And that is the only one you did tell us where to put it. What about the enumeration code. I just left that out, it was sitting on my form load event, and all it did was print a few things to the intermediate window, what then..you dont tell us how to use it, and also are you aware that ther are constants called D3DTL_VERTEX, D3DTL_VERTEX2 and D3DVERTEX, So why all the type structures if they already exist, exactly as you made them already. ONly difference is they use sx and sy instead of x and y. Lastly why is the code given EXACTLY the same as the code here: http://64.23.12.52//TUT_DX8_DG.ASP



 User Rating: 1015    Report this Post to a Moderator | Link

Well, the code is the same because that's his site.
And if you already knew that, I think it's great that Jack has a 'mirror' on GameDev; more people will find out about dGraphics for VB. As for the other things you mentioned (about where to put it) I suggest reading through it, thinking and adapting the code to make it your own on every paragraph. Doing so in tutorials helps you understand better the concept(s) you are trying to discover.

 User Rating: 1015    Report this Post to a Moderator | Link

Just wanted to point out a slight flaw in your description of "early" vs. "late" binding. Actually, both methods you describe are early bound. The difference you pointed out in the two ways to create the object are correct, but they are both early binding. Late binding would be like:

Dim x as object
set x = new DirectX8

The reason this is late binding is because the compiler does not know what type of object "x" will be, so it must be sorted out at run time, which is even worse than:

Dim x as New DirectX8

because the runtime has to figure out what type of object you are dealing with on each call, which is even harder than checking to see if it is "Nothing".
Great article tho... the best I have found so far for DirectX newbies like me. Keep up the good work bro.

Jesse Chunn

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

I am posting these as I work thru the article "part 1" so I wont forget. I think this is a great tutorial, and I hope you will use my comments to improve the tutorial even more. I am not trying to be a pain in the ass, but I noticed that you never pointed out that we should set "bRunning" to false in the form_unload event (or somewhere else). Not doing that, as you know, will cause an error when you try to end the program. So obvious I can see how you might have forgotten to mention it, but it could be a headache if someone didn't know.

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Well I've been searching for GOOD directx 8 tutorials for vb and I kept finding all these Jack Hoxley ones and I thought they sucked I went through them all and didn't understand (particularly, the one at directx 4 vb), but now i read this one and you did a great job of explaining how most of the stuff works. I was actually able to modify the code to make a square!!! I don't understand all of it however. I completely left the enumeration out because it wasn't working. It was kind of pointless because all it did was check the capabilities and do nothing about it. And I got a little confused with the TLVERTEX type members. What do the rhw, Specular, tu, and tv parameters mean?
Anyways, this is the best tutorial I've come upon in a long time, even if I don't understand all of it. I give it a five out of five (is there a rating system somewhere?)

 User Rating: 1015    Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: