Strange lod terrain with shadows

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Strange lod terrain with shadows

Post by Stratocaster »

Image

What do you think of that? :?
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Final

Post by tltrude »

Try compiling with "-final" option for the light compile.
Tom Trude,

Image
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

Ok I will try that I hope it doesn't take too long :wink:
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

time

Post by tltrude »

It does take more time, but if the bad shadows go away, it will be worth it.
Tom Trude,

Image
Shuriken1
Corporal
Posts: 28
Joined: Thu Sep 02, 2004 3:05 pm
Contact:

Post by Shuriken1 »

Yeah, I've had that before. It just where it screws up the lighting between the above-ground vertices and the underground ones. As trude says, a -final will probably get rid of it. However, I managed to get rid of it a different way. When I remember I'll let you know. :)
Shuriken1
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post by panTera »

A final light compile can't hurt to try but I'm almost certain that it won't remove those shadows. You see the lighting is calculated when the LOD patches are in a certain stage/shape. When you're in-game and you walk backwards so the distance to the patches increases, the Level of detail gets less and the patches are deformed thus revealing the shadows underneath.

As far as I know there are two things you could try:
1) Add the -nopatchshadows parameter to the Mohlight stage,
If it still doesn't look right also give -nopatchlight a try, but this probably makes it more ugly.
(-nopatchshadows: terrain patches don't cast shadows)
(-nopatchlight : don't light terrain patches)

2) The second thing you could try requires makeing a new shader for the snowtexture(s). You don't need to include the snowtexture(s) as new textures, just be sure to use a new name for it in your shader to avoid conflicts.

textures/yourshadername(!)/newtexturename(!)
{
surfaceparm snow
surfaceparm trans //light will shine through so it won't cast shadow
{
map textures/central_europe_winter/snow_bumpy_brd1.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

Did not work properly with final lighting compile. I will try what Pantera said see if it works :roll:
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
Balr14
Colonel
Posts: 450
Joined: Sat Aug 03, 2002 4:01 am
Location: Germantown, WI, USA

Post by Balr14 »

Remove the lightmap parm from the shader.
Shuriken1
Corporal
Posts: 28
Joined: Thu Sep 02, 2004 3:05 pm
Contact:

Post by Shuriken1 »

Oh, I've just remembered, I selected the LOD and brought up a box, the name of which I can't remember and theres an option on there called Max Detail, that stops it deforming like panTera said and should stop those shadows appearing.

As for the name of the box or how to get to it, I can't remember, it doesn't seem to be on the Radiant Command List, all I can say was that it was a small box with 6 check boxes in it and it was only for LOD, sorry thats so vague.
Shuriken1
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Those are LOD terrain right not patches? Are they part of the terrain or a separete LOD terrain?
Image
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

Yes those two pieces of snow are lod terrain, not patches.
They are not part of the terrain. I will also try checking the max detail box on properties window.
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
Ezykeyal
Colour Sergeant
Posts: 77
Joined: Fri Aug 27, 2004 10:53 am
Location: Holland

Post by Ezykeyal »

It looks like it shows the black and white shader as if an image was'nt found...try a common texture and see what happends.
User avatar
Stratocaster
Sergeant Major
Posts: 106
Joined: Fri Aug 27, 2004 8:16 pm
Location: Madrid, Spain
Contact:

Post by Stratocaster »

The texture is snow_bumpy like the rest of the ground. To me it looks more like a shadow but I will try the solutions you guys gave me.
CLAN FIRECLAN (SPAIN)
WWW.WEBFIRECLAN.NET Image
Post Reply