[Effect] Shader Effect & Editor released. Create your shader

Share your Construct 2 effect files

Post » Tue Jan 03, 2017 10:22 pm

Video showing how the shader and editor works
https://www.twitch.tv/davitmasia/v/111896787
B
27
S
10
G
3
Posts: 608
Reputation: 4,668

Post » Wed Jan 04, 2017 9:07 am

@matriax

This is what it looks like for me:
Image

It only ever shows half the effect whatever preset I select.

Win7 Pro x64 I7+Geforce GTX 970.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,556
Reputation: 60,456

Post » Wed Jan 04, 2017 9:23 am

@zenox98 LOL XD , But in my original editor the shader looks ok right? Mmm i don't know what can be, maybe is by the old version used of the effect(.fx/xml) the .rar in the first post after organize the dropbox was the 1.0, before fix some problems that i think maybe there the ones you had? BTW, works perfect for me.

Can you do a test? Copy the shader code and paste in a example .capx. Still looks wrong? if not the FX version you have the one used by the editor are different, i guess, i can't find other explanation, mmm...
B
27
S
10
G
3
Posts: 608
Reputation: 4,668

Post » Wed Jan 04, 2017 10:56 am

Pasting the code from your editor shows the correct full effect.

The only difference between the effect FX of the updated first post and my original is in line 310:

My original: float a = c * (1.-pow(uv.y-offsetY,fadeSP)); // * (1.-pow(uv.x-0.0,fadeSPX)) ;
Updated: float a = c * (1.-pow(uv.y-offsetY,fadeSP)) * (1.-pow(uv.x-0.0,fadeSPX)) ;

The only effect the update FX has is that the rain effect doesn't show. All others OK.

The effect XML files are identical.

Just in case it's relevant, I'm using latest ver of C2 r241 and latest ver of NWjs (v0.19.2) from https://www.scirra.com/nwjs.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,556
Reputation: 60,456

Post » Wed Jan 04, 2017 11:13 am

Is weird because the standalone editor have an FX effect that is the same for all but works on ones but not in others. Also We both using a Nvidia, mine is 670gtx and your is 970, maybe something changed in this years.

You have the drivers updated? I have the drivers updated from last week.

About the FX, the original you have an updated with both shows the effect correctly or only in the old version? Or works on both but not in the standalone editor by MadameBerry?
B
27
S
10
G
3
Posts: 608
Reputation: 4,668

Post » Wed Jan 04, 2017 1:11 pm

Drivers are latest WHQL 376.33 14th December 2016.

The updated Shader Effect (Shader Effect - EDIT: 3 JAN - 2017) in first post (capx, xml,fx) - all effects work EXCEPT for the rain effect.

The MadameBerry Shader Editor (Shader Editor - EDIT: 3 JAN - 2017 ) in first post - all effects show only the right half EXCEPT for effects 26 and 27 which show the whole effect.

If I paste a working code from the .(Shader Effect - EDIT: 3 JAN - 2017) capx into MadameBerry Editor, then it still only shows half the effect.

If I paste a code from the (Shader Editor - EDIT: 3 JAN - 2017 ) MadameBerry Editor into the .capx then it works OK.

Very strange things happening here :/
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,556
Reputation: 60,456

Post » Thu Jan 05, 2017 2:35 pm

какая версия constuct 2 ?
B
3
Posts: 2
Reputation: 179

Post » Thu Jan 05, 2017 4:08 pm

moderinminer wrote:какая версия constuct 2 ?


@moderinminer

This is an English forum, moderated in English, so please ensure all posts are in English or have an English translation.

Thanks
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,556
Reputation: 60,456

Post » Wed Apr 19, 2017 11:08 pm

How does one adjust the overall opacity of the effect? Using the opacity parameter seems to rotate my whole effect instead of affecting its transparency
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Thu Apr 20, 2017 6:16 am

@justifun Use the Opacity of the sprite should work
B
27
S
10
G
3
Posts: 608
Reputation: 4,668

PreviousNext

Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests