2D and 3D fragment lighting, close to being fully supported and vote!

0 favourites
  • 13 posts
From the Asset Store
Controller Support ,TouchScreen Support , Keyboard Support , Action Platformer, Lots of Animations
  • I have been working with the latest beta and we are close to getting C3 support to enable 3D and 2D fragment based lighting. I have prototyped it using an effect and a patch of the C3 runtime, but we need one more change, so no patch is required. You can help and vote for the C3 change here (need a github account and add a reaction to the first post.)

    The link to the voting is in this post: kindeyegames.itch.io/c3-3d-effects/devlog/686663/we-need-your-votes-to-support-3d-fragment-lighting

    Update here's another suggestion to vote on, in case the other one is not implemented (it is more flexible than the other one.)

    github.com/Scirra/Construct-feature-requests/issues/180

    Here are some examples based on current experiments, enjoy!

  • Not just lighting, you can even use them to draw.

    Draw a painting, a sprite... a map.

  • I only found one addon useful for creating colored lights, but it only propagates the light in a circular manner, here I see cone lighting, having the ability to illuminate objects would be a big step forward for Construct, I never understood why it isn't there an integrated light system, I will have to register on github!

  • Ashley any thoughts on this? With your new change we are so close to just having a new effect for lighting. If you are concerned about compatibility, perhaps only use different vertex shader with the aPos pass through when the effect has direct-3d rendering enabled?

  • A new, very cool example from Dokse, also uses a form of light pooling to have a lot of lights scattered around the environment (e.g. more that the 8 available in the effect.)

    Subscribe to Construct videos now
  • Please comment Ashley . It seems a lot of work is going on by Mikal to help expand C3. The least you can do is take a minute to respond.

  • Please comment Ashley . It seems a lot of work is going on by Mikal to help expand C3. The least you can do is take a minute to respond.

    I do agree, but no need to ask Scirra to comment, they'll see it, it's the most upvoted suggestion ever!

    I feel if they gave special treatment to someone that works very hard, then this would set a precedent to always comment on any 3rd party dev that works hard, else upset certain devs if they worked very hard but then Scirra avoid commenting. Better to treat everyone equally and however Scirra choose to handle suggestions (whether they check them out every month or 2 or whatever).

    We are all excited and at the edge of our seats to see a response - it will come!

  • It's difficult to comment on suggestions. They can seem simple but turn out really hard. Sometimes they can seem difficult but turn out not too hard. You don't really know for sure until you actually implement it. Having said that, the effects system is one of the most complicated parts of Construct and very difficult to work with, and on top of that at the moment we are maintaining two renderers - WebGL and WebGPU - which means any graphics features have to be implemented twice with considerably different technologies. So overall I would say this would be a complicated change, regardless of what anyone claims about it. I'd add that we do not really want to end up making a full 3D engine - that would involve years of work and potentially amount to an entirely new kind of product, and I think we're already seeing a stream of "just one more 3D thing... just one more 3D thing..." that is trying to push us all the way down that road, and I'd rather not go very far down that road. Finally I must point out that for this and other reasons, the feature request guidelines state that we do not guarantee implementation of features, even for the top voted ones.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ashley - I understand what you are saying and after doing C3 addons for a few years, I hope I have somewhat a feel for how you handle suggestions. In the past I have seen you comment on suggestions, so I was just looking for similar feedback and was not worried if you were not able to.

    I did not imply how hard or simple the change is, I understand there is complexity.

    In terms of making a full 3D engine in C3, I understand that is not your direction. Instead some 3D features are being added and it is great that the addon SDK is being expanded to support other 3rd party devs so they have the possibility to go in the direction of adding more 3D features, which a smaller subset of the C3 community is interested in. This seems appropriate in terms of the philosophy of 3rd party addons for adding features to C3 that are not directly included in C3 or on the internal C3 roadmap. I really appreciate this and the support the SDK already provides.

    In terms of this specific suggestion, I am following your lead here, I am grateful for the addition of the direct-3d rendering SDK support for effects and this suggestion is aligned with that in terms of supporting direct-3d effects in an expanded way that allows for some cool world position based effects. I know it may or may not happen, but I hope you keep it in mind as you update the c3 render engine in the future.

    [As an aside the talk of direct-3d takes me back to the 90s and MS doing a new API too...]

  • Some more non-light examples that would be possible:

    Snow shader:

    Height fog:

  • Update here's another suggestion to vote on, in case the other one is not implemented (it is more flexible than the other one.) Please vote if you like the possibilities you see here:

    github.com/Scirra/Construct-feature-requests/issues/180

    Another example (added to the 8 frag effect):

    Directional Light (acts like a 'sun' light).

  • I like what you are doing, and would love to see it in C3, but is there any point voting?

  • Hope springs eternal...

    Adding distance and height fog to the effect / shader. Banding due to gif compression.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)