change siwa skybox error


(eiM) #1

hey,

I was inspired by some pic of an edited Siwa Oasis screenshot which looked like scenes of the film 300.
Now I want to make a pk3 file which changes the sky of Oasis.
Therefore I made a 300sky.shader file in scripts/300sky.shader (inside of pk3):

textures/skies_sd/sd_siwasky
{
qer_editorimage textures/eim/sky2bk.tga
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm sky
q3map_sun 0.75 0.70 0.6 120 220 45
q3map_surfacelight 25
skyparms textures/skies_sd/sd_siwasky - -
}

And I have put the 6image files for my skybox in the textures/skies_sd folder named sd_siwasky_XX.tga

But when I add all these into a pk3 and put it into the etmain folder I get the following error message in the console after loading oasis map:

WARNING: R_FindImageFile could not find ‘textures/skies_sd/siwa_mask.tga’ in shader ‘textures/skies_sd/sd_siwasky’
Shader textures/skies_sd/sd_siwasky has a stage with no image

Also the skybox is in orange/black quaders as if textures are missing.

What did I do wrong? I followed some tutorial of a german mapping page over here: http://s49.deinprovider.de/vbarticles.php?do=article&articleid=52

Thanks in advance,
eiM


(ailmanki) #2

well I never made a sky shader, but often when the shader fails to be loaded, the hole texture is crapped so you get black/orange one…

As you are overwriting an existing shader, sub parts of your shader may be another shader… where maybe that mask is searched for … dunno.
Try by creating ‘textures/skies_sd/siwa_mask.tga’ , try and error, maybe put a red point in it, then you know how that texture is used…

http://www.google.com/search?q=siwa_mask.tga


(th0rn3) #3

Make shure you gave your pk3 a name that starts with a higher letter than P, because pk3 are loaded in alphabetic order, so if your pk3 is below the original pak0, originals overlap your mod. Give it a name like z_name.pk3


(isbowhten) #4

good to know :open_mouth:


(eiM) #5

ye i named it zzz_300sky.pk3 but I will try to add some siwa_mask.tga file

Although the siwa_mask.tga file is in pak0.pk3 so it must be a shader failure… Is the skybox shader itself right? I followed a tutorial and no shader I found in ET’s shaderfiles looks similar to mine^^

edit: Ok I added the file into my pk3 and now the sky looks like always, as if nothing has changed at all. I dont get this, pls help me )=


(Berzerkr) #6

If you upload it, I will have look what’s wrong.


(eiM) #7

http://reveal.eicher.tv/zzz_300sky.pk3
thats the latest version with included siwa_mask.tga

thanks!


(Berzerkr) #8

That’s the only working solution I could figuring out.

Download: 300 Sky for Siwa Oasis

The good thing is, that other maps will not be affected by this mod.


(eiM) #9

mh thanks but its only the changed sky texture now, not a completely new skybox =/

if anyone has another idea on how to make it possible to use a different type of a skybox, using 6 picutres, like I want please give it a try =) because this looks OK and works but will not be good enough for what I want to do with it :slight_smile:


(Pray-N-Spray) #10

You mean just a normal skybox?


(eiM) #11

yes, I want to change the skybox used in Oasis (just a mask with a sunshader) into a real skybox that uses 6 pictures for (down,up,left,right,front,back) … Those are in my pk3 if someone wants to have a look but I do not know how to get this changed by a .shader file =)


(IndyJones) #12

i’m afraid that such change would require map recompile.


(eiM) #13

I doubt that it needs a recompile becasue you define the skybox of a map by the radiantimage of the shader. Now everything that needs to be changed is changing the existing shadercontent of textures/skies_sd/sd_siwasky to an other skyboxshader e.g. the one of fueldump & voilla it should work (imo)

Basically I do not know how to make a proper skybox shader thats why the shader itself could be wrong at all.

Tell me if my thoughts are completely wrong^^ If I remember right the skybox is defined by the radiantimage you put as texture on the brush(sky) and that radiantimage must have a shader behind it which I want to change to use some other sky instead of the one recently used.

Edit: Okay I got it working with the shader mentioned above. The only thing I changed is naming the shader itself z300sky.shader as it seemed to be loaded prior to the skies_sd.shader file and by that the usual oasis sky was loaded even if I put it into a pk3 called zzz_300sky.pk3
Strange but hey it works now, gotta update the skyboximages as they look bad after my edit and will post the final version here soon

Thanks for all your input!


(Berzerkr) #14

Don’t knewed yet that shaders are loaded in alphabetical order, too.
Thanks a lot for this find, makes it easier to mod with shaders!


(twt_thunder) #15

do ya mind if i use bezerkr’s pk3.file on our server?


(eiM) #16

no i dont mind… but its not really 300’like so I doubt you really wana use it

I got some major problems atm because 1st the edges of the skybox are visible (found a tutorial of nullskillz but couldnt get it (english)) and the quali is poor :frowning:


(twt_thunder) #17

doesn’t really matter if it’s not 300 for me :smiley: it will be for the terminator server of ours thanx a lot :smiley:


(Berzerkr) #18

I think this was released just in time:

66 Skyboxes


(shagileo) #19

Wow, nice !

Gonna take a peek inside those files. Thanks for sharing this with us :slight_smile:


(twt_thunder) #20

cool,thanx bezerkr!!