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-11Fix for a relative paths issue in the game engine. G.sce was beingBrecht Van Lommel
kept as the original file, but that can't work correct for solving relative paths once a .blend in another directory is loaded. The reason it went OK with the apricot tech demo is that the images there were lib linked into the level file, which still worked. Now it sets G.sce to the current loaded .blend file. Note that the python config file path still uses the first loaded .blend file so it looks in the same location each time. Also added some NULL pointer checks in the joystick code because it was crashing there on Mac, there's similar checks in related functions so I'm assuming this was just a missed case.
2008-10-04Game player: preserve material, debug settings, between .blend files.Brecht Van Lommel
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-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-17Fix for bug #4192: game engine armatures that are dynamically addedBrecht Van Lommel
but don't have an action got the pose of already added armatures, even though they're not related. This also fixes an issue where the armature in Blender would end up in the pose from the game after ESC, removes unneeded copies made during armature evaluation, and also solves the constraint copying hack.
2008-09-16Fix (harmless) error print about GameLogic.globalDict being lost. AlsoBrecht Van Lommel
fixed some memory leaks in this code and simplified it.
2008-09-15Small tweak to get things compiling again.Kent Mein
Kent
2008-09-15Added -d debug option for blenderplayer, and remove someBrecht Van Lommel
invalid/unnecessary opengl calls on shader errors.
2008-09-15replaced static make_absolute_filename with BLI_convertstringcwdCampbell Barton
2008-09-14Fix for bug #5758 and #17585: armatures with IK constraint did notBrecht Van Lommel
work in the game player, now the IK lib is linked into the player. Makefiles/Scons/CMake buildsystems have been updated. Fix materials nodes to work in the game player.
2008-09-14Fix for bug #7097: blender multitexture materials in the game engineBrecht Van Lommel
player did not enable mipmapping when falling back to texfaces. Also commented out code that disabled mipmapping in the player on Mac OS X. If that is a workaround for a bug it is a really poor one, and hopefully fixed now since this code is from 2002 or earlier.
2008-09-14Various game engine fixes:Brecht Van Lommel
* Fix issue with add transparency mode with blender materials. * Possible fix at frontface flip in the game engine. * Fix color buffering clearing for multiple viewports, it used to clear as if there was one. * Fix for zoom level in user defined viewports, it was based on the full window before, now it is based on the viewport itself. * For user defined viewports, always use Expose instead of Letterbox with bars, the latter doesn't make sense then.
2008-09-13Game engine: added Rasterizer.get/setMaterialMode to set texface,Brecht Van Lommel
multitexture or glsl materials. This does not affect existing scenes, only newly created ones.
2008-09-12Fixes for game engine runtime on Mac OS X, there were issuesBrecht Van Lommel
working with relative paths. Still doesn't work optimal, since paths are relative to game.blend which is in the app bundle under Contents/Resources, so other files need to be moved there manually at the moment.
2008-09-12save and load configuration actuator, (option in game actuator menu)Campbell Barton
saves a marshal'd GameLogic.globalDict to the blendfile path with the blend extension replaced with bgeconf Use this in YoFrankie to save keyboard layout and graphics quality settings.
2008-09-11Bugfix: saved game engine runtimes failed to load library .blendBrecht Van Lommel
files with relative paths.
2008-09-11removed debug printCampbell Barton
2008-09-10Patch 17508: Blender Web Plugin - XEmbed. Enable XEmbed integration of ↵Benoit Bolsee
blenderplayer, using -i as input parameter to pass embedder window id. create a minimal web plugin to embed blenderplayer on web pages (using gecko/mozilla as browser). Only for *nix.
2008-09-06converted my gen_utils.h fix to PyObjectPlus.hKent Mein
Also added a fix for PyMarshal_WriteObjectToString Now I just need to figure out linking of the gameengine on my imac. Kent
2008-09-05Merge of first part of changes from the apricot branch, especiallyBrecht Van Lommel
the features that are needed to run the game. Compile tested with scons, make, but not cmake, that seems to have an issue not related to these changes. The changes include: * GLSL support in the viewport and game engine, enable in the game menu in textured draw mode. * Synced and merged part of the duplicated blender and gameengine/ gameplayer drawing code. * Further refactoring of game engine drawing code, especially mesh storage changed a lot. * Optimizations in game engine armatures to avoid recomputations. * A python function to get the framerate estimate in game. * An option take object color into account in materials. * An option to restrict shadow casters to a lamp's layers. * Increase from 10 to 18 texture slots for materials, lamps, word. An extra texture slot shows up once the last slot is used. * Memory limit for undo, not enabled by default yet because it needs the .B.blend to be changed. * Multiple undo for image painting. * An offset for dupligroups, so not all objects in a group have to be at the origin.
2008-08-29BGE Py API - GameKeys.EventToString() utility function, makes key ↵Campbell Barton
configuration menu's easier to write. own error with blenderplayer, wasnt decreffing the GameLogic module, probably didnt matter since python was restarted anyway, but is incorrect.
2008-08-20GameLogic.globalDict blenderplayer now keeps settings when loading new blend ↵Campbell Barton
files. workaround for python stopping and starting by storing the dictionary as marshal'd data. this means only python types are supported. This feature is needed so when switching from a menu to a level blendfile, the configuration isnt lost.
2008-08-06* blenderplayer wasnt useing the scenes frame rate.Campbell Barton
* GBE Python API's alignToVect wasnt clamping the align ammount from 0.0-1.0 * Generated images arnt animated - use for a test to see if the textures animated.
2008-08-06Made Mathutils its own module rather then GanmeLogic.MathutilsCampbell Barton
2008-07-14importing the GameLogic module was being done by adding the text "import ↵Campbell Barton
GameLogic" to the start of all scripts used in the game engine, this meant every error line number was off by 1 (quite annoying). better to do this to the dictionary that the scripts run with.
2008-06-30Fix for bug #7753: after game engine drawing with vertex arrays,Brecht Van Lommel
nurbs/curves/text dissappears. This also removes the "vertex arrays" option and enables it always for OpenGL version >= 1.1 - there's no need to have an option to make things render faster disabled by default, also it should work stable now.
2008-06-17Merge of apricot branch game engine changes into trunk, excluding GLSL.Brecht Van Lommel
GLEW ==== Added the GLEW opengl extension library into extern/, always compiled into Blender now. This is much nicer than doing this kind of extension management manually, and will be used in the game engine, for GLSL, and other opengl extensions. * According to the GLEW website it works on Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris. There might still be platform specific issues due to this commit, so let me know and I'll look into it. * This means also that all extensions will now always be compiled in, regardless of the glext.h on the platform where compilation happens. Game Engine =========== Refactoring of the use of opengl extensions and other drawing code in the game engine, and cleaning up some hacks related to GLSL integration. These changes will be merged into trunk too after this. The game engine graphics demos & apricot level survived my tests, but this could use some good testing of course. For users: please test with the options "Generate Display Lists" and "Vertex Arrays" enabled, these should be the fastest and are supposed to be "unreliable", but if that's the case that's probably due to bugs that can be fixed. * The game engine now also uses GLEW for extensions, replacing the custom opengl extensions code that was there. Removes a lot of #ifdef's, but the runtime checks stay of course. * Removed the WITHOUT_GLEXT environment variable. This was added to work around a specific bug and only disabled multitexturing anyway. It might also have caused a slowdown since it was retrieving the environment variable for every vertex in immediate mode (bug #13680). * Refactored the code to allow drawing skinned meshes with vertex arrays too, removing some specific immediate mode drawing functions for this that only did extra normal calculation. Now it always splits vertices of flat faces instead. * Refactored normal recalculation with some minor optimizations, required for the above change. * Removed some outdated code behind the __NLA_OLDDEFORM #ifdef. * Fixed various bugs in setting of multitexture coordinates and vertex attributes for vertex arrays. These were not being enabled/disabled correct according to the opengl spec, leading to crashes. Also tangent attributes used an immediate mode call for vertex arrays, which can't work. * Fixed use of uninitialized variable in RAS_TexVert. * Exporting skinned meshes was doing O(n^2) lookups for vertices and deform weights, now uses same trick as regular meshes.
2008-05-11fix BGE bug #8668: Behavior of os.getcwd() is not consistent between ↵Benoit Bolsee
operating systems Add a function GameLogic.expandPath() that works like Blender.sys.expandpath() and is also available in the BlenderPlayer. Fix the game actuator in the BlenderPlayer to work like in Blender: - try first to load the .blend from the current working directory - if not found, try to load from the startup .blend or runtime base directory
2008-05-06Fixes Makefiles for mac_compat_glext.h by updating some include paths.Kent Mein
Kent
2008-05-04missed out on some BLI_convertstringcode's, also found that playing relative ↵Campbell Barton
quicktime paths from the python api never worked, was using the 'Scene' type cast to a char.
2008-04-29getting ARB shaders working again in GE.Jean-Luc Peurière
This is is a kludge, and only to get a release working. later solution is to use glew
2008-04-17Patch from GSR that a) fixes a whole bunch of GPL/BL licenseChris Want
blocks that were previously missed; and b) greatly increase my ohloh stats!
2008-04-16This patch spawns from this game engine issue:Kent Mein
[#7113] GE crash pressing as soon as P on 64 bit Note: glext.h has been removed from the source If you get errors compiling with it you have 2 options download/install glext.h (preferred method) or set WITH_BF_GLEXT=false If your a user and having problems with game engine try setting the env var: WITHOUT_GLEXT 1 Kent
2008-04-13fix BGE bug #8880: blenderplayer closing when esc is pressed Benoit Bolsee
ESC now quits the game by default in all modes unless a keyboard sensor is set on ESC. In this case, the game designer must arrange for an alternative way to quit the game.
2008-03-30== bugfix ==Andrea Weikert
fix for [#6950] Blender crashes when .blog file top line is 160 characters or more - made sure BLI_convertstringcode doesn't return more than 240 chars - went through all callers and fixed places where string passed to BLI_convertstringcode was too short - TODO: look into increasing sample->name and sound->name too, I prevented crashes, but filename might get shortened.
2008-02-13Added a global string to be used for the tempdir. since the user preference ↵Campbell Barton
is not loaded in background mode and the user preference is not validated and has no fallback. 'btempdir' is set with BLI_where_is_temp() - This tries to use U.tempdir but falls back to $TEMP or /tmp/
2008-02-04merging game_engine branch changes into trunk, 2d-filters and opengl speedupHamed Zaghaghi
2007-12-05This is a modified version of this patch:Kent Mein
[#7660] Solaris 10 x86 support (Makefiles) Hopefully it will not mess up anything for anyone else. I removed some hardcoded static libs and made NAN_*_LIB definitions so they could be overridden, to allow greater flexability. Let me know if there are any problems/questions. Kent
2007-11-06Patch [#7743] Enable display lists when vertex arrays are enabled, by Ovidiu ↵Hamed Zaghaghi
Sabou. this patch enable GE two use both vertex array and display lists. and speed up the engine a little, by the way thanks ovidiu.
2007-08-07This should fix up saving a blender runtime.Kent Mein
If you look at the log, the last change to this file I was trying to fix game engine bug #6667. In so doing I added a print usage if you do not pass any arguments to the gameplayer. Things should work better now. Kent
2007-06-27This is a fix for game engine bug #6667Kent Mein
http://projects.blender.org/tracker/index.php?func=detail&aid=6667&group_id=9&atid=306 I moved some of the X11 initation code down a little bit so that if you run gameplayer with no args or gameplayer -h it will not crash even if you do not have X11 present. (All it does is print usage) Kent
2007-01-08= game engine fixes=Tom Musgrove
two fixes to the GE by Charlie
2006-12-27-fixes in player: draw physics debugging, only render frames when actually ↵Erwin Coumans
updated, fix with hierarchies not properly build (causing crashes)
2006-11-30Reserved some Bullet 2.x constraint data.Erwin Coumans
Although we will delay the main Rigid Body user interface after 2.43 release early 2007, I need some constraint data/UI to make progress with COLLADA Physics. Added RigidBody constraint UI LR_ALTKEY+LR_CTRLKEY+LR_SHIFTKEY+ P will bake rigidbody Contribution by RCRuiz, Ramon Carlos.
2006-11-17CMake lists initial submission. Documentationand further verification for ↵Jacques Beuarain
different platforms will follow soon. This was just tested against current CVS on MSVC 2005 with Verse, QuickTime, OpenEXR, Player all on.
2006-11-06* compiler command-line fix for scons/win32-mingwNathan Letwory
2006-07-19use 'fixedtime/enable all frames' from the blend fileErwin Coumans
2006-07-19accidently replaced initGamePlayerPythonScripting with ↵Erwin Coumans
initGamePythonScripting, causing the gameplayer to crash on all platforms (lack of PyInitialize()...
2006-07-06some minor webplugin changes, new loading .blend, upgraded version to 2.42, ↵Erwin Coumans
enabled PhysicsConstraints module within sandbox.
2006-06-27patch from Ralf Hölzemer (cheleb) forStephen Swaney
#4499 Fix for build of blenderplayer on windows/mingw/scons fixes some invalid cflags for gcc on windows/mingw/scons -if sys.platform=='win32': +if (sys.platform=='win32') & ( Environment().subst('$CC') != 'gcc'): cflags = ['/GR'] Patch looks ok but no mingw evironment here to test. So mingw/sconsers to your testing stations. We can always roll back!