Page 1 of 1
Dynamic projectile lights
Posted: 28 Jul 2012, 21:47
by Beherith
Faked of course. How well? You decide:
http://www.youtube.com/watch?v=H-nV05e5 ... e=youtu.be
(super WIP)
Can beamlaser projectile info be read from lua? Like its emit and end points? It currently only returns center and no vector or length

Re: Dynamic projectile lights
Posted: 28 Jul 2012, 23:02
by AF
Seems similar to this:
http://www.youtube.com/watch?v=0cyWK8hk ... tube_gdata
Otherwise nifty =] Looking forward to seeing more of this stuff
Re: Dynamic projectile lights
Posted: 28 Jul 2012, 23:15
by danil_kalina
Re: Dynamic projectile lights
Posted: 28 Jul 2012, 23:37
by Floris
danil_kalina, that lightign also affects the models, beherith's one doesnt, hence his version is gonna be much faster.
Usable, and good looking if it can be more subtle/transparant.
yea
Re: Dynamic projectile lights
Posted: 28 Jul 2012, 23:45
by Beherith
AF, danil. You posted Kloot's videos of his dynamic map/model lights. I know of them, and the reason I went for this dead simple approach to complement it, is that its faster and more simultaneous lights can be had. Kloot's look best with large lights, mine only look passable with small.
Re: Dynamic projectile lights
Posted: 28 Jul 2012, 23:57
by danil_kalina
cool stuff !!!
Is it possible to turn it ON/OFF in spring settings ?
These cool effects can be in HIGH/ULTRA settings
Re: Dynamic projectile lights
Posted: 29 Jul 2012, 21:49
by Beherith
The WIP but working code is attached here. Move pointlight.tga to luaui/images.
Re: Dynamic projectile lights
Posted: 31 Jul 2012, 14:37
by Beherith
Near final code is available on the BA SVN
http://imolarpg.dyndns.org/trac/balates ... order=name
All that is left is to not query all projectiles, only those in view.
Re: Dynamic projectile lights
Posted: 31 Jul 2012, 19:20
by knorke
nice, with some tweaking it will look very good i think.
Can beamlaser projectile info be read from lua? Like its emit and end points? It currently only returns center and no vector or length

you could use position of shooting unit and center of beam to get start point and direction. Bit stupid but as last resort?
Re: Dynamic projectile lights
Posted: 31 Jul 2012, 20:12
by Beherith
knorke wrote:nice, with some tweaking it will look very good i think.
Can beamlaser projectile info be read from lua? Like its emit and end points? It currently only returns center and no vector or length

you could use position of shooting unit and center of beam to get start point and direction. Bit stupid but as last resort?
Can a widget get who is shooting a projectile? I didnt see a method.
Re: Dynamic projectile lights
Posted: 31 Jul 2012, 22:44
by Forboding Angel
It looks really nice. Thanks behe
I do notice that it is far more obvious on things that don't have a cegtrail (unlike pretty much all evo units), but even with a cegtrail, It looks quite nice really. Adds that little subtle glow that should be there.
Great work!