Yes I believe a Teleglitch-like viewcone can be achieved with a subtractive shadow casting algorithm as the starting point.
Search found 11 matches
- Thu Feb 06, 2014 10:47 am
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
- Thu Feb 06, 2014 7:16 am
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
Re: Lighting and Shadow System
Yip the subtractive approach has far to many limitations to be used as a multi light realistic shadow implementation. But it does work well for simple shadow scenarios. http://www.saltgames.com/wp-content/uploads/2009/11/multipleLights3.png credit: http://forums.tigsource.com/index.php?topic=8803.0 ...
- Tue Feb 04, 2014 8:29 am
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
Re: Lighting and Shadow System
I'll start porting the code you linked too, let's compare results once we are done :P Hey yesterday was slow going, was busy with freelance work. This is how far I am, shaders are ported but the rest needs some tinkering. I think I won't go further with this method as it is purely for shadows. Addi...
- Mon Feb 03, 2014 7:56 am
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
Re: Lighting and Shadow System
I have updated my subtractive method with a smooth radial gradient light shader https://gist.github.com/seanpackham/8727943 https://lh4.googleusercontent.com/-oi-X1f6un-M/Uu9K2CX8S9I/AAAAAAAABRw/6PGT2uQUIvw/w656-h518-no/love2d-box2d-top-down-door-smooth-lighting_ill-be-back-in-5-minues_day5_1_201402...
- Mon Feb 03, 2014 7:36 am
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
Re: Lighting and Shadow System
Looks really awesome! I have a few questions though, I am going to start working on a game where I would like to have multiple light sources just for aesthetics. But only the light, not that it casts shadows on objects etc. How do you think the best way of accomplishing this would be? Hey I modifie...
- Mon Feb 03, 2014 7:05 am
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
Re: Lighting and Shadow System
That's a similar aproach to this one . I'm actually trying to reproduce that effect... Me too, I'll probably start porting this Java version as the process is explained really well and the code is easy to run. I've never seen a version of this implementation with the objects lit though. How far are...
- Sun Feb 02, 2014 1:18 pm
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
Re: Complete Lighting and Shadow System!
Thanks, it's subtractive. I see the additive approach will have more realistic results. Thanks for the link, I'll try and implement it. I also found this approach http://www.catalinzima.com/2010/07/my-t ... d-shadows/
- Sun Feb 02, 2014 6:06 am
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
Re: Complete Lighting and Shadow System!
Thanks for the encouragementverilog wrote:Hi argh!
Just wanted to say that your prototype is looking sweet, man! Thanks for the links and keep it up!
- Sun Feb 02, 2014 6:04 am
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
Re: Complete Lighting and Shadow System!
Shadows should stop when they find another object, in your code shadows just keep on going until they hit a wall. Yip to be more realistic they should stop when hitting objects. The problem is the performance plummets if you need to think of each shadow behaving like a light, potentially being spli...
- Sat Feb 01, 2014 6:55 pm
- Forum: Libraries and Tools
- Topic: Lighting and Shadow System
- Replies: 41
- Views: 20437
Re: Need Help with Almost Complete Lighting and Shadow Syste
Updated 2014/02/03 Removed embeeded code and added link to gist. Thanks to the reddit user http://www.reddit.com/user/naughty who answered my question http://www.reddit.com/r/love2d/comments/1wmr8w/need_help_with_almost_complete_lighting_and/ with an algorithm and updated code sample, I now have a ...