Lua Request

Lua Request

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Lua Request

Post 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.
Last edited by Sheekel on 01 Oct 2007, 16:54, edited 1 time in total.
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: Lua Question

Post 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?
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

Yes screenshot please.
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Post 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.
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

That is why i am interested, it is still a leap for people who want shadows with a crap graphics card.
User avatar
quantum
Posts: 590
Joined: 19 Sep 2006, 22:48

Post by quantum »

Lua can't interact with projectiles, last time I asked. It certainly can't in the current version of Spring.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Post 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)
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Post 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
Post Reply

Return to “Lua Scripts”