Mitchell Stokes
4e7417e9fd
The Blenderplayer wasn't freeing GPU_Textures since according to BLI_threads, GPU_free_image() was never being called from the main thread. Calling BLI_threadapi_init() when the Blenderplayer starts sets the current thread as the main thread and solves the problem.
2011-07-07 10:37:46 +00:00
Mitchell Stokes
0eacdc94ba
BGE Animations: Removing unused code and adding some more comments.
2011-07-07 03:53:24 +00:00
Joerg Mueller
34c5784f99
Merging trunk up to r38167.
2011-07-06 20:26:56 +00:00
Brecht Van Lommel
11645e7a3f
Fix #27877 : writing .avi files > 4 GB not working on windows.
...
Solution is to replace "long" by "int64_t" and "fseek" by "_fseeki64", because
long on 64 bit windows is still 32 bit.
2011-07-06 10:19:04 +00:00
Mitchell Stokes
eb55fd1b17
BGE Animations: Fixing a typo: fram -> frame
2011-07-05 22:33:01 +00:00
Joerg Mueller
3f3c6f5f1f
Merging from trunk up to r38119.
2011-07-05 13:54:25 +00:00
Mitchell Stokes
ceabc6d119
BGE Animations: Various fixes and bits of cleanup to get the action actuator to behave more like it did in trunk. The Pepper version is still more sensitive to pulses than the trunk version, but this is more accurate. I might try to address this, but I'm not sure.
2011-07-05 05:22:02 +00:00
Mitchell Stokes
e66b778fd6
BGE Animations: Updating some copy+pasted license blocks.
2011-07-04 21:21:49 +00:00
Mitchell Stokes
1b7ebd3857
BGE Animations: Adding preliminary support for blend shape actions on different layers. This, and shape action blending in general still require more work though.
2011-07-04 21:19:11 +00:00
Mitchell Stokes
46d12b480e
BGE Animations: Making the action actuator's loop end play mode work better.
2011-07-03 02:57:50 +00:00
Mitchell Stokes
5d7921691b
BGE Animations: Reimplementing support for the "Flipper" play mode of the action actuator.
2011-07-03 02:51:14 +00:00
Mitchell Stokes
5f4f75c51a
BGE Animations: Adding in layer weights to allow for layer blending.
2011-07-03 01:59:17 +00:00
Mitchell Stokes
b4b26b735c
BGE Animations: Fixing a bug where an action actuator could update a frame property when it wasn't active.
2011-06-30 20:08:05 +00:00
Mitchell Stokes
12596969af
BGE Animations: Shape drivers are now working again.
2011-06-30 19:33:13 +00:00
Mitchell Stokes
b85e0c3e85
BGE Animations: Moving the BL_Action::IsDone() implementation from the header file to the source file.
2011-06-29 02:45:08 +00:00
Mitchell Stokes
3afe0e9c88
BGE Animations: Beginning work on layer blending. Blending armature actions works, but needs more testing. Also, currently the mode is forced to ADD and the weight to 1.
2011-06-29 02:42:46 +00:00
Mitchell Stokes
d122f24c1a
BGE Animations: Fixing a bug with priority and non continuous animations.
2011-06-29 01:53:17 +00:00
Mitchell Stokes
de3c95a09c
BGE Animations: Adding blendin for Shape Actions.
2011-06-29 01:05:12 +00:00
Brecht Van Lommel
8e90ba3b20
Fix last part of #26850 : OS X game player did not react to quit event.
2011-06-27 14:34:58 +00:00
Brecht Van Lommel
49f84ef9ed
Fix part of #26850 : OS X game player was showing _NSAutoreleaseNoPool()
...
error messages on start. These were coming from initializing the SDL video
subsystem as part of Joystick init. We do not need this, as video stuff is
covered by GHOST, most likely this was conflicting.
2011-06-27 14:06:11 +00:00
Campbell Barton
33e554799b
Minor warning cleanup & fix
...
- comment/remove assignments from values to themselves.
- add case break statements (no functional change but some source code checkers notice).
- fix python errors when the sculpt brush is None.
2011-06-27 03:36:14 +00:00
Xiao Xiangquan
b429af10d0
merge from trunk #37722
2011-06-24 03:30:50 +00:00
Mitchell Stokes
a165ad251e
BGE Animations: Removing no longer used code and variables.
2011-06-24 00:31:13 +00:00
Mitchell Stokes
f969b813a4
BGE Animations: Making BL_Action::SetFrame() not so dependent on timing. This should smooth out things like setActionFrame().
2011-06-23 23:19:39 +00:00
Mitchell Stokes
12ca476b8b
BGE Animations: For KX_GameObject.setActionFrame(layer, frame), frame should be a float, not a short.
2011-06-23 23:18:53 +00:00
Mitchell Stokes
ea47125f16
BGE Animations: Exposing KX_GameObject's GetActionFrame() and SetActionFrame() to Python. KX_GameObject.setActionFrame() seems to still have some issues, which I suspect to be a timing thing. I may need to find a better way to set the local time.
2011-06-23 22:44:24 +00:00
Dalai Felinto
0c8311fdf9
revert commit 27133: Committing patch [ #27133 ] "Fix for for Object Color in BGE" by Kupoman
...
This was causing a lot of backward compatibility problems and side effects.
It has to be done properly, linked with Material ObjectColor shader_flag or at least the TF OBCOLOR (which apparently worked at some point so I've been told).
If you need to use OBCOLOR simply keyframe the obcolor and it will work as before.
2011-06-23 22:29:02 +00:00
Mitchell Stokes
f1a2d46aa0
BGE Animations: Adding the concept of priority back. Priority is handled on a per layer basis.
2011-06-23 22:12:49 +00:00
Mitchell Stokes
0fbca841ef
BGE Animations: Making the play modes for the Acton Actuator behave more like they have in the past. The only one that still needs work now is Flipper. Property, Loop End, Loop Stop, Play, and Ping Pong should all now be behaving as they used to.
2011-06-23 22:00:54 +00:00
Mitchell Stokes
545bf50e1d
BGE Animations: Adding shape actions to BL_Action. This means Shape Actions now work through the Action actuator. I still need to handle blendin for shape actions though.
2011-06-23 19:49:53 +00:00
Mitchell Stokes
8d179ca920
BGE Animations: BL_Action now creates a PointerRNA only when constructed instead of on each Update() call.
2011-06-23 19:20:28 +00:00
Mitchell Stokes
2d2aa95227
BGE Animations: Making shape actions work again:
...
* BL_DeformableGameObject is no longer responsible for handling keys, BL_ShapeDeformer is
* BL_ShapeDeformer also creates a copy of the key on construction and puts it back on the mesh when destructed. This avoids us permanently modifying Blender data.
* I'm not too fond of clearing out the key every frame, but this works and I can't think of another alternative at the moment (something may be possible with some key juggling)
2011-06-23 19:09:09 +00:00
Joerg Mueller
413bc87e4f
Merge with trunk r37757.
2011-06-23 17:30:56 +00:00
Campbell Barton
bb3742fe91
correction to recent commit & made ffmpeg includes only add when enabled.
2011-06-23 15:58:41 +00:00
Campbell Barton
2023db70a8
cmake option to build without an audio library.
2011-06-23 09:27:56 +00:00
Joerg Mueller
c89b4e4b66
3D Audio GSoC:
...
- Implemented a nice rechanneling solution with unofficial speaker arrangement standards similar to what OpenAL soft has
- Renamend AUD_Channel in the C API to AUD_Handle
- Removed the unlogical 7.2 speaker configuration, that's a hardware only config
2011-06-21 20:24:40 +00:00
Joerg Mueller
044887b5a4
3D Audio GSoC:
...
- Created Handle classes
- Changed Reference counting completely
- Fixing some streaming bugs
- Completely disabled OpenAL Buffered Factories (they were unused anyway)
2011-06-21 20:21:43 +00:00
Joerg Mueller
207911bdb3
Merge with trunk r37677
2011-06-20 22:55:18 +00:00
Xiao Xiangquan
9a2f36b50f
handle SpaceType and UserPref popups
2011-06-20 10:07:46 +00:00
Campbell Barton
968b2a8afb
rename cmake include/libraries to conform with suggested cmake names
2011-06-18 14:12:54 +00:00
Campbell Barton
758450ee49
BGE: Camera.getScreenPosition wasn't working because of an unhandled exception when called with a non vector argument (object or object name).
2011-06-17 07:27:27 +00:00
Joerg Mueller
a90d30c863
3D Audio GSoC:
...
GameEngine Python access sound actuator's sound (with setting! :-D).
2011-06-16 09:13:29 +00:00
Mitchell Stokes
65af1dcecd
BGE Animations: Making sure the Action Actuator has a valid action before attempting to play.
2011-06-16 01:59:50 +00:00
Mitchell Stokes
c02006bc2b
BGE Animations: Adding the ipo flag options to the action actuator. This still needs more testing.
2011-06-16 01:18:52 +00:00
Mitchell Stokes
1c0a6c6468
Blenderplayer: Setting G.main to NULL after it's freed to avoid issues later with GPU_free_images()
2011-06-15 23:43:02 +00:00
Mitchell Stokes
a3e296fc40
Committing patch #25676 Anisotropic filtering in viewport and BGE by me.
...
This patch adds anisotropic filtering of textures in the viewport and the BGE. The quality of the filtering is adjustable in the user preferences under System. For more information on anisotropic filtering:
http://en.wikipedia.org/wiki/Anisotropic_filtering
One current limitation of this setup (having the option a user preference) is it makes runtimes more troublesome. Runtimes don't have user preferences set, so for now the blender player defaults to 2x AF. Options will be added later to change this value (probably a command line option).
2011-06-15 18:59:22 +00:00
Campbell Barton
08c155845d
remove unused arguments
2011-06-15 14:06:25 +00:00
Xiao Xiangquan
40981d872f
merge from trunk r37405
2011-06-15 08:28:56 +00:00
Joerg Mueller
8ff0c2e107
Merge with trunk r37475.
2011-06-14 12:06:21 +00:00
Dalai Felinto
a2dda7c74d
BGE Patch: [ #27425 ] Allow to change the damping of the camera actuator
...
##########
original name: "Allow to change the strenght of the "go behind" constraint of the camera actuator"
The camera actuator is an actuator that drive the camera to follow an object, with a set of constraint.
Currently, when the object followed rotate on himself (like a person, or an helicopter), the camera is really slow to go behind (at least 10 seconds).
This patch gives the UI to tweak the strenght of the 'go behind'[named damping] constraint.
###########
epydocs (rst) updated too
2011-06-13 17:08:33 +00:00