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
2012-02-23BGE is compilable by MSVC againSergey Sharybin
Compilation error was mostly caused by trying to use namespace std before it was actually defined (e.g. before any include of stl header). It's not actually good idea to use namespaces in header files -- it's really easy to run into namespace conflicts and so. Resolved by not using "using namespace" in header files and using full quality accessing to stl collections (e.g. std::vector).
2012-02-23code cleanup: dont set the namespace in STR_String.h - 'using namespace ↵Campbell Barton
std', since this is included in many places.
2012-02-20minor edits to have the game engine and player building.Campbell Barton
2012-02-19svn merge ^/trunk/blender -r44213:44235 --- fixes bmesh shading bug [#30125]Campbell Barton
2012-02-18BGE bug #30173: ImageRender not working when initialized on frame 1. This ↵Benoit Bolsee
was because the canvas display area was initialized on render frame 1, which happens after logic frame 1. Fixed in blender and player by initializing the area on canvas creation.
2012-02-15svn merge ^/trunk/blender -r44076:44118Campbell Barton
2012-02-14font objects in blenderplayer fail when object with alpha is renderedDalai Felinto
the embed bge has its own DisableForText() routine which prepares the GL flags for the text render. For some reason blenderplayer is taking a slim approach and going straight for the rendering. This routine helps to address this bug/case (non reported, foundin my own project files). If need arises we should move this to its own routine incorporating the other GL tests the embed bge performs.
2012-02-14Fixing up some buggy cleanup code in BL_ShapeDeformer. This code was causing ↵Mitchell Stokes
crashes and corrupting shape keys. This commit fixes the following bugs: [#30059] Shape Keys is gone in Blender if you use Add Object Actuator in BGE [#30024] Segmentation fault after addObject when using shape keys [#28683] segfault in shapekey conversion code when running a game (YF, level home) twice
2012-02-11svn merge ^/trunk/blender -r43995:44024Campbell Barton
2012-02-10bge font objects: fix for difference in size when object has a parentDalai Felinto
for after 2.62 I would like to try if using doubles would help to increase the precision here. Also now that the mipmap patch is reverted we may want to look at this problem from a different perspective. RES could be calculated taking the object size in relation to the camera (i.e. size and distance, ignoring rotation). That may solve both problems of wrong resolution and lack of smoothness. For the time being users still need to use object.resolution to fine tune the rendered text.
2012-02-10reverting commit [43876] Fix for aliased fonts in the game engineDalai Felinto
2012-02-10bugfix [#30127] alpha in FontObjects not working in blenderplayerDalai Felinto
2012-02-08svn merge ^/trunk/blender -r43934:43976Campbell Barton
2012-02-07Fix for [#29910] Crash on reading KX_SoundActuator.soundJoerg Mueller
aud is now imported automatically on BGE start.
2012-02-06svn merge ^/trunk/blender -r43887:43918Campbell Barton
2012-02-05BGE bug #21947: Softbodies not using object size. Fixed by scaling the shape ↵Benoit Bolsee
before creating the soft body.
2012-02-05svn merge ^/trunk/blender -r43864:43887Campbell Barton
2012-02-04BGE bug #29133: Render to Texture not working. Fixed by using same viewport ↵Benoit Bolsee
to render and capture.
2012-02-04Fix for aliased fonts in the game engine.Alex Fraser
- Mipmaps are generated in BLF when drawing text in-game. In that case, padding around each glyph is increased to prevent bleeding. - Texture filtering is turned on for in-game text. - All glyphs are now "twisted": the leading edge is brought a small distance forward, to prevent z-fighting in overlapping (kerned) glyphs. This happens both in the game engine and the rest of the UI, but should have no effect in the UI due to Z-compression in the clipping matrix. Reviewed and approved by bdiego; see patch [#29882] in the tracker. Tested by dfelinto.
2012-02-03svn merge ^/trunk/blender -r43830:43864Campbell Barton
2012-02-02Fix #29381: Navmeshs frees not guarded allocated memory and leakedSergey Sharybin
There were two issues discovered: - Triangles mapping didn't free in buildNavMeshData if there's no recast data for an object - KX_NavMeshObject used not-guarded allocation for polygons storage, but used guarded freeing stuff to free used memory, producing error messages in the console and leading to memory leak. Wasn't actually harmful for users -- there was no memory corruptions and error happens only when object was set up in a way when navmesh can't work in theory.
2012-02-01svn merge ^/trunk/blender -r43751:43819, need to look into changes made to ↵Campbell Barton
editmesh_loop.c from this range still
2012-01-30pydoc cleanup + remove unused bge.logic constantsDalai Felinto
+ adding PINGPONG as action actuator constant in rst
2012-01-23svn merge ^/trunk/blender -r43616:43639Campbell Barton
2012-01-23Fix for "[#29911] Crash on reading BL_ActionActuator.channelNames"Mitchell Stokes
The crash occurred when an action actuator was attached to a non-armature object because objects that aren't armatures do not have pose data. A NotImplementedError is now raised if someone tries to access any of the following with an action actuator attached to a non-armature object: BL_ActionActuator.channelNames BL_ActionActuator.getChannel() BL_ActionActuator.setChannel()
2012-01-23Committing patch "[#27676] Change window size/resolution in realtime" by me.Mitchell Stokes
Description: This patch allows the user to change the size of the window (or the resolution in fullscreen mode) using the new bge.render.setWindowSize() method. This only works in the Blenderplayer since it doesn't make a whole lot of sense for the embedded player.
2012-01-22svn merge ^/trunk/blender -r43564:43609Campbell Barton
2012-01-22Committing patch "[#29763] Adding an active_events property to ↵Mitchell Stokes
SCA_PythonKeyboard and SCA_PythonMouse" Here is the description: As the summary says, this patch adds a new event to both SCA_PythonKeyboard and SCA_PythonMouse. This property is similar to the events property that both have, but it only returns events which are not KX_NO_INPUTSTATUS. This moves the "no input" check from Python to C, which gave my input handling code a 2x speed up. Python sucks (performance-wise) with iterating lists and SCA_PythonKeyboard has close to 200 events (I think something like 177, but I don't know for sure).
2012-01-22cucumber merge: world scaling + video texture constantsDalai Felinto
revisions: 38166,38167,38177,38179,38180,38187,38242 To be implemented after merge: 1) add pydocs(rst) for the video texture new defines 2) see if a NodeSetLocalMatrix would fit well #43439 by kupoman Changing the worldTransform and localTransform python attributes to use BLI_math to simplify the code #38242 by kupoman Adding the constants SOURCE_ERROR, SOURCE_EMPTY, SOURCE_READY, SOURCE_PLAYING, SOURCE_STOPPED to the video texture module. Updates to the documentation will follow after a merge with trunk #38187 by kupoman Updates to the documentation to reflect that worldScale is now writable, and added localTransform and worldTransform to KX_GameObject. #38180 by kupoman The Transform attribute of KX_GameObject was based on world space data. I converted that one to worldTransform, and added a localTransform for local space transform information. #38179 by kupoman Fixed the transform attribute of KX_GameObject's set method to properly deal with negative scaling. #38177 by kupoman Updated the transform property on KX_GameObject so that it is now read/write, and added the corresponding set method. Also simplified the get method by calling GetOpenGLMatrix instead of making the matrix myself. #38167 by kupoman Adding a read only transform attribute to KX_GameObject that returns a 4x4 matrix representing the object's transformations. #38166 by kupoman Adding a worldScale attribute to KX_GameObject. This attribute scales the object independently of its parent's scale.
2012-01-21change filepath limit from 240 to 1024Campbell Barton
2012-01-16svn merge ^/trunk/blender -r43392:43420Campbell Barton
2012-01-16opengl render save ignored alpha settings. also some FILE_MAX defines missed ↵Campbell Barton
last commit.
2012-01-16use defines for property name lenghths in the BGE, were using 31,32,64,100.Campbell Barton
2012-01-13svn merge ^/trunk/blender -r43294:43338Campbell Barton
2012-01-12Some small fixes to get things compiling on solaris with cmake.Kent Mein
There are also some changes that need to be done to libmv but I'm leaving those out so I can get it patched upstream first. (Only works with gcc/g++ if we want to use sun's compiler we would need to get rid of all of our annonymous structs which I don't think we want to do at this point, example: typedef struct wmNDOFMotionData { union { float tvec[3]; // translation struct { float tx, ty, tz; }; // this would need to be fixed // something like this or something similar: struct { float x, y, z; } t; }; ... ) Kent
2012-01-12de-duplicate object conversion code in BGECampbell Barton
2012-01-12Cucumber - AA for blenderplayer and fullscreenDalai Felinto
.............................................. svn merge ^/branches/soc-2011-cucumber -r 38968,38970,38973,39045,40845 Notes: ====== * we replaced fullscreen by playerflag in DNA_scene.types.h. So no doversion here, I think this is a small reversion can't see any potential problem in forcuing users to re-check fullscreen. If the file is really old (<250) it will doversion though; * (for after commit) it would be nice to gray out the width/height when desktop=True * for a rainy day: it would be nice to have other ghost modes (e.g. screensaver) to support desktop + MSAA as well. It's not a huge deal given that I don't even know if anything else work (apart from windowed, fullscreen and embed) but it doesn't hurt to have it updated as well. * there is something strange with outliner. I think space_outliner merge-info is not in sync with the ^/ folder. It's probably a wrong merge early in cucumber. Commit Logs: =========== # 40845 by dfelinto remove desktop and fullscreen properties. They are both part of playerflag now also I removed the fullscreen from the DNA completely. I don't think we need doversion that.. #39045 by kupoman The Desktop option is now greyed out when fullscreen is not checked rather than disappearing from the UI completely. #38973 by kupoman Adding a checkbox to the UI to allow the full screen Blender Player to use the current desktop resolution instead of the resolution setting. #38970 by kupoman Multisampling now works in a fullscreen Blender Player. #38968 by moguri Committing a patch from Mitchell Stokes (Moguri) to include a setting in the UI for the Blenderplayer multisampling.
2012-01-11svn merge ^/trunk/blender -r43278:43294Campbell Barton
2012-01-11svn merge ^/trunk/blender -r43220:43278 --accept postponeCampbell Barton
2012-01-11bge camera actuator: -X and -Y axisDalai Felinto
The camera actuator only allows to look the object from its front face. Given that Blender takes -Y as the default forward orientation, the current functionality doesn't let a camera to track an actor from behind. This patch allows for -X and -Y axis tracking. This way a camera over the shoulders of a character is possible (without resorting to rotate the mesh/armature original orientation. - patch reviewed by Campbell Barton, thanks
2012-01-11minor changes to BLF api useCampbell Barton
- replace calls to BLF_width & BLF_height --> BLF_width_and_height - no need to call strlen() on length value passed to BLF_draw(). this already checks for \0 char.
2012-01-05svn merge ^/trunk/blender -r43124:43160Campbell Barton
2012-01-05more edits to r43145,Campbell Barton
- remove redundant check in new prop operator which is covered by operators poll func. - use get_ob_property to get the object prop in BL_ConvertTextProperty() rather then looping for it.
2012-01-05BGE Font Object: fix for relative path not working AND packed fonts not workingDalai Felinto
[I don't think anyone has ever reported those, what makes me slightly sad but carry on ;)] Those fixes introduce a more generic function to load a font before calling BLF_load. I think it should move to be part of Blender util routines or BLF itself. For the time being here will make it. Once we get <builtin> font working we go for this. Thanks Diego Borghetti for the usual assistance with blf.
2012-01-05This patch creates an interface for ["Text"] properties in Font objects.Dalai Felinto
Interface: http://www.pasteall.org/pic/show.php?id=23785 Simple test file: http://www.pasteall.org/blend/10616 (I'll commit this to the text suite later) Code Explanation: --------------- (1) it adds a toggle to add/remove a "Text" gameproperty. - internally this property is just another game property (so we can find it within the game.properties lookup). - the property itself has no 'value', the interface shows the content of ob.data.body instead (why? because gameproperties are per object, while the text is per data). (2) at BGE converter time it sets the current value of the object.data.body to the ["Text"] property. (3) if you change object.text (bge text property) it automatically convert ["Text"] to a CStringValue. *** that means if the original property was a CIntegerValue, it will be converted to CStringValue forever *** * the only to do I can think of is to add a warning at doversion time if user has ["Text"] property for a Font object * * when that happens we print a warning in console/popup.*
2012-01-03svn merge ^/trunk/blender -r43062:43085Campbell Barton
2012-01-02Fixes two crashers for games, with GHOST under SDL:Alex Fraser
- Fixes SDL fullscreen mode for game engine (blenderplayer). Mode switching (resolution changes) not supported yet though. - Fixes embedded game engine exit. See patch tracker [#29748].
2011-12-31svn merge ^/trunk/blender -r43009:43033Campbell Barton
2011-12-31Changing KX_FontObject to look for a "Text" game property instead of a ↵Daniel Stokes
"text" property to match with bitmap font usage.
2011-12-31svn merge ^/trunk/blender -r42991:43009Campbell Barton