Giter VIP home page Giter VIP logo

Comments (4)

awe-media avatar awe-media commented on July 3, 2024

Hi @binita12345 could you provide some more information about what you mean when you say "i getting video as downloading on full scene"?

If you could provide a link to your project or more code then that would be helpful too. The snippet you've provided looks correct from what we can see.

from awe.js.

binita12345 avatar binita12345 commented on July 3, 2024

image

In this image, where appearing images like butterflies which is .gif image. i want to animate those butterflies. it should be to appear flying.
currently .gif animation is not working there.

I have used following code:

awe.projections.add({
id: zoneUser.email + '->' + Math.random(),
// geometry: { shape: 'cube', x:50, y:50, z:50 },
geometry: {
shape: 'plane',
height: 10,
width: 20
},
position: {
x: 0,
y: 0,
z: 0
},
rotation: {
x: 0,
y: getRotation($scope.poiBarrings[zoneUser.fullname]),
z: 0
},
// rotation: getRotation($scope.poiBarrings[zoneUser.fullname]),
material: {
type: 'phong',
color: 0xFFFFFF
},
texture: {
path: 'img/SB-Butterfly.gif'
},
}, {
poi_id: zoneUser.fullname
});

from awe.js.

awe-media avatar awe-media commented on July 3, 2024

Hi @binita12345 - animated gif's aren't currently supported and video textures don't currently support transparency so you can't achieve what you want here using either of those.

If you want a flapping butterfly you'd be best to create the butterfly using 2 projections - 1 for each wing using a transparent bg for each one (e.g. cut your image in half vertically to create 2 separate images).

Then add each projection as a child of the of a separate poi positioned so each wing sits off-center from that poi's origin. You can then use the pois.update(...animation...) api to make each wing flap by rotating them back and forth around the z axis.

Then add both these pois with their children projections to one single parent poi so you can move them around easily as a group while they are flapping.

It's a little more work in the setup but will give you a better animation effect with 3D motion.

from awe.js.

binita12345 avatar binita12345 commented on July 3, 2024

if i have 6 image frames
tmp-0
tmp-1
tmp-2
tmp-3
tmp-4
tmp-5

for below gif
sb-butterfly

so, how can i set those frames in loop to flapping for butterfly.

Please give me any solution.

from awe.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.