lfnetwork.com mark read register faq members calendar

Thread: Skybox Problem
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 05-19-2003, 11:55 PM   #1
Obsidian-Jovani
 
Obsidian-Jovani's Avatar
 
Join Date: Apr 2003
Location: Onderon
Posts: 223
Angry Skybox Problem

My skybox images are showing up with a HOM effect like I'm looking at caulk in the game. Why is it doing this? Here is the process I did in making my skybox:

1.) Well I rendered 6 nice images in Terragen for my skybox and then resized them from 960x960 to 1024x1024 and saved them as .jpg. Each file has the correct naming convention, such as yoursky_ft.jpg and so on and so forth.

2.) I created the following shader for the skybox:

textures/resurgence/onderon/sky
{
qer_editorimage textures/skies/sky.tga
q3map_surfacelight 35
sun 197 2 9 150 180 25
surfaceparm sky
surfaceparm noimpact
surfaceparm nomarks
notc
q3map_nolightmap
skyParms textures/resurgence/onderon 512 -
}

3.) In the editor JK2Radiant I textured each surface of the sky & terrain with the shader and it shows up fine with the tiled boxes with SKY in them.

4.) I compiled and then proceeded to make my .pk3.

5.) I put the new sky shader in a folder called shaders and the 6 image textures are in the folder textures/resurgence/onderon. I also put all my scripts and bsp file in the folder maps. So I created the pk3 and loaded up the SP game.

6.) After loading my map the sky shader emits light like it's supposed to, but the images are not showing up.

Oh and can the 6 images of the sky&terrain be .tga or must they be .jpg?

Please help...


Binary Sunset Studios

WIP: A SP Project entitled "Resurgence"
Obsidian-Jovani is offline   you may: quote & reply,
Old 05-20-2003, 08:55 AM   #2
Leslie Judge
Teacher
 
Leslie Judge's Avatar
 
Join Date: Aug 2002
Location: Budapest, Hungary
Posts: 1,382
They can be either jpg or tga.

As I see the problem is in the skyParms.

You say your six textures are in textures/resurgence/onderon folder. But in the skyParms you specify textures/resurgence/onderon which means six pictures in textures/resurgence folder called onderon_ft, onderon_rt, etc...

If you correct the shader you don't have to recompile.


L. J.
Leslie Judge is offline   you may: quote & reply,
Old 05-20-2003, 01:01 PM   #3
Obsidian-Jovani
 
Obsidian-Jovani's Avatar
 
Join Date: Apr 2003
Location: Onderon
Posts: 223
Doh!

Stupid little mistake. Actually 2 of them. 2 lines of the shader were not pointing to the right diretories. Fixed it. But now the shader is lighting the whole map, not just the outside. Grr.

Thanks again L.J.


Binary Sunset Studios

WIP: A SP Project entitled "Resurgence"
Obsidian-Jovani is offline   you may: quote & reply,
Old 05-20-2003, 09:35 PM   #4
Emon
Strong Bad's Henchman
 
Emon's Avatar
 
Join Date: Jan 2002
Location: The Massassi Temple
Posts: 3,468
Also a suggestion: Render your images at 1024x1024, resizing them looses detail.
Emon is offline   you may: quote & reply,
Old 05-20-2003, 09:45 PM   #5
Obsidian-Jovani
 
Obsidian-Jovani's Avatar
 
Join Date: Apr 2003
Location: Onderon
Posts: 223
Quote:
Originally posted by Emon
Also a suggestion: Render your images at 1024x1024, resizing them looses detail.
In the tutorial that I read on making skyboxes with Terragen http://wso.williams.edu/~jshoer/terragen.htm it mentions that the unregistered free version only allows a maximum render size of 960x960 (or was it 960x1024). Anyway I resized the images in PSP to 1024x1024 maintaining the aspect ratio.


Binary Sunset Studios

WIP: A SP Project entitled "Resurgence"
Obsidian-Jovani is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JO Mapping > Skybox Problem

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:21 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.