Smooth Rotation

mcguirepm
02-17-2005, 10:30 AM
I have an appliaction that is drawing a 3D image as a series of lines. The application has the ability to zoom, pan and rotate the image. The problem I'm running into is that when I have a complex image and try to pan or rotate, the image refreshes two or three times rather than smoothly.

I'm using Mousedown to record the cursors original position and Mousemove to update the image as it moves.

Is there a way to smooth this out?

zelg37
02-17-2005, 02:55 PM
It sound like you are at the beginnings of developing a 3d vector engine, which is a a rather complex task. So without knowing what code are using that is causing the fps hit (refresh slowdowns) it's hard to advise you.

However, one good engine in this regard that has a both a wireframe and a shaded mode is the Dex3D engine. It also has a draggable rotation. You can download from this page:
http://www.codeguru.com/vb/gen/vb_graphics/gdi/article.php/c2359/

I can also give you additional references for other wireframe cad engines designed in VB if you wish to help you in the design of your own engine if you want...

Edit: Here's another fairly nimble 3D wireframe VB cad program that supports mouse dragging:
http://www.artunyan.com/programs.php

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum