Page 1 of 1

SkyBox Problem

Posted: Wed Nov 25, 2009 4:40 pm
by Stealthzone
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.

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
	}
}
Heres my water shader.

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
	}	
			}
Here's a screen shot. Notice the bottom shows a black square.
Image

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

Re: SkyBox Problem

Posted: Wed Nov 25, 2009 5:45 pm
by obsidian
ydnar's example map:

http://www.robotrenegade.com/q3map2/dow ... b_1337.zip

Re: SkyBox Problem

Posted: Wed Nov 25, 2009 7:08 pm
by Stealthzone
Very Nice!! Do you happen to know of the link explaining how to make the sky_mask? I need it to mimic a cludy stormy sky at night. Thanks bro. Really appreciate this!