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

Add ray casting with soft shadows #198

Open
Dovyski opened this issue Dec 2, 2013 · 6 comments
Open

Add ray casting with soft shadows #198

Dovyski opened this issue Dec 2, 2013 · 6 comments

Comments

@Dovyski
Copy link
Member

Dovyski commented Dec 2, 2013

I got this idea while seeing this amazing demo by @yadurajiv (Github repo here). It's an AS3 implementation of ray casting using soft shadows.

It would be outstanding to have something like that in Flixel, as a plugin or a core feature.

@IQAndreas
Copy link
Member

I can't remember if I saw this in Flixel or somewhere else, but does Flixel already have some sort of ray-casting code in the tilemaps?

@yadurajiv
Copy link

There was a game that had lasers and a ninja, I can't remember, he had
released some Ray tracing code which worked with flixel tile maps. I made
it look like shadows and stuff, hope to share that as soon as I get home -_-
On 02-Dec-2013 6:46 PM, "Andreas Renberg" notifications@github.com wrote:

I can't remember if I saw this in Flixel or somewhere else, but does
Flixel already have some sort of ray-casting code in the tilemaps?


Reply to this email directly or view it on GitHubhttps://github.com//issues/198#issuecomment-29616520
.

@WingEraser
Copy link

Bullet Time Ninja

@SeiferTim
Copy link

http://space.madsoftgames.com/ - I'd be happy to share the code for the lighting effect, although, I don't know how easy it would be to make it work better in Flixel...

@yadurajiv
Copy link

Yush! BTN had a ray tracer that worked with tilemaps! You can do stuff like this. :)

@Dovyski
Copy link
Member Author

Dovyski commented Dec 11, 2013

Thank you all for the contribution, guys! It seems this is a nice feature to add :)

I can't remember if I saw this in Flixel or somewhere else, but does Flixel already have some sort of ray-casting code in the tilemaps?

Yeah, it has, it's FlxTilemap::ray() (here's the function definition). It could be used to create the feature I suggested if we build on top of it.

@SeiferTim Thanks! Your game is really cool! :D The lighting effect is amazing, it's exactly what I had in mind when suggested this feature. If you are ok about sharing the code, we could try to make it work with Flixel (maybe combining it with @yadurajiv 's tilemap ray tracer).

@IQAndreas IQAndreas added this to the Future release milestone May 1, 2014
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

5 participants