PDA

Click to See Complete Forum and Search --> : 3D models


ubunreal69
May 4th, 2001, 02:49 AM
could anyone please tell me hot to or where to get a totorial on hot to make 3D models in vb, and make them move with the keyboard (left - right) ? :) anyone ?

I am verry new to this so sorry if it is a really stupid question.

! ---------------------->>

plenderj
May 4th, 2001, 03:09 AM
Well what you could do is create .X files for use with Direct3D, and then use Direct3D to display the models for you.

Download the DirectX SDK for Visual Basic and you'll see X files, and the rotation/movement of them.

Wak
May 4th, 2001, 06:42 AM
I've read through all that DirectX SDK stuff, but it's so confusing.
How can I display my 3d model, someone must know how. I don't want anything fance, just to display it. Thanx

Zaei
May 4th, 2001, 11:42 AM
Its a pain in the arse anyway =). Take a look at the D3DX.CreateMeshFromX, i think the call is. To render it, use <MeshObject>.DrawSubset(<subset num>). There are examples in the SDK.

Z.

Jotaf98
May 4th, 2001, 12:11 PM
I think what he wants is ready-to-use source code :)
Sorry, but I don't know anything about Direct3D, only DirectDraw. Just give him some working code :)

Zaei
May 4th, 2001, 03:10 PM
Bah, better to make people think. Then they remember it =).

Z.

plenderj
May 8th, 2001, 01:30 AM
Either that or they get spiteful of Direct3D and dont bother ;)

Wak
May 8th, 2001, 04:24 AM
If you don't do it for me, I'll give up and fall into a hole of self-pity. Nuh I kinda understand it, and I got this model to show, but it's pretty bad cause it's like a white outline, with no colours. Plz, any further help is appreciated. :)

plenderj
May 8th, 2001, 04:33 AM
Well Wak, thats further than I got before I gave up !

Wak
May 8th, 2001, 06:03 AM
I can rename the robot example from SDK... doez that count. I can make my own Robot, and it moves, just like on SDK, and looks, just like SDK, and falls over, just like SDK. What do you know. The file size, is the same size as that of the robot example of SDK. I am a genius. lol


*Get the Hint?*
*I need help*

plenderj
May 8th, 2001, 06:28 AM
I got to just after the full stop at the end of "ha ha ha" ;)

Zaei
May 8th, 2001, 06:07 PM
Well, ive got a C++ class that wraps the mesh up, and the code for loading the mesh is pretty much straight from microsoft =). try looking at http://www.vbexplorer.com/directx4vb/ for some good tutorials. It explains meshes and stuff fully.

Z.

plenderj
May 9th, 2001, 02:06 AM
And zaei where the **** were you when _I_ was doing this stuff ;)

Wak
May 9th, 2001, 03:37 AM
Forget all the 3d-model stuff, I think I've worked it out. Anyway, the problem waz because I was using lit vertices, and therefore had no lights. I've updated my source Source Code (http://home.iprimus.com.au/mwarner/3dworld.zip) and I've tried to add lights that work, therefore letting me use models, that aren't sillouette outlines. Anyway, I've tried to incorporate light, but it wasn't working, I have no idea where, and there are no errors, I think. But everything is black. I don't really care what type of light there is, as long as I can see something. Anyway, someone plz plz help me. Thanx.