-
I would like to learn OpenGL for VB. Are there any sites that show VB code? I've seen sites with C and all the VB sites give me are examples. I need the code, like www.cason.addr.com where it gives you CODE. I need something in that format, because that is how I learn best.
Some info on Glide would be nice too, but not necessary, as 3Dfx is going out of business...
Cheers!
-
I would agree that there should be a 3D Graphics forum on here, but VB is slow with them, even with a C++ library, like D3D (Not to mention, VB math seems to follow its own different rules ;)
-
Actually, I find VB just as fast, even for 3D.
C: 50 FPS 1152x864 OGL
VB: 45 FPS 1152x864 OGL
It was a presentation, showing cross-language browsing, (for a VRML browser) so people with VB and C didnt have to download another 20 megs of software... etc..
And yes, I do agree, VB DOES seem to follow it's own rules for math, probably Bill Gates' idea of a sick, sick joke...
PS - Zaei, your avatar scares me :)
-
My tests look something like:
D3D VB - Clip Range 80m, 640 x 480 22..27
D3D C++ - Clip Range 80m, 640 x 480 33..50
Pretty much the same thing, just a few extra things in
the VB one (im converting to C++, but im stuck, see my
Dilemma Post).
Somehow (360 - theta) gives me the opposite of theta
in VB...
My Avatar scares me too ;)
-
yes 3dfx is going out of buisness but they transfered all of the rights of their technology to nVidia. so they will always be around in memory:D:D:D
*No pun intended*
*E.P. Runs swiftly out of the room*:p
-
I voted for Glide purely on the basis of what I've heard. People seem to like it. With Direct3D and OpenGL I have no particular preference, seem pretty much the same to me.
I wonder if the latest version of Glide will ever get used?
-
I like glide, because it does look nice. For me, D3D in most games looks all washed out and nasty. But D3D is so very easy to use. So I voted for D3D.
-
well i like open gl the most out of that and direct x because u dont need all of these crappy surfaces etc u just have a DC RC and some other stuff and it clogs along fine. I can help Sastraxi with any opengl help in C++ and should be able to in vb.
-
Great! Then you can start here:
http://www.vsj.co.uk/archive/
I am learning well, and I WILL be able to put a triangle on the screen after some help:
THE ARTICLE WRITER FORGOT SOME DECLARATIONS!
I need the declarations for these (in VB):
glViewPort
glFlush
glClear
Please help me!
ps. Zaei, you must use two of the same data type in VB or else things go screwy!
-
Psyvision, I agree, I tried learning Direct3D....
about a meg of starting code, 1/2 a meg of ending code, 5 lines for every vertex...
I gave up...
But now I have found OGL, and I have about 30 lines of code to make a coloured triangle, rotating.
-
I had a type library for OpenGL somewhere...it's linked at http://www.parksie.net/simplegl/SimpleGL.html
And no, there won't be another tutorial :( I wrote that ages ago but I never managed to do any more on it...
-
You must not have tried DX8 =P. The amount of code to get a D3D app up and running in D3D8 is about the same as the amount needed for OpenGL (or so I've heard).
As for that 5 lines of code for a vertex, you arent using a Helper function. Anyway, OpenGL runs like shiit on my comp, so i dislike it. =)
-
Big advantage of OpenGL...you can run your programs with very few modifications (especially with GLUT) on a supremely high-end SGI workstation. Now THAT REALLY ROCKS :)
-
zaei the code should read:
Code:
If location = school then sleep(school.length)
:D:p
-
Actually, my code is right. School is a Boolean, and
School is 6 and a half hours, or 23400000 milliseconds
long (you can try this one yourself, 6.5 * 60 * 60 *
1000).
[edit]
And happiness isnt a god given right. Its a US given right, and how much does that mean these days? =P
-
Glad im not the only one that likes open gl around here :) I have a vb src somewhere that creates a ship in open gl and shows it to the screen done in vb. If u search on p-s-c.com for 'fly' then you should find it.
:)
-
What model formats (.x, .3ds, .mdl, .prj, etc) does OpenGL take? Or does it take none natively so you have to write a routine to load one?
If it is the second one, i would be glad if you could load .x files, as most of my models are in that format.
PS - I now know a lot of OpenGL! The site(s) I got my infinite knowledge from is/are:
nehe.gamedev.net
www.vsj.co.uk
VSJ has VB tutorials, while NEHE has C++ examples, i think all are translated into VB.
-
Zaei, for your "dilemma" are you using two of the same data types and converting them to the right type before sending them? (glfloat if using ogl)
-
THANK YOU, ZAEI!
Your avatar no longer haunts the memories of VB-Worlders :)
-
I fixed my dilemma, the problem was that im stupid.
Check my post to see why =)
Actually its the same avatar, with a freaky background.
-
GLfloat == float
GLdouble = double
There's no change with the parameters.
-
Wahey 3 votes for open gl, and 3 for direct x (Damn microsoft)
-
I'd just like to know who voted for native/doityourself - it was a JOKE, you know... :D
-
Heh, i agree. Software in VB would be horrid...