Skybox - Need help

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Skybox - Need help

Postby shaggy » Sun Dec 09, 2007 11:17 am

I've been attempting to make a skybox. Though I'm fining it hard todo as I barly understand what they are.

I'm trying to learn, how to make one. How to apply textures (to set the sky), and anyother tips needed.

So if someone could instruct me how to do it, I would be really greatful.
shaggy
Alien trapper
 
Posts: 419
Joined: Tue Apr 03, 2007 6:12 am

Postby Rad Ished » Sun Dec 09, 2007 3:57 pm

Hey Shaggy, I had a real nightmare trying to work skyboxes out, the confusing thing is there are actually two types you can use, entity or shader, I've not used the entity type yet but the way I managed to figure out the shader was to make a box with a sky on to simplify the problem and make compiling the test versions very quick. Here is my skybox test pk3, it makes the whole issue more clear. Just read all the bits to work out hows it's done and substitute your own, sky and path names etc etc etc..
Hope this helps
http://www.mediafire.com/?31ztowj9owh

Actually generating the skybox images is another kettle of sardines.
good luck (:
Rad Ished
Keyboard killer
 
Posts: 609
Joined: Wed Jun 27, 2007 8:00 am
Location: Not the Netherlands

Postby TK471 » Tue Dec 11, 2007 12:39 pm

I used Terragen to create my skybox for 'angryred'. I used this tutorial, it included a script for making the 6 sides (although you really have to go beyond the tutorial to get what you want, experiment with it):

http://www.terathon.com/wiki/index.php?title=Making_a_Skybox_Using_Terragen

This person has some free skyboxes:
http://www.scentednectar.com/skyboxes/

This is the code from my sky shader, which is actually just modified from harlequinsky which can be found in the Nexuiz shaders.

Code: Select all
textures/angryred/angryred_redsky
{
   qer_editorimage textures/angryred/angryred_redsky.tga
   surfaceparm sky
   surfaceparm noimpact
   surfaceparm nolightmap
   surfaceparm nomarks
   q3map_surfacelight 60
// note: Change the surfacelight value if you want more ambient light from the sky.
   q3map_sun 1 0.961913 0.094789 100 240 130
// note: Change the fourth value (100) if you want a brighter or dimmer sun
// q3map_sun <red> <green> <blue> <intensity> <degrees> <elevation>
   skyparms textures/angryred/env/angryred_redsky - -
}


It took me a few tries to get the sun degrees right for my shadows to work with my sun location.
TK471
Alien
 
Posts: 119
Joined: Wed Aug 01, 2007 2:41 pm


Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron