Results 1 to 5 of 5

Thread: A simple wireframe box.

  1. #1

    Thread Starter
    Hyperactive Member TiPeRa's Avatar
    Join Date
    Apr 2001
    Location
    In between
    Posts
    464

    A simple wireframe box.

    I have never done anything in 3D yet and would like to know how to create a simple 3D wirefram box and be able to rotate it.
    Thanks a lot
    W#Ć€V€® W¦|| ߀ W¦|| ߀, ÄÑÐ †#€®€ ¦§ ÑÖ†#¦Ñ6 ¥Öµ ©ÄÑ ÐÖ ÄßÖµ† ¦†, §Ö §¦† ßÄ©K, ®€|ÄX ÄÑÐ |€† ¦† #ÄÞÞ€Ñ.
    (Whatever will be will be, and there is nothing you can do about it, so sit back, relax and let it happen.)

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    1 Good thing, 1 bad thing about 3D programming.

    Bad:
    Takes a long time to display a dot

    Good:
    Takes about 5 minutes longer to display a 3D model

    So, having said that, ask Zaei about D3D8.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    nah should be:
    Bad:
    Takes a year to code the dot
    Good:
    Takes two years to display it.

    A 3d wireframe box can be present as 12 lines with 8 coordinates, pairs of pairs of pairs whereas each pair are displaced only in respective dimenion. Rotation can be done using transformation matrices.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    Zaei
    Guest
    Nah, it doesnt take all that long to draw the dot...
    Code:
      SetPixelV(myHDC, 100, 100, RGB(128, 128, 128))
    ...But drawing the cube is a lot harder. Luckily, D3D makes that easier (although its arguable =). I recommend http://www.vbexplorer.com/directx4vb. Read over the tutorials, DO THEM (I think it helps to print them out), and learn the material. Dont just hop straight into 3D, because youll get lost, but you will get there quick enough by doing the tutorials. When you do end up at the 3D section, Use "D3DDevice.SetRenderState D3DRS_FILLMODE, D3DFILL_NONE". This will draw everything in wireframe mode.

    Z.

  5. #5
    Hyperactive Member VBD's Avatar
    Join Date
    Apr 2001
    Location
    The Place Above The Place Below Heavin
    Posts
    278

    D3d

    Goto the thread: Cheap 3-D for a control that makes it really easy to do this, perspective and more try it out!!!

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