Alternate metal view

Alternate metal view

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

Moderator: Moderators

Post Reply
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Alternate metal view

Post by zwzsg »

I coded a widget to replace the metal view. Initially I made it because of how in the Cursed the metal view is obscured by the ground decal. It takes some seconds to calculate it whenever you load a map or enable the widget. It hides completly the ground, and doesn't have any shading, which makes it abit flat. That could be corrected though. I'm not sure this widget has really some use, but I thought I'd share anyway.

Regular Metal View:

Image


My Alternate Metal View Widget:

Image

You can notice I also made it more precise toward the extremities of the metal spectrum (by using a power of three).
Attachments
gui_metal_view_1.2.lua
(3.06 KiB) Downloaded 15 times
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Alternate metal view

Post by MidKnight »

Please post a screenshot of the widget on a spot (as opposed to cloud) metalmap?

Also: Nice job! Maybe you and CarRepairer can work together and prettify/modernify metal view? Please? :P
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Alternate metal view

Post by CarRepairer »

I already did and no one cares (easymetal).
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Alternate metal view

Post by zwzsg »

MidKnight wrote:Please post a screenshot of the widget on a spot (as opposed to cloud) metalmap?
It's even more useless there:

Image

It's not fit for spot metal distributions because it's too imprecise. Already with the sample period used, it takes fair amount of memory and processing power to generate the color map, so using the same precision as the actual metal map would choke my computer.

CarRepairer wrote:I already did and no one cares (easymetal).
Oh. Sorry didn't know. I wonder what does easy metal exactly do. Where do I find easymetal? I just tried CA, SpringInfo widget database, and Spring Downloader, couldn't find it.
Post Reply

Return to “Lua Scripts”