Wind Speed Display - Page 2

Wind Speed Display

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

Moderator: Moderators

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Wind Speed Display

Post by jK »

Jazcash wrote:Any ideas how to fix this artifacting?
Image
gl.Texture(":c:" ..filename)
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Wind Speed Display

Post by Jazcash »

jK wrote:gl.Texture(":c:" ..filename)
That worked a treat! I'll use this instead. I did take note of the texture options, I couldn't really find anywhere that explained them though so I decided to leave them alone.

'n' = nearest
'l' = linear
'a' = aniso
'i' = invert
'g' = greyed
'c' = clamped
'b' = border
Could somebody explain each one or link to a place that does?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Wind Speed Display

Post by jK »

Jazcash wrote:Could somebody explain each one or link to a place that does?
n,l,a are texture filters.
i,g,t,r are obv.
c & b define what happens if the texture coordinates exceed 0 or 1 by default it's repeat, use google to search for GL_CLAMP_TO_BORDER.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Wind Speed Display

Post by Jazcash »

jK wrote: c & b define what happens if the texture coordinates exceed 0 or 1 by default it's repeat, use google to search for GL_CLAMP_TO_BORDER.
oo I see! Big thanks, for the help here and in #lua.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Wind Speed Display

Post by Jazcash »

Updated!

Changelog

Code: Select all

- Now has GUI options that can be toggled via tweak-mode (Ctrl+F11)
- Has the option of being compared to solars or itself
klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: Wind Speed Display

Post by klapmongool »

With the transition to 96 I removed my 95 portable and installed 96 portable. Since then this widget does no longer remember it's position on screen. Every game it is back in the middle of the screen.
klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: Wind Speed Display

Post by klapmongool »

Problem solved itself it seems.
Post Reply

Return to “Lua Scripts”