Coder Social home page Coder Social logo

godot-lens-flare-plugin's People

Contributors

sisilicon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

godot-lens-flare-plugin's Issues

Flare strength becomes weaker if left to default

In Godot 3.2.3, I tweaked the lens flare settings while leaving the strength to 10.0 (its default value) to obtain this: #4 (comment)

Then I closed the project, and reopened it. I didnt touch anything, and this is how it looked when playing the game:
image

It looks a lot fainter. So I increase strength so 10.0001, and this is the result:
image

Then back to 10:
image

Then closed Godot, and reopened, which made it go back to this:
image

I know Godot is not saving default values (and because of this, not setting them), which means, a value of 10 will make the setter not called, despite the variable being 10. In the material, the initial value is 0.294 so it's actually gonna default to that, due to the setter not being called.
To fix this you either need to constantly keep default values the same as the material's initial values, or trigger all setters in ready.

Note: this applies to all parameters, not just strength.

Any hints on how it actually works?

I installed the plugin (excluding everything that is not under addons/ because I dont want to clutter my project), added the LensFlare to my scene, and nothing shows up in editor. When I play the game, I see no lens flare either.

image

Note: I add my directional light and camera at runtime, if case it matters. I wonder how the plugin knows where the sun is, there is no code searching for it and no parameter as far as I can see. It also produces no errors so I have no idea if I'm missing something important.

If I create an empty project, install the plugin without excluding anything and open the LensFlare.tscn demo scene, I see something.
But if I just create an empty new scene and create a LensFlare, nothing shows up as well, so I wonder what's required to make this work?

Best I could get so far doesnt look good
image

Shouldn't the halos be circular, not elliptical?

Hey! This is amazing, and I'd love to understand better how it works!

That being said - shouldn't the halos be following a circle rather than an ellipse?
Unless the camera is using an anamorphic lens, the optic elements are all circular, so the effect should not be squeezed to display aspect ratio, it should be cropped on the top and bottom.

Could there be a control added to change that?

I guess anamorphic lens flares are a different beast alltogether :)

The path is broken

Your directory
"addons/SIsilicon.vfx.lens flare/"
is referenced in files as "addons/SIsilicon.vfx.lensflare/"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.