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
2011-07-17cmake: cleanup include paths, some duplicates and going up some unneeded dirs.Campbell Barton
2011-06-23correction to recent commit & made ffmpeg includes only add when enabled.Campbell Barton
2011-06-23cmake option to build without an audio library.Campbell Barton
2011-06-08fix of fix :| [real fix for #36787 -- it was wrongly fixed on #36964]Dalai Felinto
I guess I tested the fix outside the camera view (which always worked). duhhh Working now.
2011-05-31cmake maintenanceCampbell Barton
blender_add_lib now takes a separate include argument to suppress warnings in system includes (mostly ffmpeg & python). also only build wm_apple.c on apple+carbon configuration.
2011-05-29Moving the letterbox clear for the embedded player so it only clears when it ↵Mitchell Stokes
needs to. Thanks to Juha Mäki-Kanto for the tip.
2011-05-28fix for embeded BGE viewport broken when not using letterboxingDalai Felinto
this was broken after rev.36787 (api rewritten) own reported bug, nowhere in the track (just to mess up with the bug fixing statistics)
2011-05-27Attempted fix for #27482: game engine running slow due to revision 36698 whichBrecht Van Lommel
fixed frame colors for letterbox drawing (happens when in camera view). Cause is unclear, seems some sort of strange graphics driver thing on 32 bit. Changes are a fix for the incorrect usage of glViewport, and avoiding the extra clear if it's not needed.
2011-05-20make api functions for converting rv3d->camzoom, so the odd logic for this ↵Campbell Barton
isn't inlined all over.
2011-05-15BGE:Mitchell Stokes
This fixes frame colors not showing up right when using letterbox in the embedded player. Frames are drawn by clearing the whole canvas and then changing the viewport to be within the frames. The problem is that the embedded player's canvas is setup to be within the frames. This means that the extra that would normally be cleared and filled with the frame color is instead the gray color of Blender's region since nothing is actually drawn there by the BGE. To solve this, I just handle the frames in BL_KetsjiEmbedStart.
2011-05-07Code cleanup: remove source/kernel module, this wasn't really the kernel ofBrecht Van Lommel
anything, only contained a hash map and functions to pass command line args to the game engine. Moved those to container and BlenderRoutines modules.
2011-04-10quiet msvc/mingw compiler warnings.Campbell Barton
2011-04-06add option WITH_BUILTIN_GLEW, so linux packagers can disable to use their ↵Campbell Barton
own glew library.
2011-03-09image.depth, 96/128 for float color images, was 24/32 for byte images.Campbell Barton
also use <> for system includes
2011-02-25doxygen: gameengine/BlenderRoutines tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-22doxygen: entries for blenderroutines, converter, expressions, gamelogic, ↵Nathan Letwory
gameplayer, ketsji
2011-01-30remove nan-makefilesCampbell Barton
2011-01-27bge fix: debug text didn't have GL_DEPTH disabled - text got clipped when we ↵Dalai Felinto
have objects too close to the camera fix only in embed bge, blenderplayer seems to be doing differently. -- reported live by Mike Pan
2011-01-23BGE: option in the UI to start with the mouse cursor visible. Patch by Vitor ↵Dalai Felinto
Balbio, changes by me. ---------------------------------- While we are more and more moving towards enabling features in the Python API, it's also important to have Logic Bricks working with no scripts. This option allows you to start the game with the mouse cursor on (it's on Render Buttons). The defalt is still off (no do_version needed here).
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2010-12-23rename blenderlib to blender_add_libCampbell Barton
2010-12-16Patch:[#25163] BGE support for Blender Font objects - unicode supportDalai Felinto
Problem/Bug: ------------ There were no way to have proper unicode characters (e.g. Japanese) in Blender Game Engine. Now we can :) You can see a sample here: http://blog.mikepan.com/multi-language-support-in-blender/ Functionality Explanation: -------------------------- This patch converts the Blender Font Objects to a new BGE type: KX_FontObject This object inherits KX_GameObject.cpp and has the following properties: - text (the text of the object) - size (taken from the Blender object, usually is 1.0) - resolution (1.0 by default, maybe not really needed, but at least for debugging/the time being it's nice to have) The way we deal with linked objects is different than Blender. In Blender the text and size are a property of the Text databock. Therefore linked objects necessarily share the same text (and size, although the size of the object datablock affects that too). In BGE they are stored and accessed per object. Without that it would be problematic to have addObject adding texts that don't share the same data. Known problems/limitations/ToDo: -------------------------------- 1) support for packed font and the <builtin> 2) figure why some fonts are displayed in a different size in 3DView/BGE (BLF) 3) investigate some glitches I see some times 4) support for multiline 5) support for more Blender Font Object options (text aligment, text boxes, ...) [1] Diego (bdiego) evantually will help on that. For the time being we are using the "default" (ui) font to replace the <builtin>. [2] but not all of them. I need to cross check who is calculating the size/dpi in/correctly - Blender or BLF. (e.g. fonts that work well - MS Gothic) [3] I think this may be related to the resolution we are drawing the font [4] It can't/will not be handled inside BFL. So the way I see it is to implement a mini text library/api that works as a middlelayer between the drawing step and BLF. So instead of: BLF_draw(fontid, (char *)text, strlen(text)); We would do: MAGIC_ROUTINE_IM_NOT_BLF_draw(fontir, (char *)text, styleflag, width, height); [5] don't hold your breath ... but if someone wants to have fun in the holidays the (4) and (5) are part of the same problem. Code Explanation: ----------------- The patch should be simple to read. They are three may parts: 1) BL_BlenderDataConversion.cpp:: converts the OB_FONT object into a KX_FontObject.cpp and store it in the KX_Scene->m_fonts 2) KetsjiEngine.cpp::RenderFonts:: loop through the texts and call their internal drawing routine. 3) KX_FontObject.cpp:: a) constructor: load the font of the object, and store other values. b) DrawText: calculate the aspect for the given size (sounds hacky but this is how blf works) and call the render routine in RenderTools 4) KX_BlenderGL.cpp (called from rendertools) ::BL_print_game_line:: Draws the text. Using the BLF API *) In order to handle visibility of the object added with AddObject I'm adding to the m_scene.m_fonts list only the Fonts in a visible layer - unlike Cameras and Lamps where all the objects are added. Acknowledgements: ---------------- Thanks Benoit for the review and adjustment suggestions. Thanks Diego for the BFL expertise, patches and support (Latin community ftw) Thanks my boss for letting me do part of this patch during work time. Good thing we are starting a project in a partnership with a Japanese Foundation and eventual will need unicode in BGE :) for more details on that - www.nereusprogram.org - let's call it the main sponsor of this "bug feature" ;)
2010-12-08use lowercase for cmake builtin names and macros, remove contents in else() ↵Campbell Barton
and endif() which is no longer needed.
2010-12-01bugfix [#23423] Multi-window : closing game windows cause blender crashCampbell Barton
detect closing window while the BGE runs and exit without crashing, as if Esc was pressed.
2010-11-30Add option for CMake to build libredcode, also use CODEC prefix for ffmpeg, ↵Campbell Barton
quicktime & sndfile options.
2010-11-29replace overly verbose matrix creation for BGE camera, typo fix from MikeS.Campbell Barton
2010-11-29fix for error when changing DISBALE_PYTHON -> WITH_PYTHON,Campbell Barton
This define wasn't set in some parts of the BGE causing problems with the view matrix. in CMake define for the entire BGE fixes this.
2010-11-29include headers in cmake source, added a script to check for consistency, ↵Campbell Barton
reporting missing headers & C files. this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.
2010-11-18rename libs internal libs for CMake + SCons (used in MSVC project files)Campbell Barton
for game engine use "ge_" prefix & make names generally more descriptive.
2010-11-11fix for building, also use const char in more places.Campbell Barton
2010-10-31rename and negate DISABLE_PYTHON --> WITH_PYTHONCampbell Barton
2010-10-26Added function RNA_property_update_check() to check if an update call is needed,Campbell Barton
Simple python benchmark shows this to be about 3x faster in the case where an update isn't needed. This also speeds up rna function argument parsing, since each arg in a function call did 2 string lookups on the context which were never needed.
2010-10-23use explicit file paths for CMake rather then globing, This is recommended ↵Campbell Barton
by cmake devs. globbing vs explicit is discussed here. http://www.cmake.org/pipermail/cmake/2008-December/025694.html Practical implications are: - developers need to keep CMakeLists.txt files up to date. - Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.
2010-10-18remove G.sce, use G.main->name instead.Campbell Barton
Both stored the filename of the blend file, but G.sce stored the last opened file. This will make blender act differently in some cases since a relative path to the last opened file will no longer resolve (which is correct IMHO since that file isnt open and the path might not even be valid anymore). Tested linking with durian files and rendering to relative paths when no files is loaded however we may need to have some operators give an error if they are used on the default startup.blend.
2010-10-16most unused arg warnings corrected.Campbell Barton
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating). - mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-10-16- UNUSED macro wasn't throwing an error with GCC if a var become used.Campbell Barton
- made interface, windowmanager, readfile build without unused warnings. - re-arranged CMake's source/blender build order so less changed libs are build later, eg: IK, avi
2010-10-11make file update for recent bge.render.makeScreenshot commitDalai Felinto
2010-10-09patch [#24178] bge.render.makeScreeshot - with help from Campbell(ideasman42)Dalai Felinto
This patch brings back the old functionality from Blender 2.49. However we are forcing the format to be PNG only (as we had previously on blenderplayer). Note: If letterboxing is on, we are recording only the camera area of the canvas (cool hein?). Note2: I have a feeling that this is faster than what we had in 2.49 (which was really slow imo). Maybe it could be even faster if we disable PNG compression. Maybe an option for the future. * patch finalized and committed as part of the BlenderPRO 2010 - BGE development workshop :) *
2010-10-09Enable CXX_GUARDEDALLOC support through SCons.Nathan Letwory
2010-09-15update for MingW/CMakeCampbell Barton
- ignore MSVC warnings when FREE_WINDOWS is defined to quiet warnings. - the CMake flags were not being set correctly making blender have weirdo colors (no -funsigned-char).
2010-09-07- added back zlib include (needed for win32).Campbell Barton
- use list append in more places. - remove non existing include dir.
2010-08-30Finally change SConscript tabs to spaces.Nathan Letwory
2010-08-24BGE bug #23213: VBO preference make object with modifiers crash the BGE. Fix ↵Benoit Bolsee
by disabling VBO inside the BGE, it brings no advantage anyway.
2010-08-13svn merge -r 31211:31313 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-11Update address in license block.Guillermo S. Romero
2010-08-05svn merge -r 30954:31059 ↵Joerg Mueller
https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-08-03remove commented scons lines from cmake files, fixed use of pointer poll ↵Campbell Barton
function for ID drobdowns (currently unused)
2010-07-31Audaspace: Refactored the complete 3D Device code giving a nicer API.Joerg Mueller
2010-07-08Fix for ipo conversion on file transition in the game engine.Joerg Mueller