matriax's Recent Forum Activity

  • zenox98 Is very weird that the lava/magma ones don't shows, they not have nothing special variables, Are the last two of the first row that are not showing in your screenshot.

    Edit:

    Looking better the original flame not have anything in negative, only one variable for the noise.

    The magma ones have a negative Y position and a negative Y fade. Mmm, maybe the problem is allow use negative numbers on some variables or coordinates that some cards process wrong.

    Edit2: I go to upload a new presets avoiding the negative X/Y values to see if this are the problems.

  • zenox98 Test this:

    https://dl.dropboxusercontent.com/u/659 ... r_v103.rar

    ---

    Changes: I removed the offsetX and FadeX Position.

    This is how looks in my side:

    http://oi62.tinypic.com/s3zntk.jpg

    Yes some shaders are not working, but now the objective is get the same output in both sides. After that see how get the maximun shaders compatibility.

  • Gigatron See the lava shader in the top-right. With the OffsetX at 0.5 works correct with 0.0 the right part not shows correct.

    See the original:

    https://dl.dropboxusercontent.com/u/659 ... index.html

    Also compare the original with your last test. You will find some lines at left/right up/down that looks weird is some shaders. With OffsetX and OffsetY i can fix that errors.

    Or how to fix that errors without OffsetX and Y ? For shader like the flames that are in the center all perfect, but for shader that get the entire size of the X/Y sprite sometimes to fix some problems i have to use Offset X/Y.

    But well, seems that if i want to get a shader compatible with all the cards i will have to sacrifice some ones or find another solution for that errors.

    Edit:

    So, first i will remove the OffsetX and OffsetY or as you said, instead of pass to C2 as variable simply set in the FX as 0.0 and see if that is the problem and with that all cards works in the same way. If that works then try to fix the error/glitchs in some shader or find another way to fix that. If not, sacrifice them. Correct?

  • Then, simply some cards draw the shader different from others and there is nothing we can do?

  • zenox98 Much thanks for test and for the screenshot.

    I see, then, one of the problems was the OffsetX, in my case works correct with 0.0 or 0.5 but for other people not, have to be 0.0 like you and i guess for the other guy :S . Why the hell are not all the shaders compatible with all the cards, even with the same developer, i also have NVIDIA. i hate this incompatibilities things

    I guess other of the errors can be the OffsetY that will explain we some shaders not appears, because they are in a -0 on Y coordinate instead move the shader in negative numbers.

    Also there is some shaders that works but not correct, i guess because the change of the OffsetX and other things.

    I don't know how to fix that to be compatible with all the cards sorry, hope Gigatron finds a way.

  • This is like the NormalMap problem then.

    The people running my .capx not get working, but if they create a new document the effect shows good.. i not understand <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad"> .

    zenox98 Can you send me your .capx where the shader effect works correct? is to see what are the differences between my document, maybe i have enabled some option or something, i don't know.

    ---

    I created this from a new document changing the size for 960x540 and Fullscreen from letterscale to OFF, works correct?:

    https://dl.dropboxusercontent.com/u/659 ... index.html

    This is the capx used:

    https://dl.dropboxusercontent.com/u/659 ... test1.capx

    Works correct on browsers and NW.JS?

    ---

    digitalsoapbox zenox98

    Edit:

    IF works corrects i guess the problem will be for the OffsetX that in all are at 0.5. Works well for me but seems for other cards have to be 0, test this version:

    https://dl.dropboxusercontent.com/u/659 ... r_v102.rar

    Or in the capx that shows wrong shaders edit the "OffsetX" variable and change the 0.5 for 0.0 to see if the shader appears correct.

  • Gigatron the .fx , .xml and .capx can be downloaded from the first post, this:

    https://dl.dropboxusercontent.com/u/659 ... editor.rar

    zenox98 digitalsoapbox Create a new document, add a sprite with my effect and run, still works wrong? How appears in the layout before run? also cutted in the half?.

    Also guys you tested the editor? this:

    https://dl.dropboxusercontent.com/u/659 ... index.html

    Also appears only a half part of tha shader?

  • Well i get something that change the line and still works equal:

    https://dl.dropboxusercontent.com/u/659 ... r_v101.rar

    digitalsoapbox and zenox98 , Please, download, overwrite and tell me if now works correctly....

    Edit:

    I changed this:

    q.x = mod(q.x,1.0)-0.5;[/code:1ej3n5t4]
    by this:
    [code:1ej3n5t4]q.x = fract(q.x)-.5;[/code:1ej3n5t4]
    
    Is the problem fixed guys?
  • The solution i mean is for fix the .fx not nothing you can do sorry :S .

    I'm trying now but i can't get working at the moment, or is something i'm missing or i still not have the enough skill to fix that.

    digitalsoapbox If you want to try look this two lines in the .fx file:

    q.x *= 1.0; // Number of flames on horizontal
    q.x = mod(q.x,1.0)-0.5; // 1=Separation / 2- Move to right[/code:23uk165c]
    
    Remember that for a shader the start position (top-left) is 0/0 and bottom-right is 1/1. For X (q.x) 0 is left, 1 is right and 0.5 is center. I think the problem is "q.x = mod(q.x,1.0)-0.5;" maybe the "mod" operation works different in some cards ¿?. 
    
    If you can play with the values of this line of code and see if ther is one that works for you. At least i will be sure that this are the problematic lines  .
  • I think is a similar error that on my other shader of flames that was solved by Gigatron :

    Seems i can't use the X variable of the shader position, when i do some cards not do the work correctly and this happens. I guess is the same or similar error, i can't confirm.

    I will try to solve the problem, sorry for the inconvenience :S .

    Note: My card is a NVIDIA Geforce GTX 670 , and works perfect :S

    Edit:

    I guess the problem is in this two lines that modify the coordinate X and make in some card you only see a half:

    q.x *= 1.0; // Number of flames on horizontal
    q.x = mod(q.x,1.0)-0.5; // 1=Separation / 2- Move to right
    [/code:2wxs8xsu]
    
    But after try some things i can't it working the same using other format or mixing, or deleting and creating some different
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Nice job but...

    I don't like the method that you used for make multiple lights... It works but there aren't a way to pass a dynamic js array instead of different variable to the shader?

    No idea .

  • Thanks! <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

    ---

    Shader Effect Released:

    And here is the shader effect including a .capx example with all the presets workings and the editor exported in html5 to be used offline(is the same that the online one i posted above)

    https://dl.dropboxusercontent.com/u/659 ... editor.rar

    Inside the .capx you will find some comments that how all works.

    Enjoy!

matriax's avatar

matriax

Member since 22 Jun, 2015

Twitter
matriax has 114 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Viral Game One of your games has over 100,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies