How to put a 3d animation or 360 spin of an image on hype?

tipofthemonth

(emmanuel) #1

Hello, maybe someone can help me to fix my problem, I want to put a 3D image but i dont know how to do it, i’m new in hype… recently I’m start to used adobe edge animation too and there I had the same problem but in this case found this tutorial: http://www.edgehero.com/blog/80/360-spin-tutorial and this one helped me to do it, exist a way to used the method of the tutorial but applied to hype? im new on programmation I don’t know how to do it…

Thanks for your answers.


360 degrees object panorama
Display Images one after another efficiently?
#2

This should help you out!

D

reelJS.hype.zip (373.3 KB)


3D object frame by frame with jQuery reel
Frame Animations
(emmanuel) #3

Thanks for your help DBear it’s what I want to do , but how you do to marge the images? exist a limit of images because I have the sequence of the image and are 359 pictures…


#4

Hi @emmanuel

  1. number your images 1 through to 359. (e.g 001.jpg … 359.jpg)

  2. upload them to your resources panel.

  3. In the inner HTML of the rectangle (Edit->Edit Element’s Inner HTML) replace the line that begins image: with

     images: '${resourcesFolderName}/###.jpg|1..359',
    

The previous example was just using 1 image with all the frames in it. This adaptation will use several images and make it into one complete sequence. NOTE* make sure the dimensions are the same as your images AND the src="" image is the first of your images.

D


Tips and Tricks of the Month
(james koh) #5

this might be another solution.


(emmanuel) #6

DBear, I do what you told me, but when I see the preview, the image not appear… I don’t know if I make something wrong, I’m going to send you my hype project, maybe you can tell me in what part I’m wrong…

The link to download my project: https://es.hightail.com/e?phi_action=app/orchestrateDownload&batch_id=bXBaMFh1Z2poeVlzeHNUQw


#7

Hi @emmanuel

You named your images 1 not 001. no problem just change the line to

images: '${resourcesFolderName}/brujula#.jpg|1..100',

Also, notice there is no | at the end. Only one separator. AND you must give the img tag a width and height.

So, your code should be …

<img id="image" src="${resourcesFolderName}/brujula1.png" width="200" height="150">
<script>
  $('#image').reel({
    images:       '${resourcesFolderName}/brujula#.png|1..100', /// or 1..359 however many images ;)
    frames: 100,
    footage: 5,
    speed: 0.3
    
  });
</script>

D


(emmanuel) #8

Thanks for your great help it’s works, but I have another issue I have 7 stages and each one have a different image and I try to make the same process and put the source that you send me, but when I see the preview just the image of the first stage works, and in the rest stages the pictures appears like a static image… I don’t know if I need change some values of the source?


#9

Have you changed the src="" attribute? and also maybe give it a different id.

<img id="image2".....

<script>
    $('#image2').reel ......... 

EDIT* I believe the problem is the id. Make sure you give each image it’s own unique id! :wink:

D


(Jonathan Luna) #10

Awesome share!


(emmanuel) #11

Thanks for your help DBear…

Exist a way to hide the loader that appears below the image it’s a black line that appears when the image is show and when past 1 second disappears?


#12

Hi Emmanuel,

This is an element that is dynamically made by the reel.js Javascript but you can easily hide it by using your own CSS in the Head HTML.

Just put the following code in your Head HTML after the <script></script> tags:

<style>
.reel-preloader {
    display: none !important;
}
</style>

NOTE* This will not make your end user aware of the loading of the images but if you are ok with that then it shouldn’t be a problem.

D


(Jonathan Luna) #13

Do you know of a simple way to customize the preloader?


#14

How do you want to customise it?

You can use the same css to change the color and position.

background: red !important;
top: 0;

If you want or need to do more than this then digging into the javascript would be needed.

D


(Jessica) #15

This is great! Have you tried adding annotations? I just can’t seem to get it to work…


(Terrence) #16

Thanks for sharing this!

However I have an issue when changing layouts. The animation seems not to be working (even on the example you posted earlier in the posts)

Thanks again


(Steve) #17

I wonder if this could be a similar solution to my post ?

I’m effectively trying to display a Sequence Image of 200+ images to create a Beach Ball animation