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
2009-04-12BGE Python APICampbell Barton
added defines PY_SET_ATTR_FAIL, PY_SET_ATTR_MISSING and PY_SET_ATTR_SUCCESS This is useful when objects that have user defined attributes (GameObject and Scene) When calling setattr on the parent, a return value of PY_SET_ATTR_FAIL means the attribute exists but failed to be set, so don't set the custom attribute.
2009-04-12added "toggle" an option for the property actuator.Campbell Barton
much less hassle then setting up a property sensor and 2 assignment actuators, or through python.
2009-04-12use long long rather then int for storing game logic properties.Campbell Barton
There were also some problems with int to python conversion - assigning a PyLong to a KX_GameObject from python would raise an error - PyLong were coerced into floats when used with internal CValue arithmetic Changes... - PyLong is converted into CIntValue for coercing and assigning from python - CValue's generic GetNumber() function returns a double rather then a float. - Print an error when a PyType cant be coerced into a CValue Tested with python, expressions and property sensor.
2009-04-12BGE Py APICampbell Barton
- setting the scene attributes would always add to the scenes custom dictionary. - new CListValue method from_id(id) so you can store a Game Objects id and use it to get the game object back. ob_id = id(gameOb) ... gameOb = scene.objects.from_id(ob_id) This is useful because names are not always unique.
2009-04-11bugfix from Moguri, AddReplica wasnt setting the light layer from the parentCampbell Barton
2009-04-11Fix for: [#18499] Particle size can only be set in steps of 0.1Janne Karhu
- Some button settings were wrong.
2009-04-10Mesh effector surface option:Janne Karhu
- Most mesh particle effectors can now have their effection point taken per particle as the nearest point on the mesh surface. - This is activated with the "surface" button in the effector field panel. - Activating the option adds a "surface" entry to the modifier stack where the state of the mesh is read from. For an example of usage see http://www.youtube.com/watch?v=3XkO1EAmJks.
2009-04-10Added function name to many of the PyArg_ParseTuple calls in gameengineAndre Susano Pinto
This way python raises more useful messages.
2009-04-10strip indentation from lines of OBJ files.Campbell Barton
OBJ's from VMD's molecular visualization program had this.
2009-04-10X3D Import was broken because some arguments from VRML were missing.Campbell Barton
2009-04-10Particle effector falloff maxdist etc. didn't work like it was supposed to.Janne Karhu
2009-04-10BGE API cleanup: ConstraintActuator.Benoit Bolsee
2009-04-10BGE BugfixCampbell Barton
The End key didn't work work at all for the keyboard sensor. Removed getEventList() since it was added since 2.48a release.
2009-04-10BGE API cleanup: StateActuator.Benoit Bolsee
2009-04-10BGE API cleanup: sound actuator.Benoit Bolsee
2009-04-09Added GameKeys.EventToCharacter(event, is_shift) so you can get the ↵Campbell Barton
character that would be types when pressing a key. Last commit was made in the pydocs folder only, so this includes changes mentioned in rev 19620.
2009-04-09BGE Py APICampbell Barton
- added keyboard senser attribute "events" to replace getEventList() - fix 2 memory leaks in the python api (was making a list but not returning it) - setting readonly attributes didnt give a good error message.
2009-04-09Remove redundant include GL/glu.h in KX_Dome.cpp.Benoit Bolsee
2009-04-09key logging didnt work for alphanum keys -=_+ and |\ since revision 2 and ↵Campbell Barton
nobody noticed!
2009-04-09BGE Text - fix for tab drawing as an @ and not adding white space.Campbell Barton
Tab width is always space*4.
2009-04-09BGE TextCampbell Barton
- multi-line strings for bitmap text - keyboard sensor now logs return and pad enter as "\n" BGE std::vector use in Value.cpp and RAS_MaterialBucket.cpp The size of a new list is known before making them, reduce re-allocs, though probably not a noticeable speedup.
2009-04-09Python 2.3 wouldn't compile with BGL.Campbell Barton
2009-04-09BGE API cleanup: 2DFilterActuator.Benoit Bolsee
2009-04-09Fix gcc compiling problem with C++ syntax in KX_Dome.cpp.Benoit Bolsee
2009-04-08small bge editsCampbell Barton
- Only try and remove light objects from the light list. - Only loop over mesh verts once when getting the bounding box - dont return None from python attribute localInertia when theres no physics objects. better return a vector still. - add names to send message PyArg_ParseTuple functions.
2009-04-08BGE patch #18350: Add sendMessage() to GameLogic. Added sendMessage to both ↵Benoit Bolsee
GameLogic and KX_GameObject.
2009-04-08BGE patch #18051: add localInertia attribute to GameObject.Benoit Bolsee
2009-04-08Patch #18462: Fisheye (Dome) and Spherical Panoramic mode in BGE.Benoit Bolsee
User guide: http://wiki.blender.org/index.php/Dev:Source/GameEngine/Fisheye_Dome_Camera Fixed two bugs from original patch: - deleting a text will clear the warp field from Game framing settings - removed spurious black dots along the edge of the cube map in the gameplayer Known limitation: - resizing of the screen doesn't work in the gameplayer Known bugs: - Texture with reflexion are not rendered correctly - Spurious problems with light
2009-04-08Fixed scons and cmake after BGE scenegraph and culling improvements.Benoit Bolsee
2009-04-08gcc wouldn't compile using a referenceCampbell Barton
2009-04-08BGE Scenegraph and View frustrum culling improvement.Benoit Bolsee
This commit contains a number of performance improvements for the BGE in the Scenegraph (parent relation between objects in the scene) and view frustrum culling. The scenegraph improvement consists in avoiding position update if the object has not moved since last update and the removal of redundant updates and synchronization with the physics engine. The view frustrum culling improvement consists in using the DBVT broadphase facility of Bullet to build a tree of graphical objects in the scene. The elements of the tree are Aabb boxes (Aligned Axis Bounding Boxes) enclosing the objects. This provides good precision in closed and opened scenes. This new culling system is enabled by default but just in case, it can be disabled with a button in the World settings. There is no do_version in this commit but it will be added before the 2.49 release. For now you must manually enable the DBVT culling option in World settings when you open an old file. The above improvements speed up scenegraph and culling up to 5x. However, this performance improvement is only visible when you have hundreds or thousands of objects. The main interest of the DBVT tree is to allow easy occlusion culling and automatic LOD system. This will be the object of further improvements.
2009-04-08etch-a-tonMartin Poirier
Use head not tail normal for bone orientation. Simplify roll to normal a bit.
2009-04-07MSVC9 project file updateBenoit Bolsee
2009-04-07Some users have odd joysticks with more then 8 axises, increased to 16 (so 4 ↵Campbell Barton
joysticks) Ideally there would be no limit but I dont think its worth the effort. Also had a bug in last commit for the pytyhon api's "axisSingle" attribute, UI index starts at 1 not zero.
2009-04-07BGE Py APICampbell Barton
- Added OpenGL access to the game engine as a module so you can import BGL directly.
2009-04-07BGE api added place holder docs and CListValue docs.Campbell Barton
2009-04-07Emacs has some rules about where and how to look for settings.Guillermo S. Romero
2009-04-07BGE Python API (small changes)Campbell Barton
- Make BGE's ListValue types convert to python lists for printing since the CValue GetText() function didnt work well- printing lists as [,,,,,] for scene objects and mesh materials for eg. - Check attributes are descriptor types before casting. - py_getattr_dict use the Type dict rather then Method and Attribute array.
2009-04-07Updated bge_api_validate_py.txt to check for undocumented attributesCampbell Barton
All types methods and attributes are now documented (except for some types have no epydoc .py files for at all)
2009-04-07BGE Python APICampbell Barton
Use each types dictionary to store attributes PyAttributeDef's so it uses pythons hash lookup (which it was already doing for methods) rather then doing a string lookup on the array each time. This also means attributes can be found in the type without having to do a dir() on the instance.
2009-04-07[#18407] Trouble w/ Bevel_Center.pyCampbell Barton
add python encoding info
2009-04-07bugfix #18196Ton Roosendaal
Halos for objects (not particles) can get texture color, but they skipped the alpha mapt-to channel when that was set. Actually bug from ehh 1995!
2009-04-07BGE Joystick SensorCampbell Barton
- Raised limit of 2 axis to 4 axis pairs (4==8 joysticks axis pairs) - Added a new Joystick Sensor type "Single Axis", so you can detect horizontal or vertical movement, rather then just Up/Down/Left/Right - added Python attribute "axisSingle" so you can get the value from the selected axis (rather then getting it out of the axis list) - renamed Py attribute "axisPosition" to "axisValues" (was never in a release) If we need to increase the axis limit again just change JOYAXIS_MAX and the button limits.
2009-04-07error in last commitCampbell Barton
2009-04-07Fix for: [#18027] Strange behaviour of Explode modifier in combination with ↵Janne Karhu
SubSurf - Explode didn't use the dmcache index for getting the particles emitter position. - One "tri or quad"-comparison tested the wrong index. Leading to one quad converting into a tri.
2009-04-07Texture effector nabla didn't have a correct initial value and it's button ↵Janne Karhu
explanation needed some work.
2009-04-07Harmonic effector force wasn't working properly at all. A silly vector ↵Janne Karhu
normalization where it shouldn't have been.
2009-04-06Fix for: [#18354] Controlling with a texture the particles DENSITY parameter ↵Janne Karhu
doesn't work. If the density texture was taken into account with hair parent particles there were cases when there weren't any parents left to interpolate children from. Now a density texture is only taken into account for hair child particles.
2009-04-06bugfix #18398Ton Roosendaal
When using 'angle' display for camera, the 'lens' ipo didn't update this button. Implementation still lacks a bit... having both variables in the camera struct is asking for troubles. Put on the re-think list for 2.5!
2009-04-06BGE Python APICampbell Barton
- added a module for the BGE - GameTypes, only contains types. - added KX_PYATTRIBUTE_DUMMY attributes for KX_Light, KX_PolyProxy, KX_VertexProxy, so all types should give correct results from a dir(). - added a script to check for missing methods in the epydocs - bge_api_validate_py.txt