Skip to main content
Participating Frequently
November 1, 2011
Answered

Papervision3d example

  • November 1, 2011
  • 1 reply
  • 2171 views

Hi everybody,

I'm looking for a papervision3d actionscript example (sourcecode) that imports a collada model and that you can turn around with your mouse when you hold the mousebutton. And zooming with your mousewheel. Just as you turn and zoom your model in a 3d CAD program.

See for example http://www.dasai.es/. You only can turn the model when you hold the mousebutton.

All the examples that I have found are moving without holding the mousebutton.

This topic has been closed for replies.
Correct answer Peter Celuch

Ok that's clear. Thank you.

So I have to find out how to become these libraries (I think from the adobe website) and how to set up the flashbuilder environment.


Found better article: http://www.eccesignum.org/blog/targeting-flash-player-11-in-the-flex-sdk

or take a look yourself: http://www.google.sk/search?q=targeting%20flash%20player%2011%20flex%20sdk&hl=sk&meta=

There are plenty of tutorials that will guide through the process.

1 reply

Peter Celuch
Legend
November 1, 2011

Loading a model: http://papervision2.com/loading-complex-models-v2/

Rotating object: http://papervision2.com/7-basic-mouse-interaction/

As to moving without holding the mousebutton: just modify the code so that you start the rotation code with a mouseDown event and stop the rotation code with a mouseUp handler. Simple as that.

Herbs72Author
Participating Frequently
November 1, 2011

Thanks.

On the away3d website I found something I'm looking for.

It's The GridPlane with the seaturtle (http://www.flashmagazine.com/Tutorials/detail/away3d_basics_5_-_primitives_part_3/)

But when I load this in Flashbuilder I get a lot of errors. Like 1046: Type was not found or was not a compile-time constant: Context3D. And 1017: The definition of base class Mesh was not found.

What does it mean? Do I miss a lot of away3d scripts?

Peter Celuch
Legend
November 1, 2011

Did you download and include Away3D libraries?