Results 1 to 4 of 4

Thread: 3D wire box??????

  1. #1

    Thread Starter
    Hyperactive Member dflw's Avatar
    Join Date
    Apr 2001
    Location
    ct, usa
    Posts
    412

    3D wire box??????

    Hello,

    How do I make a 3D Box in VB6? How do I put bitmap textures on the sides?
    Visual Basic 6, HTML, JavaScript, learning C++

  2. #2
    Junior Member
    Join Date
    Aug 2001
    Location
    Eldwick, UK
    Posts
    17

    This might work

    Check out this link. Select the Vector graphics option and modify the oval to a rectangle with the same size as the faces. It'll look like a cube, methinks.

    Modify the code to put into VB6. That's how I learned this morning. For more complicated models use the conv3ds.exe program with the -x parameter. It'll convert a model into .x format from .3ds. It is up on the internet, but happy hunting. I got mine from a search for conv3ds on hotbot, and then a link on one of the pages. You only get a couple of results.

    Useage:

    conv3ds -x file.3ds

    output is:

    file.x

    in same directory.


  3. #3

    Thread Starter
    Hyperactive Member dflw's Avatar
    Join Date
    Apr 2001
    Location
    ct, usa
    Posts
    412
    thanks for the link, i am new to 3d graphics programming.
    Here is another question.

    say I have a 2d rectangle. How can I draw another rectangle directly below it in the Z dimension (3rd)? What is the code for this?
    Visual Basic 6, HTML, JavaScript, learning C++

  4. #4
    Junior Member
    Join Date
    Aug 2001
    Location
    Eldwick, UK
    Posts
    17

    Ah, I see

    I see how you are trying to do it. If you're experienced with packages and functions and stuff, try this:

    You'll need the DAnim.dll reference in you application. Insert it with references/ DirectAnimation Control. Pick either window or windowless, and draw onto the form where you want the cube to go.

    If you then use the View/Object Inspector, you might be able towork out how to do the rectangle things. I haven't got time to do the code now, it's going home time. And I'm getting A-Level results tomorrow (), find out if I can get into Uni. If you still need it on Friday I'll see what I can do.

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