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

Lighting #3

Open
grapereader opened this issue Jun 14, 2015 · 4 comments
Open

Lighting #3

grapereader opened this issue Jun 14, 2015 · 4 comments

Comments

@grapereader
Copy link
Owner

It looks like Pixi should be on the verge of introducing a lighting system soon, so I might not have to write one after all.

pixijs/pixijs#1809

I'll play it by ear I guess. Depends on how long they take.

Making this issue so I can track both my progress and theirs.

@grapereader
Copy link
Owner Author

Oh look, they already have work on it.

https://github.com/pixijs/pixi-lights

No commits since 20 days ago though. :/

@grapereader
Copy link
Owner Author

Found some normal mapping software; it's supposed to be an open source alternative to CrazyBump I guess...
https://github.com/kmkolasinski/AwesomeBump

@grapereader
Copy link
Owner Author

Didn't use pixi-lights. We get our own in-house lighting solution huzzah.

Only thing left is the walls. Which will be a little tricky since they technically aren't lit under the current system. They might need their own shaders...

@grapereader
Copy link
Owner Author

Walls are now lit and lighting should be pretty much done.

Only thing left to do is optimize the shit out of it. The getIntersections method for creating the shadow polygon is very slow, taking upwards of 20ms every frame. Also, the lighting limit right now would be around 4-5 lights, which is abysmal, since a bunch of uniforms are used to send the polygon to the GPU.

I'll probably have to write a deferred lighting system so that we can have more lights. Those are pretty complicated and I have no idea how to interface it with Pixi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant