Ground Fog!, without shaders. - Page 5

Ground Fog!, without shaders.

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

Moderator: Moderators

User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Re: Ground Fog!, without shaders.

Post by NOiZE »

Well i had the view distant extremly high for nice screenshots.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Re: Ground Fog!, without shaders.

Post by NOiZE »

I had a idea,

Perhaps you can make it so we can define a texture too? That would be awesome ===)
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Ground Fog!, without shaders.

Post by Warlord Zsinj »

Yeah, that'd be brilliant. At the very least if we could define the colour...
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Re: Ground Fog!, without shaders.

Post by NOiZE »

Warlord Zsinj wrote:Yeah, that'd be brilliant. At the very least if we could define the colour...

we can define the color!
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Ground Fog!, without shaders.

Post by Argh »

And you can use a texture, with like... two lines of code, to define the blending method and the texture.

The real problem with this is that it renders very slowly if you use enough layers for a smooth gradient, due to clipping and blending layers. I dunno whether there's a solution for that- maybe build a display list where intersections between hill edges and the fog are adjusted properly, and then render the fog in sectors, so that you're only rendering the fog within the POV? It'd result in a lot higher polycount, but I am thinking that's not the problem, it's all of the clipping and z-ordering.

But the settings I used on the World Builder demo map, for example, ran very slowly on older hardware- blending is apparently very expensive. I don't have a solution for that at present :|
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Re: Ground Fog!, without shaders.

Post by NOiZE »

Argh wrote:And you can use a texture, with like... two lines of code, to define the blending method and the texture.
Can u plz add them, its only 2 lines of code! ;)
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Ground Fog!, without shaders.

Post by Argh »

Here ya go. Turned out to be a little more than two lines, I forgot about having to set the texture coordinates, etc., and I cleaned up a few things.

Image
Attachments
unit_ground_fog.lua
(5.64 KiB) Downloaded 67 times
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Ground Fog!, without shaders.

Post by Hoi »

what happend to the picture, lol :shock:
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Ground Fog!, without shaders.

Post by Argh »

Whoops. There ya go.
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Ground Fog!, without shaders.

Post by Hoi »

Argh wrote:Whoops. There ya go.
better:)
i still wonder what happend :P
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Ground Fog!, without shaders.

Post by user »

I once made a configuration for this gadget that looks like the fog in this image:

Image
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Re: Ground Fog!, without shaders.

Post by Noruas »

I killed a man once too...
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Re: Ground Fog!, without shaders.

Post by trepan »

I once killed two men...
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Ground Fog!, without shaders.

Post by TheFatController »

I once killed math.huge men...
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Ground Fog!, without shaders.

Post by zwzsg »

I tried the widget in last user attachment (this post), but I have a problem with the fog tint changing with tiny camera angle change:

Image Image

I don't even know if this the last widget as it is very unclear where to get the latest version of the ground fog widget.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Ground Fog!, without shaders.

Post by slogic »

Where can i get a sample of FogTex.tga? I think filename should be camera_ground_fog.lua :)
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: Ground Fog!, without shaders.

Post by Acidd_UK »

NECCCRROOOO!!!!
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Ground Fog!, without shaders.

Post by smoth »

necro usually requires about a year to be dead enough for zombification.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Ground Fog!, without shaders.

Post by zwzsg »

Anyway, thanks for the bump, none of my questions were answered.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Ground Fog!, without shaders.

Post by slogic »

Acidd_UK wrote:NECCCRROOOO!!!!
If people release here widgets a thread can not be considered as necro. It is a support thread for current widget until forum administrator(s) decide to make s separate subforum for released widgets.
zwzsg wrote:none of my questions were answered.
+1
Post Reply

Return to “Lua Scripts”