OpenArena Message Boards

OpenArena => General => Topic started by: baronofhell on January 12, 2007, 08:42:09 AM



Title: Sky Texture problems
Post by: baronofhell on January 12, 2007, 08:42:09 AM
I tried to load a skybox and I dont see the texture on the box.

(http://img147.imageshack.us/img147/3787/skytextureproblemic6.jpg)

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/

(http://img273.imageshack.us/img273/835/envfileszy5.jpg)

Can somebody help?

Thanks


Title: Re: Sky Texture problems
Post by: dmn_clown 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.


Title: Re: Sky Texture problems
Post by: baronofhell on January 12, 2007, 03:04:48 PM
Converted the jpeg files to tga. Still doesnt work :(


Title: Re: Sky Texture problems
Post by: baronofhell 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?


Title: Re: Sky Texture problems
Post by: dmn_clown on January 12, 2007, 04:27:43 PM
Are the jpegs in the /env/skyboxtest/ directory?


Title: Re: Sky Texture problems
Post by: baronofhell on January 12, 2007, 04:52:29 PM
Yes they are.


Title: Re: Sky Texture problems
Post by: dmn_clown 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 - -
}



Title: Re: Sky Texture problems
Post by: baronofhell 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. :(


Title: Re: Sky Texture problems
Post by: baronofhell on January 15, 2007, 11:21:59 AM
(http://img77.imageshack.us/img77/3527/blackpatchesic0.jpg)

I also get black patches on my terrain.


Title: Re: Sky Texture problems
Post by: baronofhell on January 15, 2007, 11:38:05 AM
(http://img77.imageshack.us/img77/3527/blackpatchesic0.jpg)

I also get black patches on my terrain.


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

I still am not able to get the skybox to work :(


Title: Re: Sky Texture problems
Post by: dmn_clown 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.


Title: Re: Sky Texture problems
Post by: baronofhell 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.


Title: Re: Sky Texture problems
Post by: baronofhell 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.