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

  • On-demand Event Event Date: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

  • Not all enterprise applications are created equal. Sophisticated applications need developer support but other more basic apps do not. With the right tools, everyone is a potential app developer with ideas and a perspective to share. Trends such as low-code development and model driven development are fundamentally changing how and who creates applications. Is your organization ready? Read this report and learn: The seven personas of enterprise app delivery How application ownership is spreading to the …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds