I need help with my skybox shader... -1 reply

Please wait...

heath1992

A well-oiled toaster oven

50 XP

26th January 2007

0 Uploads

298 Posts

0 Threads

#1 12 years ago

I can't figure out what I'm doing wrong with my skybox shader. Here's the .shader file

textures/myskies/mysky { qer_editorimage textures/myskies/sky surfaceparm nomarks surfaceparm sky surfaceparm noimpact surfaceparm nodlight notc q3map_nolightmap skyParms textures/myskies/mysky 1024 - }

I cover the walls where the skybox should be with my editor image. When I compile the map and load it in the game, the editor image (textures/myskies/sky.jpg, its 256x256) is showing up instead of my skybox pics (textures/myskies/mysky_up.jpg, mysky_rt.jpg, etc., they're 1024x1024). Also, you can make marks on the 'skybox', shadows appear on the 'skybox', and the 'skybox' is not show at an infinite distance away. So, the skybox is pretty much not working altogether. I have no clue how to fix this, please help!!!




heath1992

A well-oiled toaster oven

50 XP

26th January 2007

0 Uploads

298 Posts

0 Threads

#2 12 years ago

hehe, I feel dumb. I forgot to add my shader to shaderlist.txt (and I think I fixed some other things, I forget...). I added my shader and it works now, yay!




Ayala

Lurker

50 XP

3rd August 2005

0 Uploads

93 Posts

0 Threads

#3 12 years ago

Haha! Glad you found the error. I couldn't figure out what was wrong with the shader and thought I was missing something.




Jedi_Mediator

The Force is my Guide

50 XP

4th August 2005

0 Uploads

280 Posts

0 Threads

#4 12 years ago

Yeah...i always make the shaderlist.txt mistake. fixed it recently :)




Jorka

Take ya squabbles away

50 XP

12th March 2007

0 Uploads

68 Posts

0 Threads

#5 12 years ago

Bleh me and shaders dont get along:uhm:




Guest

I didn't make it!

0 XP

 
#6 12 years ago

Me and shaders get along.

Untextured water FTW!




Isla Kamamee

Awkward? You bet!

50 XP

28th August 2006

0 Uploads

1,179 Posts

0 Threads

#7 12 years ago

Same with me. WHEEEEEEE!!!!! UNTEXTURED WATER PWNS UR FACE IN. Well, shaders can be really irritating, but theyre logical, so when u get a problem, you can solve it by thinking it through. Go in and think about what each line means, then read the next one, like the sky shader is saying, ok, set the directory to look in and place shader in -here- then starts to give commands to make the shader load a texture for the editor to use, then gives it deform and other kinds of overall commands, then specifies the texture you wanna use for the first stage, the tcmods and blendsfuncs to create transparency, then any other stages, then ends the commands, then ends teh shader. But that wont tell u u didnt put the shaders name into shaderlist. :nodding: