PDA

View Full Version : recieve shadows but not cast shadows


Neox
08-01-2010, 01:38 AM
Hey guys, is there a way for objects to recieve a shadow but not cast one? we are trying to add grass to a level and want to use lightmass of course, but if the grass casts a shadow and gets lodded away there are big black spots on the map - of course we would like to have trees or rocks casting a shadow on the grass though.

divi
08-01-2010, 02:14 AM
http://content.screencast.com/users/divi/folders/Jing/media/c8d188f9-342c-4912-94ea-11d59d0ffe55/2010-08-01_1111.png

seems to be working for me. maybe it's something about the grass material? set to unlit or something.

Neox
08-01-2010, 02:32 AM
yeah thig is, as i'm using foliage volumes, the options are not exactly the same - i now have it not cast any shadows but now it also doesn't recieve some, i think i'll have to try around more

Neox
08-01-2010, 10:13 AM
ok can't seem to get it to work :(
however, if i'd like to reproduce the lodding of the foliage volume how would i tackle such a thing with static meshes, is it even possible? i know that it might be doable with vertexshaders but then i can only use translucent materials, which is for masses of grass reall not a rout i would like to go.

Xendance
08-02-2010, 05:16 AM
I haven't used foliage volumes because they lit up rather craptastically, so what kind of LODing? Static meshes support four different LOD models.

ParoXum
08-02-2010, 07:52 AM
Yeah but last time I personally worked with static meshes lodding in Unreal it was with UT3, and it was poping. You cant afford to make plants like grass pop nowadays.

Neox
08-02-2010, 07:56 AM
on foliage the plants get scaled smaller by distance and therefore fade out, way nicer than just popping them away, but i guess i'm gonna expand the shader fopr the static meshes and then change the alpha via distance so its fades out as well - can't seem to find any way to use lightmass with the foliage :(

JordanW
08-02-2010, 07:57 AM
UDK foliage demo has examples of screendoor fade on static meshes which is useful for foliage and LODs

Neox
08-02-2010, 11:46 AM
ah already built in, nice :)

thank you