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 .


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


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


  • new version now available!!

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

    Originally posted by: Jerry J. Chen

    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.
    (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.

  • nice

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

    Originally posted by: amit

    it's tooooo nice.

  • 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

    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

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

    Any ideas ...?


  • Like my code? Get more here!

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

    Originally posted by: Jerry J. Chen

    jerry speaking..

    here's my new homepage! ->

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

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

  • 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.

  • killer

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

    Originally posted by: Mirage

    I like it keep it up!!!!!

  • 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.


  • 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.

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

Top White Papers and Webcasts

  • Enterprises are increasingly looking to platform as a service (PaaS) to lower their costs and speed their time to market for new applications. Developing, deploying, and managing applications in the cloud eliminates the time and expense of managing a physical infrastructure to support them. PaaS offerings must deliver additional long-term benefits, such as a lower total cost of ownership (TCO), rapid scalability, and ease of integration, all while providing robust security and availability. This report …

  • Moving from an on-premises environment to Office 365 does not remove the need to plan for disruptions or reduce the business risk requirements for protecting email services. If anything, some risks increase with a move to the cloud. Read how to ease the transition every business faces if considering or already migrating to cloud email. This white paper discusses: Setting expectations when migrating to Office 365 Understanding the implications of relying solely on Exchange Online security Necessary archiving …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date