Jump to content
GreenSock

Pilatus

Tweening for Flash’s WebGL Runtime API

Go to solution Solved by GreenSock,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello,

 

I am looking if it possible to animate matrix values directly like with the TransformMatrixPlugin.

Values would then be updated for each frame to webgl rendering using the Flash’s WebGL Runtime API.

https://helpx.adobe.com/flash/webgl-runtime-api-help/matrix.html

Do you reckon this approach can work?

 

I am looking for a workflow which would allow to reuse Flash IDE assets exported to WebGL, then animate them via GSAP but still render everything to WebGL via Flash’s WebGL Runtime API. The unicorn!

GSAP is great for manipulating object properties.

 

Thanks.

Link to comment
Share on other sites

  • Solution

Do you have a very simple test project that, for example, attempts to rotate and move a WebGL-based object from Flash? I wonder if it'd be as easy as using EndArrayPlugin on the transform's setValue. 

 

I'm sure that what you're attempting is entirely possible since GSAP can animate pretty much any property of any object; it's just a matter of getting/setting the values properly. Maybe an onUpdate, maybe something with the new ModifiersPlugin, or just create a plugin that does exactly what you need. It'd really help if we had at least a basic example (even if it doesn't totally work, but we can at least publish your file and have something to work with and fix). You can attach a file here by clicking the "more reply options" button (don't forget to zip it first). 

Link to comment
Share on other sites

Thanks Jack, your answer is already satisfactory, indeed I was more looking for a general direction. I have to put up something to show as soon as I am back from vacation.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×