Jump to content

Home

Custom Skies


superdude201

Recommended Posts

create your own directory to put your sky images in.

 

then set your shader to point to that directory instead, name the sky *skyname_light* if you have a sky that emits light.

 

qer_editorimage textures/skies/sky.jpg

 

add this line to your shader. this makes it so the editor sees this image as the shader's image so you can see what it looks like. the sky.jpg is one that gtk uses default for certain skies. you can use whatever image you want so long as it meets the power of 2 standards. :D

Link to comment
Share on other sites

edit the shader in notepad... *pulls up example*

 

textures/volrath/volrath_light

{

// q3map_surfacelight 5

 

qer_editorimage textures/volrath/volrath_bk

sun 0 0.501961 0.752941 50 90 90

surfaceparm sky

surfaceparm noimpact

surfaceparm nomarks

surfaceparm metalsteps

q3map_nolightmap

q3map_novertexshadows

skyParms textures/volrath/volrath 512 -

}

 

that's kinda what your sky shader needs to look like. you can take out all the sun, surfacelight, and _light name if you don't need it to emit light, but all the other stuff is pretty much required for a skybox. cept for metalsteps, i added that cuz the skybox is all watery so on the offchance someone would get on it, it would sound splashy :p

 

just make a new .shader file and open it in notepad and change paths accordingly based on my example for your sky images. then when you save your shader file, say as mysky.shader, add it's name to the shaderlist.txt.

 

then you should be able to select it in editor under your directory name. select the image that is the shader (the one with the white box around it) for all the sides of your skybox. the sky should line up and use the correct images for your sides, top, and bottom, if you made it correctly.

Link to comment
Share on other sites

Well in my shader it says this :

 

textures/(tatooinetown)/(tatooinetownsky)

 

{

 

qer_editorimage textures/skies/sky.jpg

 

surfaceparm sky

 

surfaceparm noimpact

 

surfaceparm nomarks

 

notc

 

q3map_nolightmap

 

skyParms textures/(tatooinetown)/sky 512 -

 

}

 

Is that right or is there something missing?

Link to comment
Share on other sites

Anakin, JK2 will not recognize folders with special characters like ( and ) or { and }.

 

First off superdude, kill the parentheses. don't use special characters in your folders.

 

be sure you add the name of the shader to the shaderlist.txt or else it will not work.

 

 

edit: big typo!

Link to comment
Share on other sites

the shader goes in your shaders folder.

for the _ft _bk _lt etc... you need to make a folder in your textures folder called

tatooinetown

and put all 6 .jpgs in there.

then, when you load up radiant, you should have a new folder under the textures menu:

tatooinetown

it should have inside:

the 6 .jpgs and a shader called tatooinetownsky

hope that helps.

Link to comment
Share on other sites

It says this in that white box when i load it up:

 

Loaded 1 shaders and created default shader for 5 orphan textures.

 

Edit: I changed something cause i thought i had done it wrong and it came up with this in the white box

 

Loaded 0 shaders and created default shader for 6 orphan textures.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...