I dont know if this is possible.
So i messed up quit bad in my project.
Im doing an rts with lots of units. So i disabled the shadows.
And though like, im just gonna do a fake shadow later directly in the mesh.
Like a plane below the mesh with a human like form.
Thats way cheaper. And from far away it looks ok.
But i entirely forget. And did all the units without these…
And now im in trouble and trying to find a way to make the units have some fake simulation of shadows below them.
I could edit the mesh but they are vertex animated textures. And that would be quite some work… Like a week of work or more to change every single character…
But all this is related to darkening the base of the character
I don’t think you can project onto the ground from the material. To get something on the ground, either part of the mesh needs to be there, ready to shaded, or the character needs a plane hovering above the ground, which you shade like a shadow.
Thanks a lot. So we cant create a very simple shape like a circle, or a circle mask in our mesh with a material alone?
This is what im trying to do. Not exactly darken the bottom of the mesh, though that is very nice effect too…
Maybe this is not possible…?
I only saw that one now. Okay i will try that one and see. But that looks too good. I dont need the intersection. All i need is a circle drawn a somewhere close to the feet, since my game is 2Dish.
Thanks i will get back here to mark it as solution, if this solves it.
Another thing you could do, is use mesh distance fields to shade the ground. That would deal with all the characters at once, but also all the objects, unless you marked them as not using DF
Are you sure? Is this correct what im doing? It seems its doing a very subtle shadow on the sphere though im not sure if thats just me hallucinating after many hours working.
Or am i missing something?
If this is correct then how can i make it more pronounced cause i cant really tell that theres a shadow especially when the sphere is not in contact with the floor?
If you really want blob shadows, the way to do it, is to add a Decal Component to the bottom of your character setup, and make the Decal be a darkening blob. Also make sure that “receive decals” is off for the character itself.
However, I highly doubt this will help – did you actually measure that shadows was too expensive? Shadows are well supported on all modern graphics cards, and are generally well optimized in Unreal Engine. At least as long as you only have one light source (“the sun”) casting shadows, and use cascaded shadows on the terrain, it shouldn’t be a performance problem. Consider: People do fully shadowed forests with tens of thousands of trees, a few hundred animated units won’t change that by many percent.
The sphere is totally normal, no special material. The material is on the floor. Only divide by 100!
You will not see anything in the preview pane of the material.
Put a default plane in the map ( not touching the ground, for now ).
Put exactly the material I showed on the plane
It will probably go black on stripey.
Set the plane, in the details panel ( in the level ), to not affect distance fields. ( I don’t know if this option is in UE4. If not, the maybe you have to turn off ‘calculate distance fields’ in the static mesh editor ). I watched your vid, here it is, turn it off on the plane
I still think “actually just use the regular shadow” is the best option.
It’s what it’s for! It’s why you use Unreal Engine! Else you could just use Godot or something.
thanks for the answer. but in this situation i cant apply a decal because its hundreds of thousands and im using ISM. So its not a character.
But thanks for the explanation.
I tried it it seems it casts a little barely noticeable shadow?
Is there a way to make it more intense?
Though i still dont think i can use this for my project. This is so far the best result i got. So im gonna put you as the solution.
Thanks alot.
Though i would prefer it to be more darkened the shadow.
Is that possible?
Why is your ball and plane black, and many other questions?..
I dont know, the material has the same settings as yours. I dont know how you made it white without plugging in anything specific in the base color.
In mine it becomes automatically black:
Just to reiterate, the ball has no special material on it, just a normal material, any one you like. The floor has this material on it, and should look white until you move an object near it.
The floor also needs ‘affects distance field lighting’ unchecked in the details. The ball still needs it checked ( like everything else ).
there must be something im doing wrong, because my material and my plane is black color.
And i dont get to see any significant shadow.
I uploaded the project.
Maybe its because its ue4 ?