Blender Git Commit Log

Git Commits -> Revision 908337b

Revision 908337b by Brecht Van Lommel (master)
July 29, 2008, 15:48 (GMT)
Game Engine: alpha blending and sorting
=======================================

Alpha blending + sorting was revised, to fix bugs and get it
to work more predictable.

* A new per texture face "Sort" setting defines if the face
is alpha sorted or not, instead of abusing the "ZTransp"
setting as it did before.
* Existing files are converted to hopefully match the old
behavior as much as possible with a version patch.
* On new meshes the Sort flag is disabled by the default, to
avoid unexpected and hard to find slowdowns.
* Alpha sorting for faces was incredibly slow. Sorting faces
in a mesh with 600 faces lowered the framerate from 200 to
70 fps in my test.. the sorting there case goes about 15x
faster now, but it is still advised to use Clip Alpha if
possible instead of regular Alpha.
* There still various limitations in the alpha sorting code,
I've added some comments to the code about this.

Some docs at the bottom of the page:
http://www.blender.org/development/current-projects/changes-since-246/realtime-glsl-materials/

Merged some fixes from the apricot branch, most important
change is that tangents are now exactly the same as the rest
of Blender, instead of being computed in the game engine with a
different algorithm.

Also, the subversion was bumped to 1.

Commit Details:

Full Hash: 908337bee11f6b55c34a5880ea241b3975c35287
SVN Revision: 15867
Parent Commit: b0c513e
Lines Changed: +859, -873

2 Deleted Paths:

/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.cpp (+0, -114)
/source/gameengine/BlenderRoutines/KX_BlenderPolyMaterial.h (+0, -99)

34 Modified Paths:

/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_DerivedMesh.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/customdata.c (+4, -3) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+122, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+52, -1) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+1, -1) (Diff)
/source/blender/src/buttons_editing.c (+1, -0) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp (+1, -0) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp (+0, -1) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+278, -359) (Diff)
/source/gameengine/Ketsji/BL_BlenderShader.cpp (+68, -17) (Diff)
/source/gameengine/Ketsji/BL_BlenderShader.h (+12, -2) (Diff)
/source/gameengine/Ketsji/BL_Material.h (+2, -3) (Diff)
/source/gameengine/Ketsji/BL_Texture.cpp (+0, -2) (Diff)
/source/gameengine/Ketsji/KX_BlenderMaterial.cpp (+78, -43) (Diff)
/source/gameengine/Ketsji/KX_BlenderMaterial.h (+7, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+6, -6) (Diff)
/source/gameengine/Ketsji/KX_KetsjiEngine.cpp (+2, -1) (Diff)
/source/gameengine/Ketsji/KX_PolygonMaterial.cpp (+6, -4) (Diff)
/source/gameengine/Ketsji/KX_PolygonMaterial.h (+2, -1) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+9, -13) (Diff)
/source/gameengine/Rasterizer/RAS_BucketManager.cpp (+27, -16) (Diff)
/source/gameengine/Rasterizer/RAS_BucketManager.h (+2, -1) (Diff)
/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp (+9, -5) (Diff)
/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h (+6, -4) (Diff)
/source/gameengine/Rasterizer/RAS_IRasterizer.h (+4, -6) (Diff)
/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp (+7, -17) (Diff)
/source/gameengine/Rasterizer/RAS_MaterialBucket.h (+2, -5) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.cpp (+91, -95) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.h (+13, -16) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp (+36, -12) (Diff)
/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.h (+5, -4) (Diff)
/source/gameengine/Rasterizer/RAS_Polygon.cpp (+0, -18) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021