Page 1 of 1

Lua Request

Posted: 30 Sep 2007, 19:24
by Sheekel
I've tweaked the blobshadow widget so that all units have basic shadows (very nice because I get >15 fps with real shadows enabled). The next best thing to happen would be for projectiles to cast a similar basic shadow.

Re: Lua Question

Posted: 30 Sep 2007, 19:57
by ZellSF
Sheekel wrote:Is it possible to have lua interact with projectiles?

I've tweaked the blobshadow widget so that all units have basic shadows
How and screenshot?

Posted: 30 Sep 2007, 21:41
by clericvash
Yes screenshot please.

Posted: 30 Sep 2007, 21:43
by Sheekel
The blobshadow widget gives all air units a basic blob shadow. All I did was change it so that the same shadow was for all units, not just the aircraft.


It certainly doesnt compare to the current shadow system, its just a grey blob below the units. But its better than nothing and doesnt seem to affect frame rate.

Posted: 30 Sep 2007, 21:50
by clericvash
That is why i am interested, it is still a leap for people who want shadows with a crap graphics card.

Posted: 30 Sep 2007, 22:01
by quantum
Lua can't interact with projectiles, last time I asked. It certainly can't in the current version of Spring.

Posted: 30 Sep 2007, 22:16
by jK
clericvash wrote:That is why i am interested, it is still a leap for people who want shadows with a crap graphics card.
It is bundled with the unit height prebuffering collection (here) and it is new ca svn.
(also my intention wasn't to replace the shadow system, blobshadows give only a much better way to see the height of aircraft that's why it is limited to it in my version)

Posted: 30 Sep 2007, 22:22
by Sheekel
One thing im interested in is resising them for the size of the unit. The teamplatter widget already does this, its just a matter of changing them from a huge platter to a small shadow.

Another cool thing would be to have multiple shadow images (the widget works by projecting a transparent texture below the unit) for different units. A circle for units, a square for buildings. For buildings it would be neat if you could somehow detect the angle of the sun from the .smf and offset all the building shadows a little bit in the opposite direction of the sun.

As you can see, its pretty basic. I run spring at 1024x768, all minimum settings except for ground decals. All boxes unchecked except of course for LUA.

Image