SkyBox Problem
Posted: Wed Nov 25, 2009 4:40 pm
I've been working on my ship map for some time now. I'm having a hard time getting the right skybox for it though. My problem is the dumb mirror effect when I'm looking over the side of the ship.
I'm using the sd_wurzburgsky. I'm using the alpha blend shaders to blend the water into the horizon. However I cant get the mirror effect to go away. Heres my sky shader.
Heres my water shader.
Here's a screen shot. Notice the bottom shows a black square.

I really only stuck here. I've tried everything. Made the water non-transparent. Nothing. Please help?
I'm using the sd_wurzburgsky. I'm using the alpha blend shaders to blend the water into the horizon. However I cant get the mirror effect to go away. Heres my sky shader.
Code: Select all
textures/re_skies/sd_wurzburgsky
{
nocompress
qer_editorimage textures/re_skies/sky_8.tga
q3map_lightimage textures/re_skies/n_blue2.tga
q3map_nofog
q3map_globaltexture
q3map_lightsubdivide 256
q3map_sun 0.130 0.080 0.020 20 165 5
q3map_sun 0.281 0.288 0.370 80 35 40
q3map_sun 0.281 0.288 0.370 15 215 60
q3map_sun 0.281 0.288 0.370 10 35 50
q3map_sun 0.281 0.288 0.370 10 35 45
q3map_sun 0.281 0.288 0.370 10 35 35
q3map_sun 0.281 0.288 0.370 10 35 30
q3map_sun 0.281 0.288 0.370 10 40 40
q3map_sun 0.281 0.288 0.370 10 45 40
q3map_sun 0.281 0.288 0.370 10 30 40
q3map_sun 0.281 0.288 0.370 10 25 40
q3map_surfacelight 30
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm sky
skyparms - 512 -
sunshader textures/re_skies/small_moon.tga
{
map textures/re_skies/wurzburg_clouds.tga
tcMod scale 2.5 2.5
tcMod scroll 0.003 -0.0015
rgbGen identityLighting
}
{
map textures/re_skies/ydnar_lightning.tga
blendFunc GL_SRC_ALPHA GL_ONE
rgbGen wave triangle -8 9 0 0.137
alphaGen wave noise -3 4 0 2.37
tcMod scale 3 3
tcMod scroll 0.003 -0.0015
}
{
clampmap textures/re_skies/wurzburg_fogmask.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
tcMod scale 0.956 0.956
tcMod transform 1 0 0 1 -1 -1
rgbGen identitylighting
}
}
Code: Select all
textures/szico_beach/oceanwater
{
qer_editorimage textures/szico_beach/water.jpg
q3map_nolightmap
qer_trans 1.00
q3map_material Water
surfaceparm nonsolid
surfaceparm trans
surfaceparm water
cull none
{
map textures/szico_beach/oceanwater.jpg
blendFunc GL_SRC_ALPHA GL_ONE
rgbGen identity
alphaGen vertex
tcMod scroll 0.00 0.02
}
}

I really only stuck here. I've tried everything. Made the water non-transparent. Nothing. Please help?