Game engine suggestion.

Hello.
A small suggestion for next bge releases:
Toggle 2D filters.
A way to turn off every 2d filter available in the scene,as easy as turning off shadows.
It would be really nice if we could control this using python.

Soft shadows fading.
When the lamp frustrum ends the shadows should fade and not just looks like is cut.

Thanks.

The remove 2d filters works for all except the motion blurr which its a special case and can be disabled from itself.

Ok thanks for info,never really exlpored that.
Now, a smooth shadow fading would help a lot if we are talking about quality.

I guess you meant the shadow caused by a spotlight.
I prepared a little blend file for you. Keep enter pressed to fade out.


from bge import logic
co = logic.getCurrentController() 
light = co.owner


while light.energy != 0:
    light.energy -= 0.1
    time.sleep(10)

Attachments

fade_lamp.blend (424 KB)

It has to fade only the shadow that is almost out of frustrum. Not the energy.

Like this?


Something like that,but hmm, what about sun shadows?

Sun shadows are not implemented in BGE (yet?). I remember seeing a custom shadow script on this forum… There’s also a blender build for soft shadows out there.

You are misinformed !
Bge has sun shadows,lamp shadows and it has soft shadows already implemented!

In BGE? Since when? Gotta try out.
EDIT: Wow…

Grab a build from graphicall . org any build.

I agree, this would be very useful, but not essential. Quite a few engines have shadows (from a sun) that fade out towards the edge of the frustrum. Makes the border at the edge of the shadow frustrum blend much nicer. I would think that this could be achieved by blurring the edges of the shadow map, but I have no idea about implementing this.

+1 for frustrum edge blurring!!!

Well, i have talked a bit with moguri, he told me that fading isnt that easy to achieve :frowning: , but not impossible though.

Ah. Its not a highly important feature, but when you play a game in another engine, the fading border does help to smooth everything out.

I just tried out the Sun lamp with the shadow buffer type set to varisnce. This seems to make the shadows soft… I’m assuming this is the right method. It looks great in the viewport, but when I hit p to activate the game engine… the shadows are no longer soft. Are you guys seeing this too?
Thanks
M

Try to move the sun lamp further away from the game objects. Then it should work.

Got it to work! Looks great.
Thanks
M