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
3 registered members (TipmyPip, AndrewAMD, dBc), 18,430 guests, and 6 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 #241349
12/15/08 18:16
12/15/08 18:16
Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
mperdue Offline OP
Senior Member
mperdue  Offline OP
Senior Member

Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
After a long absence I'm back to playing with GameStudio again. I've converted the old program I was working on to Lite-C and have it mostly running now. One area that I'm having trouble with it the sky cube.

I've defined a global entity with:
ENTITY* skycube;

And then I create the skycube after I load the level with:
skycube = ent_createlayer("stars.pcx", SKY|CUBE|VISIBLE, 0);

But all I get is a blue background. Can anyone help me figure out what I'm doing wrong?

Mario

Re: Sky Cube [Re: mperdue] #241351
12/15/08 18:19
12/15/08 18:19
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
dont know if that would work but
try skycube.flags |= SKY|CUBE|VISIBLE; after/before the line ent_create layer


3333333333
Re: Sky Cube [Re: Quad] #241361
12/15/08 18:39
12/15/08 18:39
Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
mperdue Offline OP
Senior Member
mperdue  Offline OP
Senior Member

Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
Thanks for the quick reply. Unfortunately it didn't change anything.

Mario

Re: Sky Cube [Re: mperdue] #241364
12/15/08 18:45
12/15/08 18:45
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
skycube.flags2 |= SKY|CUBE|VISIBLE;

that has a better chance to work.


3333333333
Re: Sky Cube [Re: Quad] #241365
12/15/08 18:54
12/15/08 18:54
Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
mperdue Offline OP
Senior Member
mperdue  Offline OP
Senior Member

Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
I figured that you really meant flags2 so I tried it as well - no joy.

Mario

Re: Sky Cube [Re: mperdue] #241366
12/15/08 18:59
12/15/08 18:59
Joined: Dec 2007
Posts: 706
Schortens Germany
Landixus Offline
User
Landixus  Offline
User

Joined: Dec 2007
Posts: 706
Schortens Germany
ENTITY* std_sky =
{
type="skywhatever+6.tga";
flags2 = SKY | CUBE | VISIBLE;
}


My Blog German: http://blog.quakeit.de/
www.quakeit.de ||
Airfix Game in Cooperation with:
www.3drt.com
Models Levels and Textures
Re: Sky Cube [Re: Landixus] #241369
12/15/08 19:31
12/15/08 19:31
Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
mperdue Offline OP
Senior Member
mperdue  Offline OP
Senior Member

Joined: May 2003
Posts: 314
McCordsville, Indiana, USA
Oops! I had an older beta version of GameStudio installed. The current release works properly. Thanks for the help guys.

Mario


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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