How do I export the canvas with the effect applied?

Get help using Construct 2

Post » Sun Sep 11, 2016 9:48 pm

In a nutshell the paster object only has limited support for effects as I recall. It works fine if the object uses only one effect, but it ignores alpha and blendmodes apparently. Also multiple effects are not chained correctly. There are also issues with effects relying on screen position. It uses a heavily modified version of the code C2's renderer uses to apply effects. The goal was to make results identical but there were a number of things that needed to be reworked to make it work, and I lost interest before working out solutions to many of them. In the end I don't use webgl since it performs worse on my PC than with it disabled so I haven't had any reason to persue it further. Not to mention it is a very time consuming thing to work on, and unfortunately I don't have that kind of time anymore.

The blend modes are built in and don't use effects. A solution could be to only do one step at a time and use multiple paster objects to store each step:

paster1: paste sprite //sprite has effect1
paster2: paste paster1 //paster1 has blend mode
paster3: paste paster2.

Another idea is maybe just using the canvas snapshot system action?
Posts: 5,233
Reputation: 67,252

Post » Mon Sep 12, 2016 8:20 am

The snapshot simply do a capture of an area, not saves the alpha , i already tried.

About the pasters i think is the same problem if i understood you well. All sprites have their efects and blend types. To do that i have to save for each one what blend have and set normal to do the paster correctly and set after the blend mode saved. And well set all the pasters and all correctly with my skills... also will be a big change that how i have set all so before thinking to do something like that i want to test all other ideas.

I think the best thing actually as i said is use only effects. For example the additive blend mode is equal(or very simialr) to the "screen" effect. Maybe if i can know what is the code/script of the blend modes built-in i can replicate them or look how do something similar i don't know.

Because, without canvas/paster, there is no other way or plugin/behaviour to do the same right? At least i not found nothing.

Well, thanks for took your time for reply!, i will investigate and try add various effects to see how works all.
Posts: 538
Reputation: 4,426


Return to How do I....?

Who is online

Users browsing this forum: Cubus32, tarek2 and 9 guests