User Tag List

Results 1 to 7 of 7

Thread: Android Exporter Glsl Shader

  1. #1
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    189
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Android Exporter Glsl Shader

    Hi i'am working hard on making shader surface for android exporter;

    I will share with you the status of this extension progress named Ashader running on smartphone, for now it's on beta stage
    with 2 event commands : setfragment form TEXT object and setuniform for acces the uniform variables on shader fragment;

    So let me show you screenshot;

    ashader.pngashader2.jpg

    stay tuned;

  2. #2
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    189
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Ok i've made something usable now, fixed memory leak and crash after 50 seconds of running;
    I will soon release this extension , i need beta testers before, so feel free to PM me , then i will send
    all files and example for testing. Texured shader is not supported yet.

    Thanks in advance;

  3. #3
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    189
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hello

    This is the first release of this extension for android , so use and test it;
    Main source is based and forked from nekocode camera filter, license is inside source; Apache licence V2.0;

    Texture shader is not supported; Only 2 event argument used; Set Fragment and set uniform float ;

    Installation ; Copy Ashader.mfx to : Clickteam Fusion Developer 2.5\Extensions\Unicode
    Copy Ashader.zip to : Clickteam Fusion Developer 2.5\Data\Runtime\Android

    After this, start a new android project , insert Ashader object and a string text and insert button;

    String text will contain Fragment shader;

    When button clicked : setfragment shader from text content; example is show how to use shader like this;

    a1.jpg a2.jpg a4.jpg a3.jpg

    This extension was tested during one hour without crash on galaxy s7 and s21 API 29 is used ; Memory leak is fixed hope so;

    However use this extension at your own risk, I take no responsibility for any damage that this extension may cause to your devices.Finally here the files ;


    Enjoy , and feedback are welcome;

    Gigatron
    Attached files Attached files

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    574
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    When I try to compile it I get this:

    > Configure project :app
    WARNING: The option 'android.useDeprecatedNdk' is deprecated.
    The current default is 'false'.
    It has been removed from the current version of the Android Gradle plugin.
    NdkCompile is no longer supported

    > Task :app:preBuild UP-TO-DATE
    > Task :app:preDebugBuild UP-TO-DATE
    > Task :app:compileDebugAidl NO-SOURCE
    > Task :app:compileDebugRenderscript NO-SOURCE
    > Task :app:generateDebugBuildConfig
    > Task :app:generateDebugResValues
    > Task :app:generateDebugResources
    > Task :app:javaPreCompileDebug
    > Task :app:createDebugCompatibleScreenManifests
    > Task :app:extractDeepLinksDebug
    > Task :app:processDebugManifest
    > Task :app:mergeDebugShaders
    > Task :app:compileDebugShaders NO-SOURCE
    > Task :app:generateDebugAssets UP-TO-DATE
    > Task :app:mergeDebugAssets
    > Task :app:processDebugJavaRes NO-SOURCE
    > Task :app:mergeDebugJavaResource
    > Task :app:checkDebugDuplicateClasses
    > Task :app:mergeDebugJniLibFolders
    > Task :app:validateSigningDebug
    > Task :app:mergeDebugResources
    > Task :app:processDebugResources

    > Task :app:compileDebugJavaWithJavac
    C:\Users\Bruger\AppData\Local\Temp\And4A92.tmp\app \src\main\java\Extensions\CRunAshader.java:118: error: cannot find symbol
    renderer = new gl_Renderer(MMFRuntime.appContext);
    ^
    symbol: variable appContext
    location: class MMFRuntime
    C:\Users\Bruger\AppData\Local\Temp\And4A92.tmp\app \src\main\java\Extensions\CRunAshader.java:127: error: cannot find symbol
    default_shader = new ShaderFilter(MMFRuntime.appContext);
    ^
    symbol: variable appContext
    location: class MMFRuntime
    C:\Users\Bruger\AppData\Local\Temp\And4A92.tmp\app \src\main\java\Extensions\CRunAshader.java:128: error: cannot find symbol
    custom_shader = new ShaderFilter(MMFRuntime.appContext);
    ^
    symbol: variable appContext
    location: class MMFRuntime
    C:\Users\Bruger\AppData\Local\Temp\And4A92.tmp\app \src\main\java\Extensions\CRunAshader.java:163: error: method renderImage in class GLRenderer cannot be applied to given types;
    my_renderer.renderImage(image, false, xx, yy,ww,hh, 0, 0);
    ^
    required: ITexture,int,int,int,int,int,int
    found: CImage,boolean,int,int,int,int,int,int
    reason: actual and formal argument lists differ in length
    C:\Users\Bruger\AppData\Local\Temp\And4A92.tmp\app \src\main\java\Extensions\CRunAshader.java:167: error: cannot find symbol
    this.rh.rhApp.imageBank.removeImageWithHandle(buff ered_img); // remove buffer image and clean up memory;
    ^
    symbol: method removeImageWithHandle(short)
    location: variable imageBank of type CImageBank
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    5 errors

    > Task :app:compileDebugJavaWithJavac FAILED
    > Task :app:mergeExtDexDebug
    > Task :app:mergeDebugNativeLibs

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 7s
    17 actionable tasks: 17 executed

  5. #5
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    189
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    "This extension was tested during one hour without crash on galaxy s7 and s21 API 29 is used ; Memory leak is fixed hope so;"

    Or, don't change anything and send me your .mfa file...

    thank you

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    574
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Any chance for it will work with all kind of mobiles in the future

  7. #7
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    189
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by warlords View Post
    Any chance for it will work with all kind of mobiles in the future

    Sorry for responding late , i have 3 phones 2 Galaxy S7, and 1 S21, don't know if this extension will work for others smartphones;
    The only notable thing is it use API 29 .

    Regards

Similar Threads

  1. Canvas Sampler Shader for Html5 Exporter
    By Gigatron in forum HTML5 Export Module 2.5
    Replies: 1
    Last Post: 1st August 2020, 06:00 AM
  2. Replies: 37
    Last Post: 8th February 2018, 06:25 AM
  3. Replies: 56
    Last Post: 26th December 2017, 09:53 PM
  4. Replies: 14
    Last Post: 28th September 2015, 04:12 PM
  5. Android Exporter - Trouble Building an Android Application
    By Appsareawesome in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 19th February 2014, 07:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •