FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   SoF Mapping, Modeling and Skinning (http://forums.filefront.com/sof-mapping-modeling-skinning-3/)
-   -   fog help (http://forums.filefront.com/sof-mapping-modeling-skinning/273665-fog-help.html)

ik_chronic August 24th, 2006 10:05 PM

fog help
 
1 Attachment(s)
Ok here is my problem ive added fog to my map and it has black patches that show up threw the fog. Really weird and i dont understand it, Here is my shader.

textures/chronicle_beach/grey_fog
{
qer_editorimage textures/tools/editor_images/qer_fogblack
surfaceparm nonsolid
surfaceparm fog
fogparms ( 0.45 0.45 0.45 ) 2000
}

And here is a screenshot

ik_chronic August 24th, 2006 10:49 PM

Re: fog help
 
Ok ive figured out that if i use a brush for my fog it doesnt do this. but if i use "key = fog" "value = textures/chronicle_beach/grey_fog"
it does any ideas why?

awesom-o August 25th, 2006 12:08 AM

Re: fog help
 
did u add the texture to your shaderlist.txt?
that might be the problem, because your radiant might not have added the info to the compiler (info beeing : surfaceparm fog)

also you might want to change
fogparms ( 0.45 0.45 0.45 ) 2000
to
fogparms ( 0.45 0.45 0.45 ) 2000.0
I'm not sure why but in fogs.shader they do that to all fogs

ik_chronic August 25th, 2006 07:04 AM

Re: fog help
 
I added to shader text. But i will try adding the .0 see if that changes anything.

ik_chronic August 25th, 2006 11:28 PM

Re: fog help
 
Unforchinatly it did not help m8. Any other ideas?

LeTHaL BaNaNa August 26th, 2006 02:13 AM

Re: fog help
 
I can't see your picture, mind hosting it on imageshack or something>?

ik_chronic August 26th, 2006 05:23 PM

Re: fog help
 
http://www.affiliate-pics.com/0/chronic_help-1-th.jpg

Can you see tihs one Lb?

LeTHaL BaNaNa August 27th, 2006 01:57 AM

Re: fog help
 
Yes I can see it. I don't think it has to do with the shader of you fog, but with the shader of the texture on the patches or with the patches. If you try to replace them with normal brushes to test, I think they won't show up as black.

I don't know what's causing it though, probably the shader on the patches.

ik_chronic August 27th, 2006 02:05 AM

Re: fog help
 
The patches are my terrain and here is my terrain shader. I think you mite have somethen there Lethal banana but im not shur what part of it mite cause it.

textures/chronicle_beach/terrain_0
{
q3map_lightmapsamplesize 32
q3map_material sand
q3map_lightmapmergable
q3map_lightmapaxis z
q3map_texturesize 128 128
q3map_tcGen ivector ( 124 0 0 ) ( 0 252 0 )
{
map textures/jordan/sand.jpg
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}
textures/chronicle_beach/terrain_1
{
q3map_lightmapsamplesize 32
q3map_material rock
q3map_lightmapmergable
q3map_lightmapaxis z
q3map_texturesize 128 128
q3map_tcGen ivector ( 124 0 0 ) ( 0 252 0 )
{
map textures/colombia/new_big_rock.jpg
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}
textures/chronicle_beach/terrain_0to1
{
q3map_lightmapsamplesize 32
q3map_material rock
q3map_lightmapmergable
q3map_lightmapaxis z
q3map_texturesize 128 128
q3map_tcGen ivector ( 124 0 0 ) ( 0 252 0 )

{
map textures/jordan/sand.jpg
}
{
map textures/colombia/new_big_rock.jpg
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
tcGen lightmap
}
}
textures/chronicle_beach/terrain.vertex
{
{
map textures/jordan/sand.jpg
rgbGen vertex
}
}

awesom-o August 27th, 2006 03:27 AM

Re: fog help
 
maybe (maybe a stupid idea) fogs belong in the fogs map =p

textures/chronicle_beach/grey_fog
=>
textures/fogs/grey_fog

ik_chronic August 27th, 2006 10:22 AM

Re: fog help
 
I done understand awesom-o.

wee_menphis August 27th, 2006 01:30 PM

Re: fog help
 
Its more likely a VISing and lighting problem.

Does those parts of the landscape have good ilumination from lights?

Fogs were always troublesome, if your fog is added using a brush then this will also cause problems.

awesom-o August 27th, 2006 02:24 PM

Re: fog help
 
try to add the fog to the fogs.shader
all fogs in that shader-file are working :p

LeTHaL BaNaNa August 27th, 2006 02:30 PM

Re: fog help
 
Quote:

Originally Posted by awesom-o
try to add the fog to the fogs.shader
all fogs in that shader-file are working :p

His fog is working too, and it doesn't matter if you add it to the fogs.shader or if you make a kit.shader.

ik_chronic August 28th, 2006 12:03 AM

Re: fog help
 
It was caused by this part of the shader.

textures/chronicle_beach/terrain_0to1
{
q3map_lightmapsamplesize 32
q3map_material rock
q3map_lightmapmergable
q3map_lightmapaxis z
q3map_texturesize 128 128
q3map_tcGen ivector ( 124 0 0 ) ( 0 252 0 )

but i did not find a fix, so i just made it 1 texture.

LeTHaL BaNaNa August 28th, 2006 12:21 AM

Re: fog help
 
Good thing you found what caused it though :)


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.