All a lot better than my attempt.
First problem I had, was when I put it into photoshop, I ended up with a red cast.
View attachment 2426
No matter which colour profile I assigned.
So first call was to add a new adjustment layer, Layer -> New Adjustment Layer, Levels. I selected Auto, (well, this is only a demo).
View attachment 2427
Next, I did a quick selection using the quick selection tool (similar to the magic wand). (Press W in photoshop 4). I saved the selection, and this is what it looked like. The better your selection, the better the end result, but givin that this is a quick demo, the quick selection is plenty good enough (and is often good enough for anything other than hair or pale yellow/white fluffy stuff).
View attachment 2428
Now use select inverse, and do a Layer -> New Layer. You should end up with a white background, with a transparent child.
Now select, inverse again.
Now, I go to selection -> Modify -> Expand
I used a value of 15 pixels, this is too much for the resolution this photo is currently at, but the exagerated shadow is useful as a demo.
I then used selection -> Modify -> Feather
Select inverse once final time (for some reason, I don't find the contract quite as effective as expand)
Now, create a layer mask on the layer which was just white with a transparent child. Your layer mask should be a black child, with a white background.
View attachment 2429
Not yet quite what you want I guess (the values I used were exagerated to show the effect), although I have printed several images out like this, it works well I think in Acrylic blocks
Now do Layer -> New -> Group
It should put your shadowy layer into a group. Now create a new layer mask for the group. Turn it completely black. Then use the gradient tool (hidden by the fill tool usually), and I selected foreground to background. I clicked about midway through the thigh, going straight up.
This enables some of the white masking, making it look like the floor is dissapearing into the wall.
View attachment 2431
Try to imagine the above picture with only about a third as much 'shadow' behind the child.