@Hujiklo : If I knew how to precalculate real time shadows I would. Working out the angle from the light to the model was easy and then I simply stretch and rotate the volume model around my characters.
I had the system working perfectly in game, but like I said, with 200ish models getting rendered 4 times each update was a major slowdown. I cut out any renderworlds I could from the shadow routines because I didn't need the backface part. But it was still slow as hell.
At least with sswifts system I can say, OK this object is within shadow distance of my players, so they will receive shadows this update. So I may have 8 models in the shadow system as apposed to all 200.
Does this make sense or am I dribbling?
Me and 3D maths don't get along too well but!! :-)
I still can't get my head around realtime texture shadows, hence why I paid sswift to do it for me :-)
@sswift:You pretty much got it except the shadows are from my players onto the world. They are not static as such as they do follow the player around and the angle does change to the lighting angle.
It's no high class FPS I'm writing here by the way (It's a Bomberman clone in 3D topdown view), but I still want my shadows to look nice.
Also, when I use blur on your shadow system my shadows disappear?? Any ideas why this is?
I had the system working perfectly in game, but like I said, with 200ish models getting rendered 4 times each update was a major slowdown. I cut out any renderworlds I could from the shadow routines because I didn't need the backface part. But it was still slow as hell.
At least with sswifts system I can say, OK this object is within shadow distance of my players, so they will receive shadows this update. So I may have 8 models in the shadow system as apposed to all 200.
Does this make sense or am I dribbling?
Me and 3D maths don't get along too well but!! :-)
I still can't get my head around realtime texture shadows, hence why I paid sswift to do it for me :-)
@sswift:You pretty much got it except the shadows are from my players onto the world. They are not static as such as they do follow the player around and the angle does change to the lighting angle.
It's no high class FPS I'm writing here by the way (It's a Bomberman clone in 3D topdown view), but I still want my shadows to look nice.
Also, when I use blur on your shadow system my shadows disappear?? Any ideas why this is?