Pages: [1]
  Print  
Author Topic: Sky Texture problems  (Read 11969 times)
baronofhell
Lesser Nub


Cakes 0
Posts: 103



« on: January 12, 2007, 08:42:09 AM »

I tried to load a skybox and I dont see the texture on the box.



This is what my shader file looks like (skyboxtest.shader).

Code:
textures/skyboxtest/skyboxtest_skybox
{
qer_editorimage textures/skyboxtest/skybox1.tga //blue square
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm sky
q3map_sun .5 .37 .19 155 -60 25
q3map_surfacelight 130

skyparms env/skyboxtest/skyboxtestsky - -
}

I have added it to shaders.list

My images are env/skyboxtest/



Can somebody help?

Thanks
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #1 on: January 12, 2007, 01:52:13 PM »

maybe its a problem with your jpegs, the engine will not load jpegs that are saved with progressive encoding.
Logged

baronofhell
Lesser Nub


Cakes 0
Posts: 103



« Reply #2 on: January 12, 2007, 03:04:48 PM »

Converted the jpeg files to tga. Still doesnt work Sad
Logged
baronofhell
Lesser Nub


Cakes 0
Posts: 103



« Reply #3 on: January 12, 2007, 04:05:03 PM »

Also, converted the jpegs to non-progressive jpeg and tried the sky box. Still the same problem. Any ideas?
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #4 on: January 12, 2007, 04:27:43 PM »

Are the jpegs in the /env/skyboxtest/ directory?
Logged

baronofhell
Lesser Nub


Cakes 0
Posts: 103



« Reply #5 on: January 12, 2007, 04:52:29 PM »

Yes they are.
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #6 on: January 12, 2007, 07:28:01 PM »

have you tried this:

Code:
textures/skyboxtest/skyboxtest_skybox
{
qer_editorimage textures/skyboxtest/skybox1.tga
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm sky
q3map_sun .5 .37 .19 155 60 25
q3map_surfacelight 130

skyparms env/skyboxtestsky - -
}

Logged

baronofhell
Lesser Nub


Cakes 0
Posts: 103



« Reply #7 on: January 14, 2007, 05:33:01 PM »

once I changed the env path, the box was dark, I didnt even get the default sky texture. Sad
Logged
baronofhell
Lesser Nub


Cakes 0
Posts: 103



« Reply #8 on: January 15, 2007, 11:21:59 AM »



I also get black patches on my terrain.
Logged
baronofhell
Lesser Nub


Cakes 0
Posts: 103



« Reply #9 on: January 15, 2007, 11:38:05 AM »



I also get black patches on my terrain.


I used bspc from shaderlab to create the bsp file and it removed the black patches.  Smiley

I still am not able to get the skybox to work Sad
Logged
dmn_clown
Posts a lot
*

Cakes 1
Posts: 1324


« Reply #10 on: January 15, 2007, 07:49:25 PM »

Try increasing the angle of the sun, currently you have it set at 60 degrees, try 90.
Logged

baronofhell
Lesser Nub


Cakes 0
Posts: 103



« Reply #11 on: January 16, 2007, 12:00:00 PM »

Thanks for replying.

In the previous screenshot I'm using an existing sky texture that works. Setting the sun at 90 did not work either.

I'm going to uninstall everything and start again.
Logged
baronofhell
Lesser Nub


Cakes 0
Posts: 103



« Reply #12 on: January 17, 2007, 09:43:42 AM »

Sorry to bump this up again. I got the sky to work. I had to modify the shader as below

textures/skies/skyboxtest

and the tga file under this folder. Looks like the engine recognises only textures under "skies" as sky textures.
Logged
Pages: [1]
  Print  
 
Jump to: