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
2008-10-09BGE bug fix: fix several bugs and inconsistencies in sound actuator:Benoit Bolsee
- support stopping of loop sound - support stopping by python - keep state of actuator in sync with audio device. The lack of state sync was causing several other problems: - actuator stop playing the sound - sound chopped before the end - not possible to pause sound
2008-10-08my changes broke the "level" option for joystick keys being held between statesCampbell Barton
2008-10-08* Joystick sensor is now only triggered from events of the selected type.Campbell Barton
* Keyboard sensor - added (back?) support for qualifiers (Hold buttons in the UI)
2008-10-07joystick updateCampbell Barton
* use SDL events to trigger the sensor, trigger was being forced every tick. removed workaround for this problem. * added "All Events" option, similar to all keys in the keyboard sensor. This means every event from the joystick will trigger the sensor, however only events from the selected type (axis/button/hat) is used to set the positive state of the sensor. * Added python function sens_joy.GetButtonValues(), returns a list of pressed button indicies. * Removed pressed/released option for joystick buttons, it was the same as the invert option.
2008-10-04Bugfix: modified game material settings in blender didn't getBrecht Van Lommel
taken into account when loading a new .blend.
2008-10-04Game player: preserve material, debug settings, between .blend files.Brecht Van Lommel
2008-10-03 interpreted request from Carsten - make message sensor work.Campbell Barton
object message actuators needed the prefix OB when sending a message to a specific object.--This line, and those below, will be ignored-- M source/gameengine/Converter/KX_ConvertActuators.cpp M source/blender/blenkernel/BKE_blender.h M source/blender/src/buttons_logic.c M source/blender/blenloader/intern/readfile.c
2008-10-03Blender works with python 2.6, our own import functions that replace pythons ↵Campbell Barton
internal function needed updating for an extra in argument in 2.6. if importing is not working blender should not crash (was crashing on exit)
2008-10-03error with GameLogic.globalDict loading. It would replace the dictionary ↵Campbell Barton
rather then updating it. This meant the BGE would load in an old dictonary replacing the loaded dict, loosing settings. was also missing a decref for marshal data
2008-10-02Python 2.4 should build with the game engine now, no thanks to python for ↵Campbell Barton
switching from char to const char
2008-10-02BGE patch: add frameProp to Ipo actuator (Carsten's request).Benoit Bolsee
2008-10-01BGE patch: new force field constraint actuatorBenoit Bolsee
A new type of constraint actuator is available: Force field. It provides a very similar service to the Fh material feature but with some specificities: - It is defined at the object level: each object can have different settings and you don't need to use material. - It can be applied in all 6 directions and not just -Z. - It can be enabled/disabled easily (it's an actuator). - You can have multiple force fields active at the same time on the same object in different direction (think of a space ship in a tunnel with a repulsive force field on each wall). - You can have a different damping for the rotation. Besides that it provides the same dynamic behavior and the parameters are self explanatory. It works by adapting the linear and angular velocity: the dynamic is independent of the mass. It is compatible with all other motion actuators. Note: linear and anysotropic friction is not yet implemented, the only friction will come from the object damping parameters. Support for friction will be added in a future revision.
2008-10-01BGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)Benoit Bolsee
Implementation of the PHY_IPhysicsController::SetMargin(), GetMargin(), SetRadius() and GetRadius() for Bullet and Sumo to allow resetting the Near sensor radius. For bullet use the new setUnscaledRadius() function to change sphere radius. In pPreparation of a Fh constraint actuator: - Add KX_IPhysicsController::GetRadius() - Fix implementation of KX_BulletPhysicsController::GetVelocity() (velocity at a point in geometric coordinate) - Don't try to set velocity on static object (Bullet will assert) - Add KX_GameObject::GetVelocity() for C access to local velocity
2008-10-01+ hook up a few more parameters, that can be useful for Bullet soft bodiesErwin Coumans
+ work-in-progress to hook up cluster constraints (they are better than node/vertex pinning, because they maintain a proper world coordinate system)
2008-10-01add support for Bullet soft body constraints against a Bullet rigid body, as ↵Erwin Coumans
well as 'fixing' it. Just use the existing rigid body joint to use it. For now, it searches the closest node/vertex to the pivot. So you can use multiple constraints/joint to attach a cloth, soft body etc.
2008-09-29BGE patch: fix force application on soft body. Force is applied on each ↵Benoit Bolsee
node, it must be reduced by the same extend.
2008-09-29don't crash when trying to make a soft body 'fh' objectErwin Coumans
2008-09-29Add Fh/Rot Fh to Bullet.Erwin Coumans
2008-09-29Update the Bullet/game buttons_bullet, to better reflect usage. Erwin Coumans
1) Anisotropic friction works for static and dynamic objects 2) For soft bodies, assume triangle mesh if no bounds a chosen 3) Form factor == inertia scaling factor, it was actually hooked up in Bullet 4) Only show 'radius' if sphere is chosen, or no bounds+dynamics (== sphere bounds)
2008-09-29added anisotropic friction support for Bullet. Both for static and dynamic ↵Erwin Coumans
objects
2008-09-28make gui backwards compatible with this weeks softbody blend filesErwin Coumans
2008-09-28enable -noaudio option, so it actually works (and doesn't get overwritten by ↵Erwin Coumans
a game flag). audio initialization delays startup of game engine 2 seconds add -nojoystick commandline option: it takes 5 seconds everytime to start the game engine, while there IS no joystick. In other words: blender -noaudio -nojoystick improves workflow turnaround times for P - ESC from 7 seconds to 1 second! Improved Bullet soft body advanced options, still work-in-progress. Make sure to create game Bullet soft bodies from scratch, it is not compatible with last weeks builds.
2008-09-28BGE patch: create new BulletSoftBody data block to store bullet soft body ↵Benoit Bolsee
specific parameters. Previously we tried to share the parameters with the blender render soft body but there were too many differences. MSVC project files updated.
2008-09-26BGE patch: local/global flag to distance contraint actuator.Benoit Bolsee
Previously the distance constraint actuator was always working in local axis. The local flag allows to cast the ray along a world axis (when the flag is not selected). The N flag works differently in this case: only the object orientation is changed to be parallel to the normal at the hit point. The linear velocity is now changed so that the speed along the ray axis is null. This eliminates the need to compensate the gravity when casting along the Z axis.
2008-09-26Bugfix: the game player did not initialize tiff and quicktime, so loadingBrecht Van Lommel
those file formats did not work. Also made sure G.order is initialized as otherwise some reading tiff goes wrong.
2008-09-26support concave soft bodies, preliminary. could be used for cloth too. need ↵Erwin Coumans
vertex pinning/constraint attach to other objects.
2008-09-26Allow Bullet soft bodies to be created using a AddObject actuator. Added a ↵Erwin Coumans
fake world coordinate system to game soft bodies, although the vertices are already in world space. Added Bullet/Gimpact concave collision detection to Blender. If your build system isn't updated yet, please add extern/bullet2/src/BulletCollision/Gimpact/* This allows moving/dynamic concave triangle meshes (decomposing meshes into compound convex shapes, and using 'compound' shapes is still preferred)
2008-09-26don't apply vertex transformation for deformable game soft bodies.Erwin Coumans
set a fake world transform for game soft bodies, based on center of the AABB, so visiblity and some game logic works. note: this world transform is not smooth.
2008-09-25avoid crash and apply force for soft bodies.Erwin Coumans
copy normals for soft body vertices, to get proper lighting
2008-09-25[#17679] BGE print statement when start and when finishCampbell Barton
from Dalai Felinto (dfelinto) would useually not encourage prints in these cases, except its often useful to know if an error happened since you last pressed Pkey and without this you end up needing to manually clear the terminal.
2008-09-25re-use some Blender soft body settings for Bullet game soft bodiesErwin Coumans
2008-09-25BGE patch: add Debug button next to object state. The object state mask will ↵Benoit Bolsee
be printed at runtime with the debug info as a comma separated list of state numbers (1..30) for each active state bit. The reserved property name __state__ is used for that purpose (users should not create a property with that name).
2008-09-25improved game soft bodies, works for objects that are using 'set smooth'Erwin Coumans
use shape matching by default for game soft bodies store soft body index for game vertices
2008-09-25BGE patch: add advanced parameters for SoftBody. Add Rasterizer.drawLine() ↵Benoit Bolsee
Python function.
2008-09-24Created a KX_SoftBodyDeformer for real-time soft bodies.Erwin Coumans
Added SetDeformer/GetDeformer() to KX_GameObject. Store mapping between graphics/soft body vertices (work-in-progress) Real-time soft body integration is still very premature, but for a quick preview, see this testfile: http://bulletphysics.com/ftp/pub/test/index.php?dir=blender/&file=soft_test.blend
2008-09-24BGE bug #17657 fixed: dRotY doesn't work properly after 90 degrees rotation.Benoit Bolsee
This problem is caused by discontinuities in the conversion orientation matrix -> euler angles: the angle sign can switch and thus the direction of the rotation produced by the dRot Ipo. To avoid this bug, the matrix->euler conversion must be avoided during the game. I took the following approach that is compatible with Blender (identical effect in the game and in the 3D view): - no change in Add mode: Rot and dRot are treated as additional rotation to the orientation at the start of the Ipo. There is no matrix->euler conversion and thus no discontinuities. - Rot Ipo are treated as absolute rotation. All 3 axis should be specified but if they are not, the startup object orientation will be used to set the unspecified axis. By doing a matrix-> euler conversion once at the start, the discontinuities are avoided. If there are also dRot curves, they are treated as delta of the corresponding Rot curve or startup angle. - dRot Ipo are treated as Add mode in Local axis. Note about Add mode: Rot and dRot curves are treated identically during the game. However, only dRot curves make sense because they don't interfere with the object orientation in the 3D view.
2008-09-23Make GameLogic work for python autocomplete (after running the BGE once at ↵Campbell Barton
least) only clear newly added items from the gameLogic dictionary rather then the whole dictionary.
2008-09-23BGE patch #17569 approved: Make FrameProp: work in Shape Action. PyDoc updated.Benoit Bolsee
2008-09-22BGE patch: KX_STATEx constant to allow simple state manipulation in setState()Benoit Bolsee
The constants KX_STATE1 to KX_STATE30 can be used with setState() to change the object state in a python controller. The constants are defined in the GameLogic module so that the full name is GameLogic.KX_STATE1 to GameLogic.KX_STATE30 but you can simplify this with the import statement: from GameLogic import * cont = getCurrentController() ob = cont.getOwner() ob.setState(KX_STATE2) #go to state 2 KX_STATEx constants are defined as (1<<(x-1)) Binary operators |, &, ^ and ~ can be used to combine states: You can activate more than one state at a time with the | operator: ob.setState(KX_STATE1|KX_STATE2) #activate state 1 and 2, stop all others You can add a state to the current state mask with: state = ob.getState() ob.setState(state|KX_STATE3) #activate state 3, keep others You can substract a state to the current state mask with the & and operator: state = ob.getState() ob.setState(state&~KX_STATE2) #stop state 2, keep others You can invert a state with the ^ operator: state = ob.getState() ob.setState(state^KX_STATE2) #invert state 2, keep others
2008-09-22KX_PythonInit.cpp - workaround for current sandbox and possible fix. no real ↵Campbell Barton
change for now but others may want to look into it. blendef.h - removed some unused defines. editipo_mods.c - deselect all was selecting instead.
2008-09-21BGE real-time soft bodies, step 2 / 3: create a btSoftBody. Next step is ↵Erwin Coumans
hooking up / deform graphics mesh and choose collision shape. Note: feature is still disabled.
2008-09-21game engine now compiles with SDL disabled. CDROM and Joystick wont function ↵Campbell Barton
in this case
2008-09-21set the visibility state based on the objects render option in the outliner.Campbell Barton
- saves adding UV's to faces just to set the invisibility option or having an logic bricks to set the visibility state.
2008-09-21BGE bug fix: dupligroup scale not correctly applied to bullet shape.Benoit Bolsee
2008-09-21BGE patch: allow Bullet mesh shape sharing for objects copied with ALT-D.Benoit Bolsee
2008-09-20[#17600] char* -> const char*Campbell Barton
Thanks to Sean Bartell (wtachi), was causing many many warnings which distracted from the real problems.
2008-09-20BGE patch: new 'Advanced Settings' button to keep special Bullet options ↵Benoit Bolsee
away from main UI. Three features that were on the main UI interface are now moved to the Advanced Settings panel: Margin, Actor (that becomes Sensor Actor) and No sleeping. Sensor Actor is now a feature: it can be turned on and off for all types of objects, and not just static objects. Select the Sensor Actor button to make the object visible to Near and Radar sensor. The button is selected by default for dynamic objects and unselected by default for static objects, to match previous behavior.
2008-09-18BGE patch: change constraint location actuator to work in local coordinates. ↵Benoit Bolsee
It won't change anything for root objects but will be of some use for child objects.
2008-09-18This file did not compile, but is also not part of the build target...Ton Roosendaal
Fixed neverheless, patch #6258 from Early Ehlinger
2008-09-18Fix for bug #3858: the game engine mouse focus sensor did not workBrecht Van Lommel
correct if there was more than one camera. It shoots rays from the active camera, but used the viewport from whichever camera was drawn last, now it uses the correct vieport.