Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Dynamic 2D lighting and Shadows #68

Open
AurumByte opened this issue Aug 5, 2021 · 3 comments
Open

[Feature Request] Dynamic 2D lighting and Shadows #68

AurumByte opened this issue Aug 5, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@AurumByte
Copy link
Contributor

AurumByte commented Aug 5, 2021

Is your feature request related to a problem? Please describe.

Currently in FastJ, the only way to set up lighting is to use gradients... while this may solve basic needs. It can be tedious sometimes to set up proper lighting, not to mention shadows won't be supported

What should the solution be like?

Drawing of basic lighting (could be pixel based or gradients) that forms shadows dynamically when light is moved closer to another solid object.

Alternatives?

There aren't really any alternatives to this, but like i said above, the only way as of right now is to use gradients, and again, as i said above... it gets tedious sometimes and there's no shadow rendering as well..

@AurumByte AurumByte added the enhancement New feature or request label Aug 5, 2021
@lucasstarsz lucasstarsz added this to the FastJ Drawable System milestone Oct 26, 2021
@lucasstarsz
Copy link
Member

After re-reading this, I have to wonder, are you looking for something akin to a physics-based shadow and lighting system?
It does seem that way, at least in regards to dynamic shadows and lighting. This would first require a physics engine to be implemented, so we'll see about that.

@lucasstarsz lucasstarsz self-assigned this May 7, 2022
lucasstarsz added a commit to lucasstarsz/FastJ that referenced this issue May 7, 2022
lucasstarsz added a commit that referenced this issue May 7, 2022
@AurumByte
Copy link
Contributor Author

Not really. By dynamic lighting and shadows I mean lighting that can be moved around and the shadows formed by said lighting to also change based on the position of the lighting w.r.t the object, in game... whether or not this lighting can be subject to physics is a neat idea, but kinda unrelated to the lighting system in general

Hope this clears things up!

@lucasstarsz
Copy link
Member

Ah, that makes a lot more sense. Well, as Light2D progresses (as well as the soon-to-be inclusion of shear transformations) it may be possible that shadows and lighting can be handled in such a way. But for now, what exact implementation of dynamic lighting and shadows FastJ will have is undetermined. We shall see -- thanks for clearing up what you were asking ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants