|
-
Nov 19th, 2001, 10:03 PM
#1
Thread Starter
Frenzied Member
DirectX in VB?
Is this possible?
I'm bringing geeky back...
-
Nov 19th, 2001, 10:19 PM
#2
-
Nov 22nd, 2001, 12:35 PM
#3
Addicted Member
download the DirectX8 SDK from microsofty ;P
http://msdn.microsoft.com/downloads/...xml&frame=true
ive been up day and night trying to figure out how to load textured models, without luck so im probably gonna resort to OpenGL ;o (probably better anyways...)
-
Nov 22nd, 2001, 01:25 PM
#4
There is pretty much no difference between D3D and OGL in graphics speed. On the other hand, D3D is FAR easier to use in VB, as it is directly supported (OGL would be like using the API, you have to get all of the function declarations "Declare"d in VB first.
As for texturing models, make sure tht your model has Texture coordinates, by loading some random texture from a file (remember, it has to be a square texture, with dimnesions that are powers of two), and set that texture before you draw the model. If the texture shows Up, you know the model is correct. Then, you should take a look through the SDK samples (the code), to find where they load a model (there is a tutorial on this as well). If I remember correctly, using the D3DX model loading function, there should be a parameter where you pass in a string (dont quote me, i dont have any code availible to me, at the moment) to get the texture paths. Using that string, extract the filenames, and load those textures, and go from there.
Again, read through the model loading tutorial, and browse the samples, and you should be able to get it easily.
Z.
-
Nov 22nd, 2001, 01:37 PM
#5
Well, I just took a look at the online Docs, and did some research for you. You pass in a buffer (retMaterials). Inside of this buffer are the materials and texture paths. You can get those using several more D3DX functions: D3DX8.BufferGetMaterial, and D3DX8.BufferGetTextureName.
Enjoy!
Z.
-
Nov 22nd, 2001, 03:59 PM
#6
Good Ol' Platypus
What part of DirectX are you looking into? DirectAudio, Direct3D, DirectDraw(7), DirectPlay?
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
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
|