jump to navigation
Le Petit
Support EFF

Freedom of Speech

Human Rights

petikr Badge
A petikr badge showing public photos from Clas le Petit. Make your own badge here .

The Flickr Spinnr Saturday 2006-05-06

It’s been a while now, since I had an opportunity to work on the 3D Cube or Flickr Spinnr. Among many other things, such as a bit of gardening and spring start up of the Fridhem house here on Öland, my computer was invaded by stupidity ( my ) and hijackers ( idiots ).

Today I’m up and running and solved a problem with the cube. The images on the cube should link to the Flickr page for that image, but due to concurrent processing of the images, the coupling between addresses and images got lost. An extra wrapper MovieClip around the one holding the image, carries the image id to the processing event handler. It’s a bit technical for a blog post, but the explanation will come in a planned tutorial later on.
I also had an annoying flicker as the images were placed face up on the Stage area before they are glued to the cube. The simple solution was to place that construction area out of sight, i.e. outside the view port of the Flash movie.

Now one quirk is left to think about. The images are mirrored as they are glued to the cube, probably due to the ordering of points that describe the cube faces. As I haven’t written the math for the cube, that will take some effort to change.

[Edit] After lots of ad hoc experimenting with the math of the cube, making symmetric changes to point positions for the cube faces, I gave up that approach. Instead I attacked the inncoming JPEG images and flipped them around the y-axis, before converting to bitmap and throwing them at the 3D engine. Yippee, that works :)

For now, have a look at “A Flash 3D Image Cube“, to become a tutorial in the end of time - or maybe earlier.

Comments»

no comments yet - be the first?

a gravatar Welcome/Välkommen Anonymous