[Papervision3D] 3D Sphere Movieclip Interaction

shunshun shaun at shaunsahdev.co.uk
Fri May 16 09:33:03 PDT 2008


Hi Zephyr, many thanks for getting back to me.

I've done as you mentioned and created planes using MovieMaterials which
relate to my hotspots within my Panorama MC. However, this seems to still
relly on me manually working out where to place the planes within my sphere
(i.e. without adjusting the x, y or z of the new plane it appears in the
middle of my sphere), is this the way it is supposed to be?

The reason I ask this is because on the forum link below someone who created
an Interactive 3D sphere pre papervision 1.5 (the Office US website one)
claims that it is not necessary to create planes and that the interaction
can be achieved through setting the pano MovieMaterial and Viewport3D
interactive properties to true.

http://labs.blitzagency.com/?p=388#comments

///// Here's what he says to save you looking through:

... if you’re using Papervision 1.5 or later, you can create hotspots right
in your material. Just set your material’s and viewport’s interactive
property to true. When you mouseover or click on your 3D objects, the events
will be dispatched to the hotspots inside the material.

That’d be much simpler than to create hotspots like in this project. This
project was made a few months ago and pv3d didn’t support interactive
materials at that time so hotspots had to be created manually.

and then he says...

...doing a panorama like this is super easy with pv3d 1.5+.

You need to put the 360 image in a MovieClip.
Create MovieClip hotspots over the image in that same MovieClip.
Add MouseEvents to the hotspots.
Create a MovieMaterial with that MovieClip.
Set the MovieMaterial’s interactive property to true.
Create a scene or viewport depending on which pv3d version you’re using and
also set it’s interactive property to true.
Create a doubledSided sphere and apply the movieMaterial to the sphere.
Create a FreeCamera3D, put it inside the sphere.
Publish, rollover, click on the hotspots on the sphere, all events should be
dispatched to the hotspots in the 360 images MovieClip.

/////

Sorry to bug you but it sounds like this should be so easy and so I'm trying
to save myself the hassle of figuring out the x, y & z of each plane in my
interactive sphere.

Could it perhaps be that I need to create the MC hotspots through action
script rather than placing them in the panorama MC manually so they can
therefore be referenced in action script, i.e. once I apply the
MovieMaterial (which relates to my panorama MC) to the sphere I can no
longer access the panorama.hotspot through action script?

Many thanks,

Shaun


/////////////////////////



zleifr wrote:
> 
> You need to make sure that you have interactivity turned on for the
> Viewport3D.  And then, if for example, the source "image" of your hotspot
> is a movieclip, you will create a new moviematerial, make sure on
> interactivity on the moviematerial as well, and then you will use the
> moviematerial to texture a plane which you add to the scene.  Then you can
> get interactive scene manager events that basically correspond to the
> standard Flash mouse events from the textured plane.  
> 
> I have built a PV pano example with hotspots, tooltips, and various other
> goodies.  You can find it and source code on flashpanos.com.  It might be
> helpful to you.
> 
> Zephyr
> 
> 

-- 
View this message in context: http://www.nabble.com/3D-Sphere-Movieclip-Interaction-tp17238190p17261315.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list