Dex3D - Fully Functional VB6 3D Engine | CodeGuru

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 . […]

Written By
CodeGuru Staff
CodeGuru Staff
Jan 28, 2004
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

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

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.