Posted by: CriticalMass Feb 16 2007, 09:05 PM
... and no obvious solution.
Nice
work developing Sandy! It is people like Thomas Pfeiffer and other
contributors that do these things for us mere mortals that keep this
moving. Thank you!!
Now to my issue...
I have just started playing with Sandy and I am just wondering what would be the best way to approach the following problem:
I
want to create a photo gallery with photos/movies scattered on a 3D
plane, but with different depths on the z-axis. When you select one of
the photos/movies, camera will zoom in on it and show that particular
photo larger on the screen. After user gets done with looking at the
photo/movie, they will zoom out to the first screen. I was thinking to
use Zigo Engine for the z-axis camera tweens. Has anyone done this
using Sandy, and if so, what would be the best approach?
Thank you in advance.
CM
Posted by: Petit Feb 16 2007, 11:26 PM
QUOTE(CriticalMass @ Feb 16 2007, 10:05 PM)

I want to create a photo gallery with photos/movies scattered on a 3D plane, but with different depths on the z-axis.
This is a tentaive answer - no, I haven't done this.
If
your images ( thumbnails ) are scattered within one plane but "with
different depths along the z axis", this would mean that all thumbnails
are really in one plane, and that this plane is rotated around the y (
or x ) axis, to make some images further away from the camera. This
could also be accomplished by moving and rotating the camera. Is this
what you want?
QUOTE
When you select one of the photos/movies, camera will zoom in on it and show that particular photo larger on the screen.
If
you know exactly where the image is on the plane, you can move the
camera there, rotate it to point to the middle of the image nad zoom
in. This approach will not be very simple.
Another approach
would be to have thumpnails attached to the plane ( or rather the faces
of the plane ) and when one face ( thumbnail ) is clicked you show the
corrsponding image in a size that covers the scene ( make a Movieclip
with that image visible ( mcImgnn._visible = true ).
To make the
clickable thumbnails, the simplest would be to create the plane with
mode = 'quad' and to set the quality such that each face of the plane
carries one thumbnail as its texture. Enabling object events on the
faces makes them clickable.
The event handler for the onPressEvent
will get an event object as argument, and a call to its getTarget()
will return a refernece to the face that fired the event.
CODE
funktion onPressHandler( evt){
var face:Face = evt.getTarget();
// Do what you want with the face..
var faceID:Number = face.getID();
// You know what face got what image
}