Explain : how export custom skys from Terragen

Want to recruit some people for your mod ? Want to work on a mod ? Post the relevant info here. Not for mapping questions.

Moderator: Moderators

Post Reply
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Explain : how export custom skys from Terragen

Post by mcunha98 »

In past i maked some maps with custom skys, but this is a "hard" technique because we have many steps to do.

After make your sky with terragen (about this exists many tutorials in NET) you need "export" the frames to Q3 engine. See the steps:

1) In Rendering Control window, change the Image Size setting to 512 x 512 pixels

2) You need have a script of terragen to create correctly your frames, for this execute this scripts (save as .tgs file in some folder):

Code: Select all

;By MCunha98
initanim "C:\", 1

; Left
camh 0
camp 0
camb 0
zoom 1
frend

; Back
camh 90
camp 0
camb 0
zoom 1
frend

; Right
camh 180
camp 0
camb 0
zoom 1
frend

; Front
camh 270
camp 0
camb 0
zoom 1
frend

; Top
;camh 0
camh 180
camp 90
camb 0
zoom 1
frend

; Bottom
camh 0
camp -90
camb 0
zoom 1
frend
3) After run this script, you need rename correctly the files, execute this script (save as .bat file in your C:\). Warning: change the destination path of the files for your path (program files for example...)

Code: Select all

cd \

cls

ren 0001.bmp sky_lf.bmp
ren 0002.bmp sky_bk.bmp
ren 0003.bmp sky_rt.bmp
ren 0004.bmp sky_ft.bmp
ren 0005.bmp sky_up.bmp
ren 0006.bmp sky_dn.bmp

move sky_lf.bmp "C:\Arquivos de programas\EA GAMES\MOHAA\main\textures\sky_98wardepot\"
move sky_rt.bmp "C:\Arquivos de programas\EA GAMES\MOHAA\main\textures\sky_98wardepot\"
move sky_bk.bmp "C:\Arquivos de programas\EA GAMES\MOHAA\main\textures\sky_98wardepot\"
move sky_ft.bmp "C:\Arquivos de programas\EA GAMES\MOHAA\main\textures\sky_98wardepot\"
move sky_up.bmp "C:\Arquivos de programas\EA GAMES\MOHAA\main\textures\sky_98wardepot\"
move sky_dn.bmp "C:\Arquivos de programas\EA GAMES\MOHAA\main\textures\sky_98wardepot\"
4) When you make all .bmp files in folder, you need convert all files to .jpg files (using 16 bit mode for all images remember !!!)

5) After all, you need create a .shader file for your sky:

Code: Select all

textures/sky_98wardepot/sky_98wardepot
{
	qer_editorimage textures/sky_98wardepot/sky_98wardepot.tga
	qer_keyword sky
        qer_keyword user_98wardepot
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm sky
	surfaceparm nomarks
	q3map_globaltexture
	skyParms textures/sky_98wardepot/sky_98wardepot - -
}
Warning: you need create a 64x64 tga file with specific name of your sky (as "sky_98wardepot.tga"), this file is the "preview" in MOHRadiant enviroment.
Post Reply