Archived

This topic is now archived and is closed to further replies.

chaoticseed

A directX Issue!! with Visual Basic...

Recommended Posts

I''ve been all over trying to figure out ANYHTING about directx, but its doing me no good, I can try to study the code in VB, but i can only understand bits and pieces leaving me nowhere. I''ve repeatedly read tutorials, but they never explain the essentials(the ones i''ve seen, and i''ve seen alot!) At this point I know NOTHING about directx. im very frustrated, sorry! it just sems like everywhere i go to learn, it offers totally nothing, they mostly just give you the code and tell you to memorize it. Theres way to much to memorize at first, i haven''t even began my learning curve! get it! What im saying is, Can someone plz help me out with this, im gonna die if i don''t learn something soon! How do i start off, where do i start off? I don''t mean to be a nusance, but can someone help me plz! thank u for listening!~

Share this post


Link to post
Share on other sites
first of all...

forget Visual Basic, it is not the best tool to use.

get yourself a good book about c++ programming and read.

Get a compiler (visual c++ for example) and try some code.

In a few months, you will start with directx or opengl !!

For now, just read ....


Share this post


Link to post
Share on other sites
Hey,

We''ve had thousands of discussions about C++ vs. VB, and it just comes down that VB is just as fast (maybe faster to design, slower in FPS) and that it''s _very_ easy to write slow code in VB. I''m author of VB Fibre, a site dedicated to see how you can speed up your VB code, and by how much %. For example x * x is _way_ faster than x ^ 2. (about 10 times). Anyway, the site is currently down because DigitalRice stopped supporting ASP.

VB is a good language, and performs well for games (Let''s face it: All your matrix rotations are done by using a DirectX dll, so it will be as fast in C++, as in VB)

Chaoticseed:
Try: http://www.vbexplorer.com/directx4vb and http://www.rookscape.com/vbgaming These two sites are the best around. The latter also includes a link section with links that will give you even more information.

Also check the games sections... there are new games under development that will even make C++ developers blink their eyes twice.

Almar

Share this post


Link to post
Share on other sites
thx,

i belive ya, the c language is ok with me, i still want to learn, but i have coded with it before long enough to say vb makes it alot easier, and with directx helping out it makes it competitive with the c coders! Beware!

Thx again!

chaoticseed

Share this post


Link to post
Share on other sites
I''ll quote myself again...

"It''s easy to write slow code in VB"

There are not many (VB) programmers that know the difference between ''\'' and ''/'', and often make mistakes there... Calculations aren''t that slow, and besides, the CPU speed goes up anyway.

(The first is 550% faster)

Share this post


Link to post
Share on other sites
Write a program which calculates the sum of all the prime numbers from 2 to an inputted number, and displays the time taken. You do it in VB, I''ll do it in c++. Then we''ll see exactly what the difference is.

Share this post


Link to post
Share on other sites
I need prime numbers in all my games... right.

You try to design a complete C++ program with a database backend.

I said before, writing a complete game in VB will take much less time, but will be a bit slower than C++.

Share this post


Link to post
Share on other sites
Oluseyi: Sieve of Eratosthenes (sp?) - a fairly obvious technique to use, IMO.

ajoling: The issue here is not the prime numbers - it''s the intensive calculations. Like I said, anything calculation intensive would be better written in c++ and linked in. I did not say anything about writing a huge program in c++. Please read my posts more carefully in the future...

Share this post


Link to post
Share on other sites
First off - if someone wants to write games, encourage them no matter what they want to use. We can fight forever about what''s best. The truth is the best language is the one you want to use at the moment. If someone wants to start with VB, there''s nothing wrong with that. I started with it and it''s helped me. There are good VB games out there, maybe not commercial level, but they''re not professionals writing them. They''re good considering that fact.

Second - if you want to learn VB and DirectX, here''s some sights:
http://rookscape.com/vbgaming/tutorials.php
http://www.vbexplorer.com/vb_game_developer.htm
http://voodoovb.thenexus.bc.ca/progmain.html
http://64.23.12.52/

If you have specific questions, go to the forums at VBExplorer and post them in the DirectX forum. I usually check it at least once a day.

Breakaway Games

Share this post


Link to post
Share on other sites