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-07-01BGE: Remove KX_PolygonMaterial reference in documentation.Porteries Tristan
2015-06-28BGE: added clamping of angular velocity.Sybren A. Stüvel
Angular velocity clamping was missing from the BGE. It is implemented similarly to the linear velocity clamping. It is needed to be able to drive physical simulations of systems that have a limited rotational speed. Reviewed by: campbellbarton, panzergame, ton Differential Revision: https://developer.blender.org/D1365
2015-06-24BGE: Missing dot in 2d filter actuator documentation.Quentin Wenger
2015-06-24BGE: Fix 2dfilter actuator mode constants.Quentin Wenger
2015-06-23BGE: Fix 57065a, missing dots.Porteries Tristan
2015-06-23Minor tweaks to bge.constraints docsCampbell Barton
2015-06-23Update bge.constraints API docCampbell Barton
D1357 by @Matpi with edits.
2015-06-18update hand written rst docsCampbell Barton
- minor corrections - link to new manual - wrap lines at 120
2015-06-17BGE: remove outdated doc of KX_PolygonMaterial, update doc of KX_BlenderMaterialQuentin Wenger
This patch suppresses the outdated KX_PolygonMaterial.rst documentation file and moves the example contained in it into KX_BlenderMaterial.rst. The file KX_BlenderMaterial.rst receives some extra formatting changes (lists are not supported in methods arguments types). Reviewers: kupoman, campbellbarton, lordloki, panzergame, moguri Reviewed By: panzergame, moguri Projects: #game_engine Differential Revision: https://developer.blender.org/D1355
2015-06-16BGE: correct case for createConstraint keywordCampbell Barton
2015-06-16BGE: Fix for precision lost in setBackground/getBackground at Video TextureJorge Bernal
Now internally the variables are processed as floats avoiding int->float->char conversions that are causing precision lost. A check for int numbers is maintained to keep compatibility with old behaviour. Reviewers: ben2610, campbellbarton, moguri, hg1 Reviewed By: moguri, hg1 Subscribers: campbellbarton Projects: #game_engine Differential Revision: https://developer.blender.org/D1301
2015-06-15BGE: Fix T43918: adding submodule bge.app including attribute version.Porteries Tristan
This patch adds the submodule app to bge. apps contains constants similar to bpy.app, particularly version (tuple of three ints like 2.75.1). It was requested in T43918 and set as TODO. The patch also adds rst doc for the module. Reviewers: moguri, kupoman, lordloki, panzergame, campbellbarton Reviewed By: lordloki, panzergame, campbellbarton Subscribers: marcino15 Projects: #game_logic, #game_python, #game_engine Differential Revision: https://developer.blender.org/D1348
2015-06-06Revert "BGE : KX_VertexProxy support for more than 2 UV channel."Mitchell Stokes
This reverts commit fb0dd596e9a58f095730359a11759c40ea46be44. This commit reintroduced a deprecated API that we'd rather not see in a release. A better solution is being worked on.
2015-05-27BGE Python API: Completing doc for bge.types.KX_FontObjectQuentin Wenger
This adds description of the Font object and about its (only one) attribute, as well as an example of use. Reviewers: campbellbarton, fsiddi, dfelinto, moguri Reviewed By: dfelinto Subscribers: lordloki Projects: #documentation, #game_engine Differential Revision: https://developer.blender.org/D863
2015-05-20BGE: Some changes for the constraint documentThomas Szepe
* Change the constraint type alignment to vertical. * Changed PHY_CONE_TWIST_CONSTRAINT to the correct value. * Some minor changes.
2015-05-20BGE: Remove chapter in KX_WorldInfo python APIThomas Szepe
2015-05-20BGE: Use CameCase code style for KX_WorldInfo python API.Porteries Tristan
2015-05-17Cleanup: pep8Campbell Barton
2015-05-12Doc: add bpy.utils.previewsCampbell Barton
Updated sphinx_doc_gen.py to better handle pure py-classes.
2015-05-12Doc: correct rst syntaxCampbell Barton
also remove some API docs from example
2015-05-12Doc: minor fixesCampbell Barton
- check for class/static methods assumed nonzero args. - subclass references and set-flag items are now sorted. - use 'order' for Py operator mix-ins, so operator settings don't show in random order.
2015-05-10BGE: Cleanup constraints documentationThomas Szepe
* Fixing Python example. Behavior has changed with Blender 2.74 * Adding missing return type * Fixing typo simbolic * Fixing note for upper/lower limit * Adding link to constraints constants
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-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-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-24correcting typos in python api docsInes Almeida
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-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-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-13Make python gotchas more clear (regarding handling of stale data)Gaia Clary
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-10Python API docs, don't hard-code sphinx themesCampbell Barton
also set the theme to classic (as it was for 2.73)
2015-04-07BGE: New API method getDisplayDimensionsThomas Szepe
This patch adds a new API function to get the actual display dimensions in pixels. Reviewers: dfelinto, sybren, lordloki, moguri Reviewed By: lordloki, moguri Differential Revision: https://developer.blender.org/D648
2015-04-06BGE: fixed nomenclature of KX_Scene::addObject and KX_Scene::AddReplicaObjectSybren A. Stüvel
KX_Scene::addObject: Changed the parameter "other" to "reference", as "other" doesn't mean anything. KX_Scene::AddReplicaObject: Changed the parameter "parentobject" to "referenceobject", as the parameter did NOT contain a parent object in any way. Now both functions use the same kind of name for the same thing. Thanks to panzergame / Porteries Tristan.
2015-03-27rename BGE attr from D1091 (match methods)Campbell Barton
2015-03-27BGE: New isDynamicSuspended python attributePorteries Tristan
This is a new KX_GameObject attribute that it increments the possibilities of optimization during the game Additionally the unused m_bSuspendDynamics variable is removed. Reviewers: moguri, agoose77, lordloki Reviewed By: agoose77, lordloki Subscribers: agoose77, lordloki Differential Revision: https://developer.blender.org/D1091
2015-03-24Updating python API documentation for function bge.render.makeScreenshotInes Almeida
2015-03-24BGE: Remove old world bge.render APIThomas Szepe
This patch can be used to remove the old world bge.render API if the new world API D157 is used. If the new world API is applied we can remove the old API because the old has newer worked. The patch keep the two old working methods for backward compatibility. Reviewers: campbellbarton, moguri Reviewed By: campbellbarton, moguri Subscribers: brecht Differential Revision: https://developer.blender.org/D158
2015-03-24BGE: Add new world API KX_WorldInfo (KX_Scene)Thomas Szepe
This Patch will add a the world API (mist, background, ambient) to KX_WorldInfo. The new API uses now attributes. Reviewers: campbellbarton, moguri Reviewed By: moguri Subscribers: klauser, brecht Differential Revision: https://developer.blender.org/D157
2015-03-23BGE: Add setMistType and setMistIntensity API.Thomas Szepe
This patch adds the missing setMistType() and setMistIntensity() to the API Reviewers: campbellbarton, brecht, moguri Reviewed By: campbellbarton, brecht, moguri Subscribers: campbellbarton, dingto Differential Revision: https://developer.blender.org/D149
2015-03-23BGE: Multitexture world (mist, ambient) fixThomas Szepe
This patch fix the existing word API for mist and global ambient lighting. Add deprecated message to disableMist() Add setUseMist(enable). Reviewers: dfelinto, campbellbarton, moguri Reviewed By: moguri Subscribers: solarlune, jta, brecht Projects: #bf_blender:_next Differential Revision: https://developer.blender.org/D148
2015-03-15BGE - new read-only attribute in KX_GameObject python api (LOD level)Pierluigi Grassi
Added a new "current_lod_level" property to the python api of KX_GameObject. The property returns the current lod level of the game object. The purpose of the property is activate logic routines only when an object is at a certain lod-distance from the camera, avoiding to separately recomputing the same distance in the logic script. Usage in python script might look like: owner = bge.logic.getCurrentController().owner lod_level = owner.currentLodLevel if lod_level == 0: ...do something else: ... object might be too distant Reviewers: dfelinto, kupoman, moguri Reviewed By: kupoman, moguri Subscribers: lordloki Projects: #game_engine Differential Revision: https://developer.blender.org/D978
2015-02-21python bge.types module - Updating documentation to close T40778Ines Almeida
2015-02-21Documentation update: references to OpenGL tutorials in the python bgl moduleInes Almeida
2015-02-10Typo fix + clarification in mathutils.Vector exampleSybren A. Stüvel
2015-02-09BGE - Vehicle Controller - add background and API checks for arguments of ↵Ines Almeida
function calls Fixes T41570 crash For readability, attachDir was renamed to downDir and the Python API docs renamed accordingly
2015-02-08BGE physics: When colliding, report first contact point to PythonSybren A. Stüvel
This patch adds two parameters to the functions in the collisionCallbacks list. The callback function should thus be like this: ``` def on_colliding(other, point, normal): print("Colliding with %s at %s with normal %s" % (other, point, normal)) game_ob.collisionCallbacks.append(on_colliding) ``` The `point` parameter will contain the collision point in world coordinates on the current object, and the `normal` contains the surface normal at the collision point. The callback functions are checked for the number of arguments `co_argcount`. The new `point` and `normal` arguments are only passed when `co_argcount > 1` or when `co_argcount` cannot be determined. Reviewers: brita_, campbellbarton Subscribers: sergey, sybren, agoose77 Projects: #game_physics Differential Revision: https://developer.blender.org/D926
2015-02-01Documentation: Support documenting constructors in class __doc__Sybren A. Stüvel
Python types defined in C can now start their docstring with a `.. class:: TypeName(args)` line, to document their constructor. In that case the documentation writer is responsible for indenting the remainder of the docstring by 3 spaces, matching the generated documentation.
2015-02-01mathutils: added exponential map to QuaternionSybren A. Stüvel
Added conversion to and from exponential map representation. This representation is useful for interpolation of > 2 quaternions, or in PD controllers. Implementation in C functions quat_to_expmap, quat_normalized_to_expmap, and expmap_to_quat with Python API, unit tests and documentation. Added Quaternion.to_exponential_map() and Quaternion(3-vector) to Python API. Reviewers: campbellbarton Projects: #bf_blender Differential Revision: https://developer.blender.org/D1049
2015-01-29cleanup: pep8Campbell Barton
also remove empty class parenthesis