FX documentation

Share your Construct 2 effect files

Post » Tue Dec 22, 2015 10:54 pm

C2 has no information on how it ties effects files into the game. This would sure be nice. Its a royal pain digging through bundled effects just to figure out what c2 is doing. It needs to be a part of the sdk.

TLDR: Documentation needs to be provided for effects. (ie, variables that are passed to the shader from construct, etc)
Last edited by ruskul on Sat Dec 26, 2015 6:40 pm, edited 1 time in total.
Image
B
33
S
11
G
2
Posts: 563
Reputation: 5,141

Post » Wed Dec 23, 2015 10:28 am

umm..

you just extract them to effect folder where c2 is installed and create a config (unless you have one already) so it shows in c2.

p.s. using shaders is just using fx files to calculate each pixel through some magical formula :)
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
41
S
14
G
12
Posts: 623
Reputation: 9,359

Post » Wed Dec 23, 2015 9:23 pm

@saiyadjin - hm, I dont think we are on the same page. I mean like what variables c2 passes the frag shader (samplerfront, pixelwidth, vtex, etc...) There are a number of builtins that construct 2 automatically passes the shader. But there is no complete list in the documentation... because there is no documentation.

I should like to be able to pass in other textures but I am not sure how to do that in construct 2, or if it is even possible. This amongst other things can be annoying to figure out without documentation. Also, also, can only the frag shader be altered or can the vertex shader be manipulated as well...
Image
B
33
S
11
G
2
Posts: 563
Reputation: 5,141

Post » Sat Dec 26, 2015 6:42 pm

Having support for webgl, but then no documentation is like if there was no documentation for the sdk. Sure you can figure out everything through trial and error, and simply going through code, but that can take hours.
Image
B
33
S
11
G
2
Posts: 563
Reputation: 5,141

Post » Sat Dec 26, 2015 7:43 pm

@ruskul

'Having support for webgl, but then no documentation is like if there was no documentation for the sdk. Sure you can figure out everything through trial and error, and simply going through code, but that can take hours.'
----------------------------------------------------------------

There are quite a few shader tutorials and guides on the forums -

The following topics in the Effects section might help-

' Documentation on built-in uniforms'
' About WebGL effects'
'WebGL Effects List '

The easiest method is to download the 'javascript-sdk-template'.

Inside you will find the 'effect template' and start from that.

Many of the standard shaders supplied with C2 have descriptive lines included-


Good luck.
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Sat Dec 26, 2015 7:49 pm

@chrisbrobs - This is all good info, thanks for taking the time to respond.

I have read both of those forum posts, and have read through a number of bundled effects, but thats part of the problem... it takes time to hunt down that info, obviously. It just seams like that is really missing from the manual... Though I should lookup the shader tutorials on the forums.
Image
B
33
S
11
G
2
Posts: 563
Reputation: 5,141

Post » Sat Dec 26, 2015 8:01 pm

You could also download the project from-

' https://github.com/BradLarson/GPUImage'

Quit a few of the effects shipped with C2 are ported from this, and many of them can easily
be changed to work in C2. (there are about 150 effects included)

:)
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881


Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests