[Effect] mode7

Share your Construct 2 effect files

Post » Tue Jan 27, 2015 9:44 pm

Other than having to reverse the left and right controls when enabling mode 7 are there any other tips and tricks you have for working with it?
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Tue Jan 27, 2015 10:22 pm

Here's an example file of what I'm trying to do with mode7. I'm not sure if its at all possible so i thought i'd ask @aurel and @r0j0hound

Is there a way to get one object on another layer to follow another object on a layer with mode 7 applied to it?

see demo below: I'm trying to get the blue square to follow the position of the green square below it

Thanks for the help

Demo:
https://db.tt/up9DHfbM

Capx:
https://db.tt/IYLOif7m
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Mon Feb 02, 2015 9:49 am

Wow this is awesome!
B
4
S
1
Posts: 56
Reputation: 464

Post » Fri Feb 06, 2015 7:49 pm

Can you add install instructions? It's a PITA having to look where to put these files everytime, considering there are 3 methods to install "plugins" =\
B
33
S
9
G
1
Posts: 153
Reputation: 3,008

Post » Mon Mar 02, 2015 1:18 am

I notice this shader now has ugly looking solid lines around the edge of the image with C2 r198 at least with a 256x256 image. Are there any settings I'm messing up that should be set a certain way for this shader to display right?

Example.png


EDIT: It appear setting the sampling to linear causes this issue after I had further time to test. It appears to work fine in point sampling mode but I can't use point because my trees that sway in the breeze look crappy with point sampling. =X And plus this still wasn't an issue for me before as I'd been using linear sampling for a while with the mode 7 effect.
You do not have the required permissions to view the files attached to this post.
B
28
S
8
G
1
Posts: 196
Reputation: 2,995

Post » Mon Mar 02, 2015 7:48 pm

justifun wrote:Here's an example file of what I'm trying to do with mode7. I'm not sure if its at all possible so i thought i'd ask @aurel and @r0j0hound

Is there a way to get one object on another layer to follow another object on a layer with mode 7 applied to it?

see demo below: I'm trying to get the blue square to follow the position of the green square below it

Thanks for the help

Demo:Capx:



I had the same exact problem. Improvised it like this:

bit(DOT)ly/1vUhMHU

Its not perfect but maybe fits your need. Adjusting Y-speed of Sprite5 will do the trick
B
5
S
1
G
1
Posts: 9
Reputation: 443

Post » Tue Mar 03, 2015 11:37 pm

After playing around for some time now i found no precise setup.
Can anyone help?
B
5
S
1
G
1
Posts: 9
Reputation: 443

Post » Sat Jun 27, 2015 8:56 am

R0J0hound wrote:To position objects the math in the shader is reversed, and it comes out kind of complicated.

Change the m7x and m7y variables of the obj sprites to change their locations.


Interesting topic!
I had made 2 behaviors (ground behavior, perspective behavior) from this capx to encapsulate the logic. Here is a sample capx.

Image
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Mon Jul 13, 2015 2:07 pm

Thanks works great!
B
14
S
4
Posts: 40
Reputation: 1,096

Post » Mon Jul 13, 2015 3:12 pm

Thanks hound
B
206
S
27
G
13
Posts: 1,845
Reputation: 35,820

PreviousNext

Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests