3D Drawing

Mick Dugan
09-07-2004, 10:27 PM
I'd like to write a 3D drawing application but I'm not sure where to begin. The items drawn would be kitchen cabinets and the parts that make them up, so everything would be rectangular.

All the VB books I have just talk about drawing in 2D.

Any tips?

Regards,

Mick Dugan

BenK
09-07-2004, 10:44 PM
3d Drawing can be fairly complicated
I would imagine you would require some kind of graphical library like directX.

Try searching for DirectX tutorials or check out the samples provided with the DirectX SDK.

pikzel_R
09-07-2004, 10:51 PM
I'd like to write a 3D drawing application but I'm not sure where to begin. The items drawn would be kitchen cabinets and the parts that make them up, so everything would be rectangular. All the VB books I have just talk about drawing in 2D.
Any tips? Regards, Mick Dugan
VB has no in-built support for any 3D modeling (except in DirectX)
But hey, any type of drawing is just lines (vector graphics) and pixels (raster graphics).

As regards to all the VB books just talking about drawing in 2D, there is a book that is heavily about 3D non-DirectX graphics. IMHO it is the ultimate VB6 drawing book. It' s Rod Stephen's "Visual Basic Graphics Programming"
http://www.vb-helper.com/vbgp.htm

I would also search online under 3D, CAD, wireframe, cube, transformational matrix and platonic solids.

Here's some wireframe cube code to get you started:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=51167&lngWId=1
http://p205.ezboard.com/fprogrammerscornerfrm48.showMessage?topicID=19.topic

Here's a colored (floodfilled) cube:
http://www.garybeene.com/3d/3d-vb.htm#api

Here's a non-DirectX texture mapped cube:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=10107&lngWId=1

One of the most advanced non-DirectX 3D graphics engines ever built with VB is called Dex3D
http://www.codeguru.com/vb/gen/vb_graphics/gdi/article.php/c2359/


Edit:The screenshots attached below come from a wireframe program called Graphics3D. It has a nice interface and uses text files to store 3D data points (which makes them easy to edit even outside the program). It's downloadable from this page:
http://www.artunyan.com/programs.php

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum