blender/source/gameengine/GameLogic
Dalai Felinto 0cad3ae24c BGE 2D Filters: filters run per scene now (fix for [#18152]) - it (slightly) breaks backward compatibility !!!
Originally we had 2DFilters (m_filtermanager) stored in RenderTools. That way filters were stored globally and were being called once per each scene. This was producing two big problems: (1) performance and (2) flexibility of use.

(1) Performance - To run the filters 2X == 2X slower
(2) flexibility of use - Very often we want the filter in the scene but not in the UI for example.

For those reasons I believe that 2DFilters with multiple scenes was very useless or unpredictable. I hope they work fine now.
To make it work as before (2.4) you can simply recreate the 2dfilter actuators across the scenes.

* * * * *

Imagine that we have:
(a) Main Scene
(b) Overlay Scene

in Main Scene the Z Buffer and RGB will be from the main scene.
in Overlay Scene the Z Buffer will be from the Overlay Scene and the RBG buffer is from both [(a + 2D Filter) + b].

So in pseudo code if we have a,b,c,d,e scenes we have: (2DFilterE(2DFilterD(2DFilterC(2DFilterB(2DFilterA(a) + b) + c) + d) + e)
2010-03-03 06:38:47 +00:00
..
Joystick correct fsf address 2010-02-12 13:34:04 +00:00
CMakeLists.txt BGE 2D Filters: filters run per scene now (fix for [#18152]) - it (slightly) breaks backward compatibility !!! 2010-03-03 06:38:47 +00:00
Makefile BGE 2D Filters: filters run per scene now (fix for [#18152]) - it (slightly) breaks backward compatibility !!! 2010-03-03 06:38:47 +00:00
SCA_2DFilterActuator.cpp BGE 2D Filters: filters run per scene now (fix for [#18152]) - it (slightly) breaks backward compatibility !!! 2010-03-03 06:38:47 +00:00
SCA_2DFilterActuator.h BGE 2D Filters: filters run per scene now (fix for [#18152]) - it (slightly) breaks backward compatibility !!! 2010-03-03 06:38:47 +00:00
SCA_ActuatorEventManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ActuatorEventManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ActuatorSensor.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ActuatorSensor.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_AlwaysEventManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_AlwaysEventManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_AlwaysSensor.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_AlwaysSensor.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ANDController.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ANDController.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_BasicEventManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_BasicEventManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_DelaySensor.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_DelaySensor.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_EventManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_EventManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ExpressionController.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ExpressionController.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IActuator.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IActuator.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IController.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IController.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IInputDevice.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IInputDevice.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ILogicBrick.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ILogicBrick.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IObject.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IObject.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IScene.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_IScene.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ISensor.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ISensor.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_JoystickManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_JoystickManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_JoystickSensor.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_JoystickSensor.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_KeyboardManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_KeyboardManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_KeyboardSensor.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_KeyboardSensor.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_LogicManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_LogicManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_MouseManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_MouseManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_MouseSensor.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_MouseSensor.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_NANDController.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_NANDController.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_NORController.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_NORController.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ORController.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_ORController.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_PropertyActuator.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_PropertyActuator.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_PropertyEventManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_PropertyEventManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_PropertySensor.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_PropertySensor.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_PythonController.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_PythonController.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_RandomActuator.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_RandomActuator.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_RandomEventManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_RandomEventManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_RandomNumberGenerator.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_RandomNumberGenerator.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_RandomSensor.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_RandomSensor.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_TimeEventManager.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_TimeEventManager.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_XNORController.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_XNORController.h correct fsf address 2010-02-12 13:34:04 +00:00
SCA_XORController.cpp correct fsf address 2010-02-12 13:34:04 +00:00
SCA_XORController.h correct fsf address 2010-02-12 13:34:04 +00:00
SConscript BGE 2D Filters: filters run per scene now (fix for [#18152]) - it (slightly) breaks backward compatibility !!! 2010-03-03 06:38:47 +00:00