This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?act=Print&client=printer&f=17&t=325 as retrieved on 3 Aug 2007 06:38:25 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:Y1fqjtL097UJ:www.flashsandy.org/forum/index.php%3Fact%3DPrint%26client%3Dprinter%26f%3D17%26t%3D325+act%3DPrint+%22index+php%22+-lofiversion+site:www.flashsandy.org&hl=en&ct=clnk&cd=94


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: act print index php

Printable Version of Topic

Click here to view this topic in its original format

Sandy's Forum _ AS2 1.x versions _ Simple problem

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
}

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)