VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Perspective 3D object Viewer (small bug fix)

J ATT  (2 Submissions)   Graphics   VB Script   Intermediate   Wed 3rd February 2021

This is a 3d object viewer (object files included) that renders at relatively high speed for pure vb. The viewer is well made but the class is a well commented masterpiece. It can rotate, move, and scale the objects, order their polygons with quicksort (Z Ordering), and render in points, wireframe, or solid stlyes. It also implements basic lighting effects and backface removal. Comments are appreciated.

API Declarations
Private Declare Function CreatePen Lib "gdi32" (ByVal nPenStyle As Long, _
ByVal nWidth As Long, _
ByVal crColor As Long) As Long
Private Declare Function CreateSolidBrush Lib "gdi32" (ByVal crColor As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, _
ByVal hObject As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function Polygon Lib "gdi32" (ByVal hdc As Long, _
lpPoint As POINTAPI, _
ByVal nCount As Long) As Long

Rate Perspective 3D object Viewer (small bug fix) (6(6 Vote))

Download Perspective 3D object Viewer (small bug fix)

Perspective 3D object Viewer (small bug fix) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters