You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
following code is not working in awe demo or also in my app to animate object as a butterfly.
NOTE: You can also use the projection.update() api to update the texture periodically too. e.g.
var butterfly = awe.projections.view(PROJECTION_ID_HERE);
var i = 1;
b.update({
position:{ y:1 }, // use a minimal non-zero update here
animation:{
duration:0.2, // 5 animation steps are 1/5th of a second
repeat:5, // play for 1 second total
persist:0,
step_callback:function() {
i++; if (i>5) { i = 1; } // add time scaling here if the animation is too fast
b.update({ texture:{ path:i+'.png' } });
}
}
});
how can i use this code to fulfill my functionality?
The text was updated successfully, but these errors were encountered:
var butterfly = awe.projections.view(zoneUser.fullname);
var i = 1;
b.update({
position:{ y:1 }, // use a minimal non-zero update here
material: {
color: 0xFFFFFF
},
animation:{
duration:0.2, // 5 animation steps are 1/5th of a second
repeat:5, // play for 1 second total
persist:0,
step_callback:function() {
i++; if (i>5) { i = 1; } // add time scaling here if the animation is too fast
b.update({ texture:{ path:['img/tmp-0.png', 'img/tmp-1.png', 'img/tmp-2.png', 'img/tmp-3.png', 'img/tmp-4.png', 'img/tmp-5.png']} });
}
}
what can I pass in texture in awe.projections.add as displaying image?
please check n confirm my code to solve the problem..
following code is not working in awe demo or also in my app to animate object as a butterfly.
NOTE: You can also use the projection.update() api to update the texture periodically too. e.g.
how can i use this code to fulfill my functionality?
The text was updated successfully, but these errors were encountered: