Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

sky shaders

Page: 1 of 1
 JeeMonkey
03-05-2005, 11:25 PM
#1
if i have found a sky texture that comes in 6 pieces.....up/front/right/left/back/down.......is there anyway to turn that into a sky shader using the same textures?
 wedge2211
03-06-2005, 2:16 PM
#2
Look at skies.shader and check out how sky textures are referred to in those codes. It's pretty simple, you just type out the name of the sky texture without the _ft, _rt, _dn, etc tags. You can use a set of textures in as many shaders as you want.
 JeeMonkey
03-07-2005, 4:16 AM
#3
that would work if i wanted to make one texture into a sky shader.....but what i have is 6 sky shaders one for each side of the sky box.....and i want to turn those 6 sky textures into a single sky shader.........or are you saying i should make 6 separate sky shaders, one for each of my sky textures???
 wedge2211
03-07-2005, 11:24 AM
#4
Absolutely not. Reread what I wrote more carefully, then read this post. Let's say you have 6 images (you must remember the distinction between textures or images, which are static jpg or tga files, and shaders, the special-effects things you define in a shader file--you can't have multiple shaders on the faces of a skybox) you have for your skybox are called yoursky_ft, yoursky_bk, yoursky_up, yoursky_dn, yoursky_lf, and yoursky_rt. A basic sky shader using these images looks like this:

textures/yourmap/sky
{
qer_editorimage textures/skies/sky.tga
surfaceparm sky
surfaceparm noimpact
surfaceparm nomarks
notc
q3map_nolightmap
skyParms textures/yourmap/yoursky 512 -
}


The bit underlined is where you specify your sky images. Provide the image path from the base folder, minus the file extension and the _ft, _bk, etc suffixes (as I wrote above).
 JeeMonkey
03-07-2005, 9:11 PM
#5
and this will encorporate all six (6) sky images into one sky shader???
 wedge2211
03-07-2005, 10:30 PM
#6
Originally posted by wedge2211
Let's say you have 6 images ... for your skybox called yoursky_ft, yoursky_bk, yoursky_up, yoursky_dn, yoursky_lf, and yoursky_rt. A basic sky shader using these images looks like this: ...
YES.
Page: 1 of 1