[Papervision3D] Camera Orbit on mouse drag
dav at funkdaweb.com
Fri Jul 10 09:33:59 PDT 2009
The current project I'm working on requires us to load large poly models,
(6000 - 16000 polys) into our flash app and they need to be interactive,
rotate, zoom etc...
We need the click and drag of the scene to rotate the model, however we have
noticed that rotating the model is expensive, CPU-wise. So we're trying a
different approach. We want to orbit the camera around the model on click
I've set up a low poly test file here:
Now the problem we are having is the camera orbit NOT starting from where
you left off.
For example you click and drag to rotate the model, then lift off (mouse
up). Then move your mouse elsewhere and click and drag again to rotate
again. The model now appears to jump to another location and rotate from
How would I make it begin the second rotation from where it finished last
time, rather than appear to jump?
The source to the FlashDevelop project is zipped up here if anyone can help:
More information about the Papervision3D