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
right now i am using
var butterfly = awe.projections.view('twinks@gmail.com');
alert("butterfly..." +butterfly);
var i = 1;
butterfly.update({
position:{
y:1
},
animation:{
duration:6, // 5 animation steps are 1/5th of a second
repeat:Infinity, // play for 1 second total
persist:true,
step_callback:function() {
// alert("callback fun");
console.log("hello callback" +i +'img/' + i + '.png');
i++;
if (i>6) {
i = 1;
} // add time scaling here if the animation is too fast
butterfly.update({
texture:{
path:'img/' + i +'.png'
}
});
}
}
});
to update 6 images one by one but it is not working.
My poi id is $scope.poiLocations.push({
poi_id: 'Twinkle',
polar: {
angle: brng,
radius: 50,
height: 20,
email: 'twinks@gmail.com',
if i use material: { type: 'phong', color: 0xFFFFFF } using projections.update method then i getting desired result i mean changing the color and position and also rotating object but not changing images another after one.
No any update code given for texture to update image in awe library, so is it compulsory that it should be available in library.
please give me reply soon if possible.
The text was updated successfully, but these errors were encountered:
binita12345
changed the title
how to animate or update image via texture using different frames?
how to animate or update image via texture using six different frames?
Aug 21, 2017
This github repos is now focused on supporting the development of apps using awe.js on the awe.media platform. You can still access our older awe.js library as the deprecated branch, however we no longer support that code.
right now i am using
var butterfly = awe.projections.view('twinks@gmail.com');
alert("butterfly..." +butterfly);
var i = 1;
butterfly.update({
position:{
y:1
},
animation:{
duration:6, // 5 animation steps are 1/5th of a second
repeat:Infinity, // play for 1 second total
persist:true,
to update 6 images one by one but it is not working.
My poi id is $scope.poiLocations.push({
poi_id: 'Twinkle',
polar: {
angle: brng,
radius: 50,
height: 20,
email: 'twinks@gmail.com',
and projection is
awe.projections.add({
id: 'twinks@gmail.com',
// geometry: { shape: 'cube', x:50, y:50, z:50 },
geometry: {
shape: 'plane',
height: 10,
width: 20
},
rotation: {
x: 0,
y: getRotation($scope.poiBarrings['Twinkle']),
z: 0
},
// rotation: getRotation($scope.poiBarrings[zoneUser.fullname]),
material: {
type: 'phong',
color: 0xFFFFFF
},
texture: {
path: 'img/1.png'
},
}, {
poi_id: 'Twinkle'
});
how can i update those images on one object.
if i use material: { type: 'phong', color: 0xFFFFFF } using projections.update method then i getting desired result i mean changing the color and position and also rotating object but not changing images another after one.
No any update code given for texture to update image in awe library, so is it compulsory that it should be available in library.
please give me reply soon if possible.
The text was updated successfully, but these errors were encountered: