Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-24BGE : Fix black material on meshes without materials in blenderplayer.Porteries Tristan
Blenderplayer forgot to initialize the default material (defmaterail) with function init_def_material(). This reverts also the plumber commit 2fa4a48bcef05671890fafc3fe50a8fa619f0259. Reviewers: campbellbarton
2015-05-20doxygen: corrections/updatesCampbell Barton
Also add depsgraph & physics
2015-05-20BGE: Use CameCase code style for KX_WorldInfo python API.Porteries Tristan
2015-05-19BGE: Fix T40555: LibLoad material caching issuePorteries Tristan
Previously we don't merge material cached list, it create dangling pointer and memory leak. Now we merge material cache list during the scene merge, and remove material in this list during the library free. Reviewers: agoose77, dfelinto, hg1, pgi, campbellbarton, moguri Reviewed By: campbellbarton, moguri Subscribers: campbellbarton, youle, kupoman Projects: #game_engine Differential Revision: https://developer.blender.org/D1278
2015-05-17BGE: Fix T42244 LibLoad crash with logic brick KX_TouchSensorPorteries Tristan
I remove duplicate and wrong code which treat the special case of KX_TouchSensor. And Also the re-conversion of linked logic brick.
2015-05-17BGE: Fix T43761 No re-creation of display list after a mesh modification.Porteries Tristan
I also removed unused flags in RAS_ListRasterizer.cpp.
2015-05-15BGE: Fix T41299 Group API for child object in dupli instance group.Porteries Tristan
2015-05-15BGE: Fix stupid typo error in DupliGroupRecursePorteries Tristan
2015-05-15BGE: Cleanup : merge 3 loop in 1 in function DupliGroupRecurse.Porteries Tristan
2015-05-15BGE: Fix T44700 mesh without material in blenderplayer.Porteries Tristan
If a mesh doesn't have a material we don't initialize the mSavedData in KX_BlenderMaterial to avoid crash.
2015-05-14BGE: Add 'Lock Translation' for dynamic objectsThomas Szepe
The XYZ translation lock was missing for dynamic object. Reviewed By: panzergame
2015-05-14BGE: Fix: Double jumps are not working with character motion actuatorThomas Szepe
The actual character motion actuator triggers every frame the jump method. Adding an edge detection to trigger the jump method. Reviewers: lordloki, sybren, moguri Reviewed By: moguri Differential Revision: https://developer.blender.org/D1220
2015-05-14BGE: Code Cleanup: LOD hysteresis calculationThomas Szepe
* Cleanup duplicated code. * Remove unnecessary "this->" Reviewers: kupoman, lordloki Reviewed By: kupoman, lordloki Differential Revision: https://developer.blender.org/D1293
2015-05-12BGE : Fix Bullet shape margin for triangle mesh static objectsPorteries Tristan
2015-05-12BGE: Adding material IPO support to GLSL materialsMitchell Stokes
Most of this patch was created by Daniel Stokes, I'm mostly just cleaning it up and testing it. Still todo: hardness. I need to figure out how to handle the integer -> float conversion on a dynamic uniform. Reviewers: psy-fi, brecht Reviewed By: psy-fi Subscribers: psy-fi Differential Revision: https://developer.blender.org/D511
2015-05-10BGE : Fix crash during physics mesh update.Porteries Tristan
Currently we can't update the physics mesh of an added rigid body. The cause is that that we need to update all shapes to say that the mesh was changed, for static object we don't do that previously because we use a odd way to reallocate memory at the same place. So now when a mesh is changed we iterate all physics controllers which use the same shape info and recreate its shape with the correct mesh. example file : {F168100} Reviewers: scorpion81, sergof, hg1, sybren, moguri, agoose77 Reviewed By: moguri, agoose77 Subscribers: sybren Differential Revision: https://developer.blender.org/D1269
2015-05-10BGE: Fix T43822 Videotexture does not use sky color for off-screenJorge Bernal
rendering Make scene background color as default for render-to-texture instead of current blue color (0, 0, 255). It is very useful for mirrors setups. Reviewers: moguri, ben2610, sybren, panzergame, hg1 Reviewed By: panzergame, hg1, moguri Subscribers: mpan3 Differential Revision: https://developer.blender.org/D1287
2015-05-09Fix T38335: incorrect triangle index in raycast with more than 2 quadsPorteries Tristan
eb81153896 broke the fix for T38335, and this fix was incomplete, now we iterate by triangles and polys in the same while block.
2015-05-09Cleanup: warning (sequence-point)Campbell Barton
2015-05-08Fix T38335: incorrect triangle index in raycast resultPorteries Tristan
Previously we forgot to do a special operation for indexes to convert a quad to two triangles.
2015-05-08BGE: Cleanup function UpdateMesh and SetMesh in CcdPhysicsController.cppPorteries Tristan
"if (value == true)" -> "if(value)" "if (ptr == NULL)" -> "if (!ptr)" "vector<bool>" -> "std::vector<bool>" And other blender typo.
2015-05-06BGE : KX_VertexProxy support for more than 2 UV channel.Porteries Tristan
I have added an optional named "index" argument for methode get/setUV, I have also modified the and set to deprecated methodes setUV2 and getUV2 : the doc was wrong and the methode can't be called anyway because it declared as VARARG in the .h and convert directly the args value to a vector in the .cpp. Reviewers: sybren, lordloki, hg1 Reviewed By: lordloki, hg1 Subscribers: agoose77 Differential Revision: https://developer.blender.org/D1240
2015-05-06BGE: Fix compound child shape added on instance game objectPorteries Tristan
2015-05-05BGE: Fix collision callbacks for compound controllersPorteries Tristan
It fix some mistakes in b5e96530353ef22d184a60cd2b59a5e451ee211f and made a more safety behavior for collision callbacks used in compound controllers during adding and removing.
2015-05-05BGE: Remove function DisableCcdPhysicsController and ↵Porteries Tristan
EnableCcdPhysicsController in CcdPhysicsEnvironment Replace EnableCcdPhysicsController by AddCcdPhysicsController and DisableCcdPhysicsController by RemoveCcdPhysicsController. Tested with compound shapes and collision sensors. Reviewers:agoose77, ideasman42
2015-05-04BGE: Cleanup KX_BlenderSceneConverter.cppPorteries Tristan
This commit is a little cleanup for whitspaces, braces, spaces around operators and useless keywords struct/class. Reviewers:sybren
2015-05-04BGE Player: Fix compilation error after cleanup commit da8a62aSergey Sharybin
2015-05-04BGE: Added 'ghost' arg to KX_GameObject.suspendDynamics() methodSybren A. Stüvel
The implementation of this 'ghost' argument already existed in the C++ source, but wasn't exposed to Python yet.
2015-05-02Fix ghash assert during BGE libload.Porteries Tristan
The assert message was caused by the multi call of BLO_library_append_begin in KX_BlenderSceneConverter::LinkBlendFile.
2015-04-27Fix T44464: Viewport mipmaps no longer toggle offCampbell Barton
2015-04-26BGE : addObject in python without reference object.Porteries Tristan
Making the reference argument optional for the addObject function. ``` scene.addObject("Cube") ``` This allows to keep the rotation, scale and position of the original object. To avoid layer problems with lights if the reference arguments is None, the new object have the same layer than the active layers in scene. Reviewers: lordloki, moguri, hg1, sybren Reviewed By: hg1, sybren Subscribers: agoose77 Projects: #game_engine Differential Revision: https://developer.blender.org/D1222
2015-04-24BGE : fix bugs with physics collision mask/groupPorteries Tristan
Currently there are bugs with physics objects in inactive layers, character and softbody. I added a function in CcdPhysicsEnvironement to know if a physics controller is currently active and for soft body I added the correct function in UpdateCcdPhysicsController to re-add a softbody in the dynamics world. The bug was introduced in D1243 commit 3d55859 Reviewers: hg1, scorpion81, lordloki, moguri, agoose77, sergof Reviewed By: sergof Subscribers: youle, moguri Differential Revision: https://developer.blender.org/D1253
2015-04-23Cleanup: warningsCampbell Barton
2015-04-21BGE: scene.pre_draw_setup[] callbackDalai Felinto
This callback allows the user to change the camera data right before the rendering calculations. scene.pre_draw[] is not enough here, because if you want to change the camera matrices (projection/modelview) the culling test is done before that (after pre_draw_setup[] though). Reviewers: moguri, campbellbarton Differential Revision: https://developer.blender.org/D1251 Python sample code using this. The sample scene would need a default camera (not used for rendering), a dummy camera ('Camera.VR'), and two cameras ('Camera.Left', 'Camera.Right') that will be used for the actual rendering. ``` import bge def callback(): scene = bge.logic.getCurrentScene() objects = scene.objects vr_camera = objects.get('Camera.VR') if bge.render.getStereoEye() == bge.render.LEFT_EYE: camera = objects.get('Camera.Left') else: camera = objects.get('Camera.Right') vr_camera.worldOrientation = camera.worldOrientation vr_camera.worldPosition = camera.worldPosition def init(): scene = bge.logic.getCurrentScene() main_camera = scene.active_camera main_camera.useViewport = True scene.pre_draw_setup.append(callback) objects = scene.objects vr_camera = objects.get('Camera.VR') vr_camera.useViewport = True vr_camera.setViewport( 0, 0, bge.render.getWindowWidth(), bge.render.getWindowHeight() ) ```
2015-04-20Compilation error fix for MSVC: It does not support expressions in arraySergey Sharybin
declarations
2015-04-20Fix: BGE crashes when RunPythonCallBackList() is called with maxargcount != ↵Sybren A. Stüvel
minargcount
2015-04-20Fix: solved BGE compiler error on Linux/gccSybren A. Stüvel
2015-04-19BGE : Standardization of callbacks execution.Porteries Tristan
A new function (RunPythonCallBackList) to call all python functions contained in a python list was developed. This function has: - first argument is the python list of callbacks - second argument is a python list of arguments - third argument is the minimum quantity of arguments - forth argument is the maximum quantity of arguments It improves flexibility and supports *args. Reviewers: moguri, dfelinto, campbellbarton, sybren Reviewed By: campbellbarton, sybren Subscribers: sybren Projects: #game_engine Differential Revision: https://developer.blender.org/D1102
2015-04-19BGE: Support for collision group/mask from the api + activated on EndObject.Porteries Tristan
A Python API for the collision group / mask has been added: ``` KX_GameObject.collisionGroup KX_GameObject.collisionMask ``` The maximum number of collision groups and masked has been increased from eight to sixteen. This means that the max value of collisionGroup/Mask is (2 ** 16) - 1 EndObject will now activate objects that were sleeping and colliding with the removed object. This means that, unlike now, if a rigid body starts sleeping on top of another object, when the latter is removed the rigid body will activate and fall, rather than float midair as before. Collision groups that do not intersect used to collide on the first frame. Now this has been fixed so that they collide appropriately. Thanks to agoose77 for his help. Reviewers: scorpion81, hg1, agoose77, sergof Reviewed By: agoose77, sergof Subscribers: sergof, moguri Projects: #game_physics, #game_engine Differential Revision: https://developer.blender.org/D1243
2015-04-18BGE: Fix T43536 logic.getCurrentScene() returning wrong scene inPorteries Tristan
pre_draw and post_draw calls A simple insert of KX_SetActiveScene(scene) before pre_draw and post_draw calls solves the issue. Reviewers: dfelinto, sybren, brita_, campbellbarton, moguri, lordloki Reviewed By: moguri, lordloki Projects: #game_logic, #game_engine Differential Revision: https://developer.blender.org/D1129
2015-04-17BGE : Fix light layer checkPorteries Tristan
The layers in Blender are using a bit field for the 20 layers. The light layer value was limited to 20, so the highest usable light layer was five. The patch modify the range and add layer out of range error messages. Reviewers: sybren, hg1, moguri Reviewed By: hg1, moguri Projects: #game_engine Differential Revision: https://developer.blender.org/D1238
2015-04-17BGE: Fix for T44374 Crash when collision sensor deactivatedJorge Bernal
Don't allocate memory for sensor logic brick if it is deactivated
2015-04-16BGE: Fix for T42341 Sensor.frequency is badly namedJorge Bernal
"Frequency" parameter is renamed to "Skip" in the LogicBricks sensors as it represents skipped frames between pulses. Naming something (frequency) the exact opposite of what it represents (period) was the worst choice. Also, a new BGE python attribute 'skippedTicks' was introduced. 'frequency' attribute is maintained but deprecated. Internally, freq variable is used yet at DNA_Sensor to maintain compability and to avoid do_versions. Thanks to Sybren for the investigation. {F162440} Reviewers: campbellbarton, sybren, moguri, hg1 Reviewed By: sybren, hg1 Differential Revision: https://developer.blender.org/D1229
2015-04-15Cleanup: warnings, wsCampbell Barton
2015-04-15BGE: subclass with more than 1 argument, D1237Porteries Tristan
In the BGE you can't create a subclass with more than 1 argument like : "player = Player(owner, 10)" I have modified the py_base_new to check only the first argument of args tuple. Now we can do : class Player(types.KX_GameObject): def __init__(self, gameobj, life): print("create new player :", self, ", life :", life) player = Player(own, 50)
2015-04-11BGE: Add keyword arguments to createConstraint APIThomas Szepe
Added keyword arguments to createConstraint. Changed initial values for the pivod XYZ form 1 to 0.0. Changed initial values for the axis Z form 1 to 0.0. Delete the parsing for 4 parameters, because parsing only the X pivot is not necessary, also it was not working correctly (int instead of float). Reviewers: brita_, sybren, lordloki, campbellbarton, moguri Reviewed By: lordloki, campbellbarton Subscribers: campbellbarton Differential Revision: https://developer.blender.org/D705
2015-04-11BGE: FIX T43537: ImageMirror does not work in BlenderPlayer with quad bufferBenoit Bolsee
In quad-buffer stereo mode, the GE render pass ends with the right eye on the right buffer, but we need to draw on the left buffer to capture the render. Reviewed By: agoose77, HG1
2015-04-10BGE : Fix T43800: getScreenVect()/getScreenPosition()/modelview_matrix ↵Thomas Szepe
returns incorrect results The getScreenVect(), getScreenPosition() and modelview_matrixmethod returns an incorrect results if called after the camera has been translated on the same frame. The model view matrix will be update only once per frame with Cam->SetModelviewMatrix in KX_KetsjiEngine::RenderFrame. Using GetWorldToCamera as model view matrix to get an actual view matrix even if the camera is moved. Reviewers: sergey, dfelinto, brita_, sybren, hg1, campbellbarton Reviewed By: hg1, campbellbarton Projects: #game_engine Differential Revision: https://developer.blender.org/D1170
2015-04-08BGE : Fix T36285 Wrong viewport scale.Porteries Tristan
Fix of T36285, I just invalidate projection matrix when a camera switch to viewport mode, because we need to rewrite the projection matrix in RenderFrame. It worked with old blender version because when you use viewport render one camera is added in the camera list and initialize its projection matrix for the first time. But when we used several cameras + viewport for splitscreen we had issues. Reviewers: dfelinto, hg1, ben2610, lordloki, moguri Reviewed By: moguri Projects: #game_rendering, #game_engine Differential Revision: https://developer.blender.org/D1202
2015-04-07BGE: use tuple for returning display sizeCampbell Barton