User Tag List

Page 5 of 5 FirstFirst ... 3 4 5
Results 41 to 49 of 49

Thread: Html5 Shader Demo Example

  1. #41
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    54
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by warlords View Post
    Yes Okay

    It was the Glsl Extension inside - Load module file - Play module file

    What should I write when I wanted to load another .fx file inside mmf?
    Will send you .mfa example, so wait a bit;

    Ok here is the file, with extension and .mfa, this is Glslextension shader for html5.
    The example is very simple;

    Copy Glslshader in extension/unicode
    and Glslshader.js in html5 drawer and open .mfa for the example.

    I am here if you need help;
    Attached files Attached files

  2. #42
    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
    540
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ok it worked fine, but when I load the second shader example my framerate go down to 15! It very slow, how can you clear the shader memory or clear the shader data? It also ask for 8bitscolor.fx?

  3. #43
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    54
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by warlords View Post
    Ok it worked fine, but when I load the second shader example my framerate go down to 15! It very slow, how can you clear the shader memory or clear the shader data? It also ask for 8bitscolor.fx?
    You are no need to clear memory or something else, performance depend on complexity of shader , send me the shader which drop fps and i can tell you
    the reason.

  4. #44
    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
    540
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Okay, this is my second day learning of shaders!

    Im playing with this shader.
    https://www.shadertoy.com/view/MscSDf

    It works very well in 1.0 Beta (Glsl Extension) but in the new one (Glsl Shader) it does'nt change color and is bigger in size!

    Then I tried to load a starfield after but then it became slow?
    https://www.shadertoy.com/view/XtBSWt

  5. #45
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    54
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by warlords View Post
    Okay, this is my second day learning of shaders!

    Im playing with this shader.
    https://www.shadertoy.com/view/MscSDf

    It works very well in 1.0 Beta (Glsl Extension) but in the new one (Glsl Shader) it does'nt change color and is bigger in size!

    Then I tried to load a starfield after but then it became slow?
    https://www.shadertoy.com/view/XtBSWt

    Ok , here is the 2 shaders running at fullspeed for me the number of stars is set to 800 ;
    live demo: http://gigatron3k.free.fr/html5/F25/shader2/

    Just confused with extension this one use colorfx shader not GlslShader used for sampling canvas this cause frame drop , here extension files and example are included. Please look the event code and the size of target sprite, this one is outside the window but needed to run
    the shader. The extension copy the area of target sprite to canvas... Test this and enjoy ;
    Attached files Attached files

  6. #46
    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
    540
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ShaderExample2 run fine here

    What is your plans for the future, will there be fonts and bump mapping included?

  7. #47
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    54
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by warlords View Post
    ShaderExample2 run fine here

    What is your plans for the future, will there be fonts and bump mapping included?
    Future depend of Html5 exporter of MMF2, if we have Webgl support than i will continue working with shaders
    on MMF2. For now i am learning c#, and c and gdscript language i thought very complicated but really easy, for making shaders for unity, godot ,cerberus etc..

    Ps; You can use shader for bump mapping with the extension, bump mapping use texture2D;

  8. #48
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleUniversal Windows Platform Export Module
    Fusion 2.5 (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2009
    Posts
    333
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I hope that the new Html5 exporter will be available soon ... in order to take advantage of new technologies .....

  9. #49
    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
    540
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ps; You can use shader for bump mapping with the extension, bump mapping use texture2D;

    Is the texture2D also an extensions? Can you make an examples how this work plz?

Page 5 of 5 FirstFirst ... 3 4 5

Similar Threads

  1. Replies: 0
    Last Post: 18th October 2018, 07:07 AM
  2. Curl exemple help.... [exemple]
    By Theduke in forum Android Export Module 2.5
    Replies: 1
    Last Post: 12th February 2017, 07:04 AM
  3. HTML5 Demo of Peter Rabbit Endless Runner - play in your browser
    By AyreGuitar in forum WIP & Released Games & Apps
    Replies: 5
    Last Post: 9th October 2016, 01:48 AM
  4. Replies: 0
    Last Post: 7th October 2016, 05:07 AM
  5. Curl exemple help.... [exemple]
    By Theduke in forum Fusion 2.5
    Replies: 1
    Last Post: 26th February 2015, 09:32 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
  •