Page 5 of 6

Re: Ground Fog!, without shaders.

Posted: 20 Jul 2008, 15:44
by NOiZE
Well i had the view distant extremly high for nice screenshots.

Re: Ground Fog!, without shaders.

Posted: 20 Jul 2008, 19:54
by NOiZE
I had a idea,

Perhaps you can make it so we can define a texture too? That would be awesome ===)

Re: Ground Fog!, without shaders.

Posted: 21 Jul 2008, 03:56
by Warlord Zsinj
Yeah, that'd be brilliant. At the very least if we could define the colour...

Re: Ground Fog!, without shaders.

Posted: 21 Jul 2008, 17:18
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!

Re: Ground Fog!, without shaders.

Posted: 21 Jul 2008, 18:46
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 :|

Re: Ground Fog!, without shaders.

Posted: 21 Jul 2008, 18:52
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! ;)

Re: Ground Fog!, without shaders.

Posted: 21 Jul 2008, 21:40
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

Re: Ground Fog!, without shaders.

Posted: 21 Jul 2008, 21:54
by Hoi
what happend to the picture, lol :shock:

Re: Ground Fog!, without shaders.

Posted: 21 Jul 2008, 22:40
by Argh
Whoops. There ya go.

Re: Ground Fog!, without shaders.

Posted: 22 Jul 2008, 08:15
by Hoi
Argh wrote:Whoops. There ya go.
better:)
i still wonder what happend :P

Re: Ground Fog!, without shaders.

Posted: 22 Jul 2008, 12:59
by user
I once made a configuration for this gadget that looks like the fog in this image:

Image

Re: Ground Fog!, without shaders.

Posted: 23 Jul 2008, 07:25
by Noruas
I killed a man once too...

Re: Ground Fog!, without shaders.

Posted: 23 Jul 2008, 08:10
by trepan
I once killed two men...

Re: Ground Fog!, without shaders.

Posted: 23 Jul 2008, 09:21
by TheFatController
I once killed math.huge men...

Re: Ground Fog!, without shaders.

Posted: 22 Feb 2009, 21:39
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.

Re: Ground Fog!, without shaders.

Posted: 14 Mar 2009, 21:15
by slogic
Where can i get a sample of FogTex.tga? I think filename should be camera_ground_fog.lua :)

Re: Ground Fog!, without shaders.

Posted: 16 Mar 2009, 01:19
by Acidd_UK
NECCCRROOOO!!!!

Re: Ground Fog!, without shaders.

Posted: 16 Mar 2009, 04:48
by smoth
necro usually requires about a year to be dead enough for zombification.

Re: Ground Fog!, without shaders.

Posted: 16 Mar 2009, 05:03
by zwzsg
Anyway, thanks for the bump, none of my questions were answered.

Re: Ground Fog!, without shaders.

Posted: 16 Mar 2009, 16:13
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