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.

Stupid Shader Code

Page: 1 of 1
 lauser
12-13-2003, 4:32 PM
#1
Help....help....help....Neither of these works even after packing it up and excuting sv_pure 0.

Wedge.....I made a skybox with TERRAGEN and followed your EXACT instructions but the shader code will NOT work. All I get is a blank GRID!!

I'm 90% POSITIVE I'm doing it right.......please point out any flaws in this shader. I have 2 versions hoping that one, if not the other, will work.

shader 1

textures/brelskies/brelsky_light
{
qer_editorimage textures/brelskies/brelblue.tga
q3map_lightsubdivide 512
surfaceparm sky
surfaceparm noimpact
surfaceparm nomarks
notc
q3map_nolightmap
skyParms textures/brelskies/brelsky 512-
}

///////////////////////////////////////////////////////////////////////////////////

shader 2


textures/brelskies/brelsky_light
{
qer_editorimage textures/brelskies/brelblue.tga
q3map_surfacelight 40
q3map_lightsubdivide 512
sun 1 0.85 0.78 100 -27 34
surfaceparm sky
surfaceparm noimpact
surfaceparm nomarks
notc

q3map_onlyvertexlighting
q3map_vlight
q3map_nolightmap
skyParms textures/brelskies/brelsky 512-
}

PS: I use Radiant 1.3.13 and this is a M/P map for JK2.

Many thanks in advance.:D
 WadeV1589
12-13-2003, 5:00 PM
#2
skyParms textures/brelskies/brelsky 512-
You missed a space so that line should be
skyParms textures/brelskies/brelsky 512 -

Also, not a fault, but surfacelight has been replaced with skyLight for more uniform lighting and there is a better sunlight code, delete the following
q3map_surfacelight 40
q3map_lightsubdivide 512
sun 1 0.85 0.78 100 -27 34
and use this instead, they must appear in this order...also that's an odd angle, -27 degrees below the horizon?
q3map_sunExt 1 0.85 0.78 100 -27 34 2 12
q3map_lightmapfilterradius 0 128
q3map_skylight 40 3

Finally, don't forget to add the .shader filename to shaderlist.txt or the compiler won't use the shader.
 lauser
12-13-2003, 7:40 PM
#3
Thanks Wade, yes that is an odd number but that is the ORIENTATION of the sun not it's height. I know it's strange but I put the value in from TERRAGEN, so it must be true.

And I do have the shaderlist updated so it's not that. Each JPEG took me roughly 40 min. to RENDER so all 6 took me 5 hours. I really don't wish to repeat that again....:(

Also when I look at examples of shaders from JA assets file the shaders for skies don't seem to have changed much. I'll try it this way and let you know. Thanks again Wade.
 WadeV1589
12-13-2003, 10:15 PM
#4
I was so not drunk when I wrote that :rolleyes:
Page: 1 of 1