skyDome... why does this crash

Posted By: ello

skyDome... why does this crash - 01/06/08 00:59

Code:

ENTITY* skyDome =
{
type = "skyDome.mdl";
FLAGS2 = SKY|VISIBLE;
}



if i dont set the flags it doesnot crash, but i need to set them .. any ideas?
Posted By: Joozey

Re: skyDome... why does this crash - 01/06/08 01:03

capital letters .
Posted By: ello

Re: skyDome... why does this crash - 01/06/08 01:21

nope. if i write flags2 it still crashes. if i write sky|visible i get an error message because its an undeclared identifier
Posted By: Slin

Re: skyDome... why does this crash - 01/06/08 01:33

Code:

ENTITY* skyDome =
{
type = "skyDome.mdl";
flags2 = SKY|VISIBLE;
}



This should be alright but you prapably canīt use a model but have to use a texture if you set the SKY flag...
Posted By: ello

Re: skyDome... why does this crash - 01/06/08 01:50

hm, in the manual it says i can use a model, too. what i want is that the skyDome does not intersect the models i the scene, but also i dont want to create a oversized model and thus be forced to use an extreme clipping range
Posted By: ello

Re: skyDome... why does this crash - 01/06/08 12:22

is there any opposite thing to znear? i tried the effect states ZEnable and ZFunc but couldnt get the result i am looking for
Posted By: Tobias

Re: skyDome... why does this crash - 01/06/08 12:23

I am using sky models all the time with no problem. Of course "flags2" must not be in capitals. So your problem is something else, for finding out begin with an empty level and only that sky model and then add the rest of your stuff until the problem begins.
Posted By: ello

Re: skyDome... why does this crash - 01/06/08 12:41

thanks , i got it. dunno why, but now it doesnot crash anymore. anyway, the skyDome isnt drawn in the distance but befor the terrain.

is there something else to consider?
Posted By: Tobias

Re: skyDome... why does this crash - 01/06/08 13:22

If you want it to draw behind everything you need the SCENE flag.
Posted By: ello

Re: skyDome... why does this crash - 01/06/08 14:31

and this works for you? here it doesnot:
Code:

ENTITY* skyDome =
{
type = "skyDome.mdl";
flags2 = SCENE|SKY|VISIBLE;
}



and last but nor least, the entity is moving with the camera direction, so a static skyDome isnot possible this way. ??
Posted By: NL_3DGS_n00b

Re: skyDome... why does this crash - 01/06/08 21:21

I just use a skycube, using this script:

Code:
my_sky = ent_createlayer("skycube+6.tga",SKY|CUBE|VISIBLE,0);



But I like skydomes a bit better, because you can let skydomes turn around, so if you use clouds on it, it looks like a real sky with moving clauds.
Posted By: ello

Re: skyDome... why does this crash - 01/07/08 07:38

i know skycubes but in this case i definately need to use a skydome
© 2023 lite-C Forums