Blender Git Loki
Git Commits -> Revision e7d0510
Revision e7d0510 by Jorge Bernal (master) March 22, 2015, 17:19 (GMT) |
BGE: New hysteresis offset to improve LOD level transitions This change introduces a new hysteresis parameter that it will be added or subtracted to/from the LOD distance to avoid popping when a LOD object moves close to the LOD transition continuously. Then, we have the following: - a new LOD Hysteresis setting per scene (default 10%) which is located in Scene context --> Level of Detail panel. This scene parameter also will active/deactive the scene hysteresis. - and a new LOD Hysteresis setting per object (default 10%) which is located in Object context --> Levels of Detail panel. The LOD hysteresis setting per object (if active) will overwrite the hysteresis setting per scene value. For the new blends: the hysteresis setting per scene would be active by default and the per object would be inactive by default. For the old blends: both hysteresis settings (per scene and per object) would be inactive by default. A quick way to take advantage of this feature for old blends would be to activate the hysteresis parameter in the scene context -> Level of Detail panel Reviewers: campbellbarton, kupoman, moguri Reviewed By: kupoman, moguri Subscribers: nonamejuju, lordodin Differential Revision: https://developer.blender.org/D957 |
Commit Details:
Full Hash: e7d051043dc82c2991eb491e0630d9b1065934c3
Parent Commit: 0b4a71b
Lines Changed: +170, -5
14 Modified Paths:
/release/scripts/startup/bl_ui/properties_game.py (+29, -1) (Diff)
/source/blender/blenkernel/intern/object.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/scene.c (+3, -0) (Diff)
/source/blender/blenloader/intern/versioning_270.c (+18, -0) (Diff)
/source/blender/blenloader/intern/versioning_defaults.c (+3, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+9, -1) (Diff)
/source/blender/makesrna/intern/rna_object.c (+13, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+14, -0) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+4, -0) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+41, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+10, -0) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+12, -1) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+9, -0) (Diff)
/source/blender/blenkernel/intern/object.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/scene.c (+3, -0) (Diff)
/source/blender/blenloader/intern/versioning_270.c (+18, -0) (Diff)
/source/blender/blenloader/intern/versioning_defaults.c (+3, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+9, -1) (Diff)
/source/blender/makesrna/intern/rna_object.c (+13, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+14, -0) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+4, -0) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+41, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+10, -0) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+12, -1) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+9, -0) (Diff)