Results 1 to 14 of 14

Thread: 3D models

  1. #1

    Thread Starter
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609

    Exclamation 3D models

    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.

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

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    I have a 3d model how do I display it?

    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
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  4. #4
    Zaei
    Guest
    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.

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    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
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  6. #6
    Zaei
    Guest
    Bah, better to make people think. Then they remember it =).

    Z.

  7. #7
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Either that or they get spiteful of Direct3D and dont bother
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  8. #8
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Yes, that's right ;)....

    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.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  9. #9
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well Wak, thats further than I got before I gave up !
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  10. #10
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    ha ha ha.

    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*
    Last edited by Wak; May 8th, 2001 at 06:07 AM.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  11. #11
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I got to just after the full stop at the end of "ha ha ha"
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  12. #12
    Zaei
    Guest
    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.

  13. #13
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    And zaei where the **** were you when _I_ was doing this stuff
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  14. #14
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    hmm, a step further I think I have gotten

    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 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.
    Last edited by Wak; May 9th, 2001 at 03:40 AM.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width