Giter VIP home page Giter VIP logo

Comments (4)

create3000 avatar create3000 commented on June 25, 2024

I spend some hours on this issue, now it's finally done. ;) Now, you can use GIFs with MovieTexture. Because it is hard to determine if the GIF is transparent, you must do it manually by setting Appearance.alphaMode to "BLEND" as shown below. Please test the new MovieTexture, and drop me a line if it is working for you.

#X3D V4.0 utf8

PROFILE Interchange

Shape {
  appearance Appearance {
    alphaMode "BLEND"
    texture MovieTexture {
      loop TRUE
      url "transparent-flame-video-5.gif"
    }
  }
  geometry Box {
    size .8 1.5 .001
  }
}

from x_ite.

elcibi avatar elcibi commented on June 25, 2024

It works fine, many thanks for this fast enhancement! :)

I've encountered an issue with a two framed gif (light on/light off) which wasn't playing the animation, but simply added a third frame to it and it runs well. Transparency works fine with the alphaMode setting!

Great job! Thanks to you I can dust off some pretty old vrml scripts. You're my hero! :)

from x_ite.

create3000 avatar create3000 commented on June 25, 2024

Have fixed frame number determination. Should work better now when GIF has only two frames.

from x_ite.

elcibi avatar elcibi commented on June 25, 2024

Works perfectly :)
Thanks a lot!

from x_ite.

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.