Jump to content

Layered Lighting System Using Masks Issue


Nyrion
 Share

Recommended Posts

Maybe i'm not understanding you clearly but your saying for each Sprite on the stage have a duplicate Sprite (dark version) added into the "ambient" container?

The thing is that every light on the stage can change position/scale/texture/layer and also intersect with other lights on the stage.

There is also the tilemap (pixi-tilemap) to consider (tiles are generally on layer 0,1,2,3 only) which would be counterproductive to create sprites from.

Each light should be visible through the ambient lighting (of course).

Is there perhaps a different way to go about ambient lighting?

Edited by Nyrion
Link to comment
Share on other sites

  • 1 month later...

Hey ivan (thanks for your help) I thought i'd throw an update to this. I've sorted out a majority of the issues just some polish left.

I've linked to a video to see the result of what i've been working on. Any thoughts? Suggestions?

If anyone else has run into this issue, reply to this topic and i'll setup code examples.

https://nyrion.ca/Cyndar.mp4

Link to comment
Share on other sites

Hey ivan, got your invite & will join in soon. Thank you!

Thanks jonforum & tywang2006! I've been working on this for a while. The video shows a very small portion of the capabilities. I'll post more soon! I'm always open to suggestions as well.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...