Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,787 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
sky cube / sky box #235139
11/06/08 07:05
11/06/08 07:05
Joined: Oct 2008
Posts: 67
pewpew Offline OP
Junior Member
pewpew  Offline OP
Junior Member

Joined: Oct 2008
Posts: 67
sorry about all the questions!
i am just trying to put a sky cube into a game, but it wont work.

do you need a special type of file format? .tga or something?

if this is the case, how do you create a skybox file? i;ve been looking on the internet for the past few hours and cant seem to find anything on creating a skycube file.


HURRR DERP DERP DEERRPP HURR
Re: sky cube / sky box [Re: pewpew] #235158
11/06/08 09:02
11/06/08 09:02
Joined: May 2006
Posts: 53
Puerto Rico
monchito Offline
Junior Member
monchito  Offline
Junior Member

Joined: May 2006
Posts: 53
Puerto Rico

This is from the manual....
The sides of the sky cube are drawn at a distance of Camera.clip_far from the viewer. The sky z parameter can be used to move the cube up and down. The x, y, angle, and scale parameters are ignored.

The sprite image must consist of 6 adjacent square frames in the following order: west, north, east, south, down, up. Thus its file name must end with '+6' and its width must be six times larger than its height. Each frame should be a power of 2 in size, like 512x512. The frames must be tiled in a way that they can be wrapped around a cube. Compressed images (DDS) can not be used for sky cubes.

A lot of sky cube images can be found at game artwork pages like http://www.wadfather.com. The sky sprite image can be put together by adding the single cube images in the order bk, rt, ft, lf, dn, up from left to right.

SKY* mountain_cube =
{
type = "mountains+6.tga";
flags = CUBE | VISIBLE;
layer = 2;
z = 30; // move 30 pixels upwards
}
-----------------------------------
SKY skycube =
{
type = "sky_large_1+6.tga"; // the image for a backdrop scene
flags = CUBE | VISIBLE; // sky cube, visible
}
--------------------------------
In c-script: sometimes, when i can't see the skycube, i use the WED, insert a hollow cube, set the corresponding flag to sky, insert the sky image in to the wad via the texture manager, apply the texture to the cube. thats all.


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1