How do I create a kaleidoscope with Paster/Canvas plugin?

Get help using Construct 2

Post » Thu Jun 12, 2014 9:22 pm

Hello dear cosmonauts,
I'm trying to port my OpenCL code which renders a kaleidoscope using a square collision mask that has some polygons inside behaving with physics (powered by Box2D).

I'm actually using VertexBuffer to create a multiple triangular mirroring effect. This is how it looks.
Image

And this is a snippet in obj-c.

Can I achieve the same triangular mirroring method within Construct or with the use of @r0j0hound Paster/Canvas?
B
13
S
2
Posts: 27
Reputation: 952

Post » Fri Jun 13, 2014 5:28 pm

@Ashley I thought a shader would fit nice in this occasion as I don't seem to come up with some usage of the Paster plugin, but it doesn't seem I can find C2's GLSL documentation, reference or template. I tried porting it in GLSL but it only works outside Construct apparently.
B
13
S
2
Posts: 27
Reputation: 952

Post » Fri Jun 13, 2014 7:11 pm

In C2 you only get a fragment shader with default quad vertex processing. I'm afraid it doesn't sound like you'll be able to port it.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Tue Jun 24, 2014 10:07 pm

Up.
B
13
S
2
Posts: 27
Reputation: 952

Post » Fri Jun 27, 2014 4:01 pm

Up.
B
13
S
2
Posts: 27
Reputation: 952

Post » Sat Jun 28, 2014 11:57 pm

Up.
B
13
S
2
Posts: 27
Reputation: 952

Post » Sat Jul 05, 2014 4:49 pm

Up.
B
13
S
2
Posts: 27
Reputation: 952


Return to How do I....?

Who is online

Users browsing this forum: jbr190 and 35 guests