Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/05/26 02:58
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (hast29, TipmyPip, Volkovstudio), 5,419 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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 Online
Senior Expert
Quad  Online
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 Online
Senior Expert
Quad  Online
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