Author Topic: Need help with skybox [Solved]  (Read 4344 times)

Piper802

  • Posts: 56
  • Turrets: +2/-2
Need help with skybox [Solved]
« on: April 06, 2009, 04:45:50 am »
Hello, this is my first time setting up a skybox, and it's not working. I've read numerous tutorials, done multiple searches, and came up with nothing. According to the tutorials/research I've done, here are the steps to setting up a skybox. (Should be relatively simple, right?)

Step 1.) Create a big box brush
Step 2.) Use the hollow function to hollow it
Step 3.) Give it a skybox shader
Step 4.) Compile and enjoy!

Well, that's what I did and rather than displaying a skybox, it just displays the void.

I think the problem is not creating the skybox itself... But rather the shader script and/or the directories of the skybox's textures. Here's (hopefully) all the required information anyone would need to help me fix my problem:

In the directory "C:\Program Files\Tremulous\base\scripts" (A.K.A the script directory) I have the shaderfile for my skybox. This file is named "arrakisday.shader". Here are "arrakisday.shader"s contents:

Code: [Select]
// Direction & elevation checked - Speaker

textures/skies/arrakisday
{
qer_editorimage env/arrakisday/arrakisday_ft.tga
surfaceparm sky
surfaceparm noimpact
surfaceparm nolightmap
q3map_globaltexture
q3map_lightsubdivide 256
q3map_surfacelight 300
q3map_sun 1 0.8 0.8 200 170 50
skyparms env/arrakisday/arrakisday - -
}
I'm not sure if the problem lies within the script itself, or if I have the directory names wrong, etc... But if I did know I wouldn't of started this topic :P.

----------------------------------------------------------------------------------------------

Also, in the same directory ("C:\Program Files\Tremulous\base\scripts") I have the file "shaderlist.txt". Here are it's contents:

Code: [Select]
arachnid2
atcs
karith
nexus6
niveus
transit
tremor
uncreation
common
common-trem
ix
moria
tim
titan
trem2
stone
displays
misc
plant_life
water
arrakisday

Again, I'm not sure if any of this is right...

---------------------------------------------------------------------------------------

Finally, In the directory "C:\Program Files\Tremulous\base\textures\skies\arrakisday" I have all the skybox textures (pictures)

Here is a list of all the files in this directory:
"arrakisday_bk.tga"
"arrakisday_dn.tga"
"arrakisday_ft.tga"
"arrakisday_rt.tga"
"arrakisday_lf.tga"
"arrakisday_up.tga"

-------------------------------------------------------------------------------------------------

WHEN IN GTKRADIANT:

While in GTKradiant the texture directory "skies" shows up on the list and has the shader "arrakisday" in it (This is the only texture that shows up in this directory). When I try to texture my skybox with this shader, compile, and run the map, all that shows up is the void; rather than the skybox I want.

----------------------------------------------------------------------------------------------------------

I hope that I provided enough information for someone to help me get this skybox working... Sorry if I sound like an utter newb; well because I am. And thanks in advanced for whoever helps me get it working :3.
« Last Edit: April 07, 2009, 02:46:33 am by Piper802 »

Knowitall66

  • Posts: 492
  • Turrets: +70/-52
Re: Need help with skybox
« Reply #1 on: April 06, 2009, 08:49:40 am »
Ah Hahaha! Eh herm, Sorry. You've list the wrong directories in the shader :P. If you put the skybox textures in textures/skies then tell it that!!
Change the corrisponding lines to this;
qer_editorimage textures/skies/arrakisday/arrakisday_ft.tga
skyparms textures/skies/arrakisday/arrakisday - -

Oh and on your apparent mapping technique don't let brushes overlap (Hollow tool is for [Insert Insult] people, is making 6 brushes that hard?), also ONLY texture the visible sides of a brush the rest should have caulk shader on them. (Though neither create big issues it is just good practice (Its the way pros do it))
« Last Edit: April 06, 2009, 08:52:45 am by Knowitall66 »

Piper802

  • Posts: 56
  • Turrets: +2/-2
Re: Need help with skybox
« Reply #2 on: April 06, 2009, 02:14:20 pm »
Ah Hahaha! Eh herm, Sorry. You've list the wrong directories in the shader :P. If you put the skybox textures in textures/skies then tell it that!!
Change the corrisponding lines to this;
qer_editorimage textures/skies/arrakisday/arrakisday_ft.tga
skyparms textures/skies/arrakisday/arrakisday - -

Oh and on your apparent mapping technique don't let brushes overlap (Hollow tool is for [Insert Insult] people, is making 6 brushes that hard?), also ONLY texture the visible sides of a brush the rest should have caulk shader on them. (Though neither create big issues it is just good practice (Its the way pros do it))

Okay, I changed the texture directories... And the image of the texture shows up in GTK radiant, but not in game. Is everything else in the right spot? Any other ideas?
Thanks for the tips btw :]

Kitashi

  • Posts: 69
  • Turrets: +8/-2
    • HGD
Re: Need help with skybox
« Reply #3 on: April 06, 2009, 08:45:14 pm »
The only thing I can think of (which is probably wrong) is that maybe it matters that the pictures aren't in a folder named "env" ?
Click the below userbars for more info about their associated programs.

Piper802

  • Posts: 56
  • Turrets: +2/-2
Re: Need help with skybox
« Reply #4 on: April 06, 2009, 11:46:39 pm »
Gah, nothing is working :[. How do you make the shader display the correct images for your skybox? All I get is the void ;/.

Nvm got it working. Thanks to this topic with the same problem:
http://tremulous.net/forum/index.php?topic=9636.0
« Last Edit: April 07, 2009, 02:48:24 am by Piper802 »