sample-lights-and-shadows icon indicating copy to clipboard operation
sample-lights-and-shadows copied to clipboard

There is no release

Open Sayuris1 opened this issue 3 years ago • 7 comments
trafficstars

There is no specific release currently so we need to add the main branch as a dependency.

Sayuris1 avatar Feb 04 '22 11:02 Sayuris1

It's a sample, and not really intended as a resource to be dependent on.

JCash avatar Feb 04 '22 12:02 JCash

It's a sample, and not really intended as a resource to be dependent on.

This is true. But I also created in such a way that it is possible to use it as a dependency. So the suggestion by @Sayuris1 is valid I think.

britzl avatar Feb 04 '22 12:02 britzl

Then I think the naming is a misleading and we haven't discussed the support burden or the design of "sample" projects.

There are currently 9 "sample" projects, and afaik, we have never treated them as supported dependencies. https://github.com/orgs/defold/repositories?q=sample&type=all&language=&sort=

As for using it as a dependency, it's easy enough to link to any version, clicking the commit you want: E.g. the latest dependency

JCash avatar Feb 04 '22 12:02 JCash

I didn't know we can link the commit as a dependency. I think that solves the problem. Lights are pretty usable as a module currently.

Sayuris1 avatar Feb 05 '22 06:02 Sayuris1

I agree this is very usable as a module and would be beneficial in the asset portal and upgraded from "sample" status. That is assuming there isn't a better solution for this type of 2D lighting effect already there (let me know if there is). I think the ball sample should be included as well. It would look good on the asset portal page for new devs.

I am working on a fork of this since I found a typo/bug in the lights.lua (#11) and fixed it for a project I used this module in. I also found that there is an issue with rendering on AMD cards. Ref forum post: https://forum.defold.com/t/2d-lights-and-shadows-sample/68970/21?u=pabaucom

I am trying to fix this or come up with a workaround (I will also test with my intel iGPU). I would also like to cleanup/update the code. I merged changes from the current default.render_script into the lights.render_script.

Do you think this is time well spent for this at this point? Should I continue to submit PRs/issues for this repo?

paulbaucom avatar Jul 25 '23 01:07 paulbaucom

It appears I have fixed the shadow issue on my AMD card. I opened issue #12 where I propose a fix.

paulbaucom avatar Jul 25 '23 03:07 paulbaucom

I opened issue #12 where I propose a fix.

Please create a PR with this fix so that we can review and discuss it!

britzl avatar Jul 27 '23 07:07 britzl