Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
How to include a skycube into a level #243770
12/31/08 18:37
12/31/08 18:37
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
As I wrote in the headline I have the problem to include a skycube in a wed level. How can I do this? (Lite-C)


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: How to include a skycube into a level [Re: MPQ] #243775
12/31/08 18:57
12/31/08 18:57
Joined: Sep 2007
Posts: 658
germany
Tiles Offline
User
Tiles  Offline
User

Joined: Sep 2007
Posts: 658
germany
WED? Have a look here:

http://www.conitec.net/beta/asky_cube.htm

Map this described texture onto a hollow block, then in the block tab of the hollow block group tick the sky checkbox. Saves you the code.

Last edited by Tiles; 12/31/08 18:59.

trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: How to include a skycube into a level [Re: Tiles] #243779
12/31/08 19:17
12/31/08 19:17
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
sorry but I didnt get what you mean...
if i use the "SKY*"-code there is always a error, can I really use it in Lite-C?


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: How to include a skycube into a level [Re: MPQ] #243782
12/31/08 19:25
12/31/08 19:25
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
http://www.conitec.net/beta/aentities-intro.htm

it should be like this:

ENTITY* skycube =
{
type = "skycube+6.tga"; // the image for a backdrop scene
flags2 = SKY | CUBE | SHOW; // sky cube, visible
}


3333333333
Re: How to include a skycube into a level [Re: Quad] #243785
12/31/08 19:38
12/31/08 19:38
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
Yeah in Lite-C it only works with "ENTITY*", but what means "SHOW", it doesnt work this way

My code looks like that:

function main()
{
level_load ("sky.wmb");
}


ENTITY* mountain_cube =
{
type = "blood_gorge+6.tga";
flags2 = CUBE | VISIBLE;
}

I only want to add a skycube to my level, i dont get it


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: How to include a skycube into a level [Re: MPQ] #243789
12/31/08 20:08
12/31/08 20:08
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
ahh in the new version of the manual VISIBLE changed to SHOW i guess. (to prevent confusion with the flag "INVISIBLE").

yeah itd be VISIBLE. and reason you use it, when you define a entity like this, if you dont set it to visible it wont be visible.


3333333333
Re: How to include a skycube into a level [Re: Quad] #243879
01/01/09 12:09
01/01/09 12:09
Joined: Sep 2007
Posts: 658
germany
Tiles Offline
User
Tiles  Offline
User

Joined: Sep 2007
Posts: 658
germany
Hmm, i don't use any code. Just a hollow cube. With the told skytexture applied and with the sky checkbox checked smile


trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: How to include a skycube into a level [Re: Tiles] #243880
01/01/09 12:19
01/01/09 12:19
Joined: Oct 2008
Posts: 51
Germany
C
CetiLiteC Offline
Junior Member
CetiLiteC  Offline
Junior Member
C

Joined: Oct 2008
Posts: 51
Germany
That's not the best way, because the Sky-Entity is dynamic and it's scaled
automatically to the size of your level!

Re: How to include a skycube into a level [Re: CetiLiteC] #243912
01/01/09 17:01
01/01/09 17:01
Joined: Jun 2008
Posts: 24
germany --> nrw --> aachen
D
Davidus Offline
Newbie
Davidus  Offline
Newbie
D

Joined: Jun 2008
Posts: 24
germany --> nrw --> aachen
Here is the code i used:

Code:
level_load("levelname.hmp");
	wait(2);
	ent_createlayer("yourTexture1+6.bmp",SKY | CUBE | VISIBLE,0);


important: The File must have a name like "1+6" at the end,
otherwise it wont work.
The 6 means that the texture has six sides.
So you CANNOT include any pic you want as a sky picture,
the picture has to have a size of:
height : x
width : x * 6

for example, if the height of your texture is 100,
then you have a total width of 600, and every 100x100
part of your texture is meant for a different part:
front , back, left , right , up , and downside.

there are other configuration options as well,
but i only know these.

Another thing is: The Format should be considered -
bitmap should always work, and if bitmap works,
you can try other graphic formats, i've testet it,
and on some formats it looked weird.

Hope i could help you !

Re: How to include a skycube into a level [Re: Davidus] #243916
01/01/09 17:29
01/01/09 17:29
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline OP
Senior Member
MPQ  Offline OP
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
thanks for your help, I will try the code

Edit:
Ha, yesterday the ent_create code doesnt work but today it works without any probs, thanks

Last edited by MPQ; 01/01/09 17:37.

new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Page 1 of 2 1 2

Gamestudio download | chip programmers | 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