Dex3D - Fully Functional VB6 3D Engine

Environment VB6 (VB5?) and Windows 98

This excellent piece of code shows how to make your very own 3d graphics engine in VB6 using some advanced graphics methods. The code will work on other versions of Windows as long as you comment out all calls to the Win98 GradientFill api call in the msimg32.dll .

screen-shot

The attached code demonstrates how to:

  • Convert between vectors and orientations
  • Convert between major color formats
  • Use matrices to apply mesh transformations
  • Load 3D Studio files
  • Build 3D primitives from scratch
  • Make use of Msimg32.dll
  • Perform mesh tessellations

The rendering modes supported in the project include:

  • Wireframe
  • Solid
  • Flat
  • Glass
  • Contour
  • Gourad

Along with all the above functionality, the program also supports its own file format (*.dex - Dex3d) and 3D Studio files (*.3ds )

Api Usage

The VB code shows how to use the following Windows GDI API calls:

  • Polygon
  • GradientFill (Win98 only)
  • GetPixel
  • SetPixel
  • MoveToEx
  • LineTo
  • TextOut
  • PolyBezier
  • ShellExecute

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Flowchart for Dex3D Engine

flowchart

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Download Zipped Project



Comments

  • new version now available!!

    Posted by Legacy on 01/29/2003 12:00am

    Originally posted by: Jerry J. Chen

    http://akao.mine.nu/dextre/
    http://onlyuser.cjb.net/

    The new and improved Dex3D is out! In the form of a Windows DLL!

    It's now known as Dex-VT.

    The engine runs faster, smoother, and sports a greater polygon handling ability.

    More importantly, since it's an API as well as a DLL, your code WILL STAY CLEAN!!. Simply stick the DLL into your project directory and viola! the API is immediately accessable from VB (or VC)!

    Of course, it still supports the same great features that gave Dex3D its high utility, but now, same great quality is delivered to you in a tiny 20KB package..

    at NO COST.
    +SOURCE!!
    (no, it is NOT a direct translation from VB to c++)

    Also included is a REAL 3DS file loader instead of the unreliable, make-shift one that came with Dex3D.

    • How I can get it?

      Posted by abahdadi on 12/13/2005 09:51pm

      I can't access both http. Any idea? Thank you.

      Reply
    Reply
  • nice

    Posted by Legacy on 01/05/2003 12:00am

    Originally posted by: amit

    it's tooooo nice.

    Reply
  • Dex3D - Fully Functional VB6 3D Engine - VB6 (5?) and Windows 98

    Posted by Legacy on 07/26/2002 12:00am

    Originally posted by: Roger Edmonds

    Hi,
    i tried installing this app in WIN98(SE).

    it installed OK.

    it didn't work.

    When I ran it I got an error message saying that
    msimg32.dll couldn't be found. This file is in the System
    directory.

    However, this app runs ok on WIN2000(Pro) without modification.

    Any ideas ...?

    Roger.

    Reply
  • Like my code? Get more here!

    Posted by Legacy on 05/22/2002 12:00am

    Originally posted by: Jerry J. Chen

    HAHA!
    
    jerry speaking..

    here's my new homepage! -> http://onlyuser.cjb.net

    currently only dmoz.org lists it,
    so only readers of earthweb will learn about it.

    new code? yup, i got some. come check it out.

    Reply
  • Simply Wow.

    Posted by Legacy on 04/26/2002 12:00am

    Originally posted by: Jaruzel

    They told you it couldn't be done....

    Just stumbled across this. Tested under VB6 SP5 on Windows 2000 SP2. It runs fine. Not a single error.

    - Jar.

    Reply
  • killer

    Posted by Legacy on 09/26/2000 12:00am

    Originally posted by: Mirage

    I like it keep it up!!!!!

    Reply
  • DEX3d

    Posted by Legacy on 05/16/2000 12:00am

    Originally posted by: lakes

    Your ver good how ever rote the code, you have given me more confidence to work in 3d now, I will try to work with the code in directx and send you what ever I manage to do, Thank you.

    Tridex............

    Reply
  • Get this engine - it is worth it!

    Posted by Legacy on 02/15/2000 12:00am

    Originally posted by: Andrew Ayers

    Jerry and I have had correspondence regarding this engine for over a year now. I have seen it grow from a simple wireframe rendering engine to what it is today. The code is clean and efficient, well worth looking into. Jerry has put a lot of hard work into this engine, and the code reflects it.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • VMware vCloud® Government Service provided by Carpathia® is an enterprise-class hybrid cloud service that delivers the tried and tested VMware capabilities widely used by government organizations today, with the added security and compliance assurance of FedRAMP authorization. The hybrid cloud is becoming more and more prevalent – in fact, nearly three-fourths of large enterprises expect to have hybrid deployments by 2015, according to a recent Gartner analyst report. Learn about the benefits of …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds