Jump to content

Can't make custom skybox work


Go to solution Solved by NAB622,

Recommended Posts

Posted

Hey everyone, I made 6 skybox textures and a shader like several tutorials on the internet said. Here's my shader: 

textures/skies/shsky
{
	qer_editorimage	textures/skies/sky.tga
	surfaceparm	sky
	surfaceparm	noimpact
	surfaceparm	nomarks
	notc
	q3map_nolightmap
	skyParms	textures/skies/shsky 1024 -
}
}

Sadly the skybox doesn't work and when i load the map i just get the missing grey-white texture instead. The skybox textures size is 1024x1024 so that shouldn't be a problem. I also tried changing the shader: tried changing 'sky.tga' to the name of one of my skybox textures; tried lowering the skyParms value; tried changing 'sky.tga' to 'sky.jpg'. So far nothing has worked. Anyone know what the problem could be?

  • Solution
Posted

Let's start with the obvious, it looks like you have a tailing brace at the end of your shader. I'd start by removing that.

2 minutes ago, jo_the_rooster said:
textures/skies/shsky 1024 -
}
}  <--
Posted
11 minutes ago, NAB622 said:

Let's start with the obvious, it looks like you have a tailing brace at the end of your shader. I'd start by removing that.

This is very weird because i thought this is how you 'close' the shader and it worked for other shaders i made so i didn't really pay attention to this. But yeah i fixed that and it worked. Thanks!

NAB622 likes this
Posted

The reason it works on other shaders is probably because there is a map { } section in them. Skyboxes do not have one, therefore just one brace is needed to close the shader.

jo_the_rooster likes this

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...