[Paid Work] Webgl Dynamic Light and Shadow

Post your work in progress addons and get feedback

Post » Wed Jul 24, 2013 7:50 pm

Hello fellow developers, Im looking for somebody to make a behavior/plugin that can achieve dynamic light and shadows for webgl in C2, similar to how CBNA for gamemaker works (http://www.youtube.com/watch?v=6KvjEiur0eY).
I imagine there would be a behavior called Shadow Caster, another called a Light Caster and different types of properties for the lights and shadows(color, cone, reach, softening) and also some events like "Is on shadow".
Being able to see the lights in the editor is a must.
So, I know this is complicated and as Im uncapable of doing something like this myself, can I get a quote via pm of how much would something like that cost and in how much time it would be ready?
Im more than willing to share the result with the community but if someone could chip in to pay the costs, that would be great too.

Thank you!


B
39
S
8
G
3
Posts: 440
Reputation: 6,903

Post » Thu Jul 25, 2013 3:48 pm

Nobody interested? o.o
B
39
S
8
G
3
Posts: 440
Reputation: 6,903

Post » Thu Jul 25, 2013 4:48 pm

This is unfortunately something very hard to do. I've talked with @Yann about it and he thinks there are some obstacles in the engine which prevents a simple shader from being able to do this.

Basically, unless Scirra make some changes to the engine, it's doubtful anyone but Scirra can actually create this shader.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Thu Jul 25, 2013 5:28 pm

@squiddster Thank you for your reply ;]
Oh well, I hope this feature gets on some of the next betas, I have some neat game ideas for the future that are dependant on a fast and easy way of adding light and shadows to a 2d enviroment(a stealth game).
I love Construct 2 and Unity really seens to be too complicated on handling complex 2d enviroments ;( Also, C#!
B
39
S
8
G
3
Posts: 440
Reputation: 6,903

Post » Thu Jul 25, 2013 11:06 pm

I'm basically trying to do the same. From what a friend told me when he looked at it and what I understood, it's not possible to do multiple passes with the current renderer in WebGL. It's probably more complicated than that but I'd really love to have a decent lighting system.
B
12
S
2
Posts: 85
Reputation: 899

Post » Fri Jul 26, 2013 9:45 am

What basically would help is an expression to return collision polygon coordinates. With that and some vector math, it should principally be possible to code the shadow projection without the need of a shader.

Oh wait! I just saw that theres a polygon plugin. Code away!Colonel Justice2013-07-26 09:53:10
Image
B
20
S
6
G
1
Posts: 127
Reputation: 2,115

Post » Fri Jul 26, 2013 4:59 pm

have you seen this capx?
http://www.scirra.com/forum/dynamic-shadows-now-possible_topic56174_post350597.html#350597
B
18
S
5
G
4
Posts: 568
Reputation: 5,084

Post » Fri Jul 26, 2013 6:40 pm

Yeah @California, but thanks for the link. Im looking for a more friendly way of managing light and shadows, so I can just add luminescence and colored lighting to some objects in an easy way. Im not too keen in programming a system myself inside C2, because I suck at math. ;P
B
39
S
8
G
3
Posts: 440
Reputation: 6,903

Post » Fri Jul 26, 2013 6:58 pm

That's the system I'm currently using and it's CPU heavy. It's pretty hard to get a decent framerate, that's why WebGL would be awesome.
B
12
S
2
Posts: 85
Reputation: 899

Post » Mon Jul 29, 2013 5:54 am

I'm willing to throw money at this problem too. You need a WebGL capable programmer. I have not seen a good example of 2D lighting/Shading done with WebGL yet though.
B
31
S
10
G
7
Posts: 416
Reputation: 7,264

Next

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests