Posted By: Reconnoiter
sky scene covers other objects? - 01/03/16 16:36
Hi,
How come this covers any other normal entity/models in a map?:
ENTITY* background_ent =
{
type = "background1.mdl";
flags2 = SKY | SCENE | SHOW;
}
I thought the scene flag should prevent that?
Posted By: sivan
Re: sky scene covers other objects? - 01/03/16 18:42
yeah it does cover, I don't know why.
to make you "happy", sky box also has a similar (reported but unwanted to be unresolved) issue at about 0,71 (sqrt(2)) of clip far.
Posted By: Reconnoiter
Re: sky scene covers other objects? - 01/04/16 11:52
, ah how sweet of you
sky box also has a similar (reported but unwanted to be unresolved) issue at about 0,71 (sqrt(2)) of clip far.
, can that be done through script? (/without WED?)
Posted By: sivan
Re: sky scene covers other objects? - 01/05/16 17:24
yes. I don't use WED at all.
Posted By: Reconnoiter
Re: sky scene covers other objects? - 01/05/16 18:47
Nice, so I quess 'sky_clip' is the value I need to set to 0,71 (sqrt(2)) of clip far, right? tia
Posted By: sivan
Re: sky scene covers other objects? - 01/06/16 09:12
no, that affects only sky domes. sky cubes are different, but they clip the environment not at clip_far, instead at 0.71*clip_far, but don't know why. if the sky cube is not transparent it is not disturbing, but if you sometimes remove or use the sky cube (e.g. when you create a world editor for a dead engine), you can see significant difference...
Posted By: txesmi
Re: sky scene covers other objects? - 01/06/16 16:53
they clip the environment not at clip_far, instead at 0.71*clip_far, but don't know why.
just a guessing but, may it be because of this?
or maybe because the corners of the cube are at clip_far distance so the center of the faces are at 0.71*clip_far because 0.71 ~= cos(45)...
Salud!
Posted By: EpsiloN
Re: sky scene covers other objects? - 01/07/16 00:19
Lol, didn't think it was true before I saw a recent video of someone scripting in DOS with OpenGL...
PS.: It was amazing...
Posted By: sivan
Re: sky scene covers other objects? - 01/07/16 08:16
@txesmi: probably. but if it is the case, the sky cube size should be simply set to an increased distance.
Posted By: sivan
Re: sky scene covers other objects? - 01/08/16 08:09
@Epsilon: it is definitely different to be dead or insane
Posted By: EpsiloN
Re: sky scene covers other objects? - 01/08/16 11:32
yeah.
Sorry for the off topic,
By the way, obscured by the pixilation and 256 colors, but this guy got the lighting so right (real-time radiosity), it was gorgeous.