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
2016-05-19Try to fix atomic_ops on buildbot by moving include to topBenoit Bolsee
2016-05-18Merge remote-tracking branch 'origin/master' into decklinkBenoit Bolsee
Conflicts: intern/atomic/atomic_ops.h
2016-05-18VideoDeclink: change default cache size to 4 frames.Benoit Bolsee
Previously, cache size was only 3 frames, which caused problems with older types of Decklink cards (was working with the 4K Extreme). The default is now 4 frames and it is possible to specify a different cache size when opening the card: VideoDecklink("<mode>/<pixel>[/3D][:<cachesize>]", cardIdx) Ex with 8 frames in cache: VideoDecklink("pal/2vuy:8", 0)
2016-05-12Fix missing piece in recent rBce65fae8f32c (support for '+' key).Bastien Montagne
Thanks to Daniel Rivera (Dr2d4) for the headup!
2016-05-10Attempt to fix blenplayer after recent changesSergey Sharybin
2016-05-10Fix T48393: Blender player doesn't start on files saved with with cyrillic ↵Sergey Sharybin
letters in path
2016-05-10Fix T48369: Missing suport for main '+' key.Bastien Montagne
Many keyboard layouts (italian, spanish, german...) have direct access to '+' key on main keyboard area (not the numpad one), ans x11 has own define for this key, so use it instead of generating an unkown key event. Note that we most likely have much more missing 'specific' keycodes for non-US keyboard layout, but think since we already had a 'minus' keyevent, supporting 'plus' one is totally consistent. And we had a spare space in our defined values just for it even! This keyevent is only supported/generated by x11 and cocoa Ghost backends for now, neither SDL nor win32 seem to have matching key events...
2016-04-26Support multiple tangents for BI render & viewportAlexander Romanov
Normal Map node support for GLSL mode and the internal render (multiple tangents support). The Normal Map node is a useful node which is present in the Cycles render. It makes it possible to use normal mapping without additional material node in a node tree. This patch implements Normal Map node for GLSL mode and the internal render. Previously only the active UV layer was used to calculate tangents.
2016-04-25Refactor BKE_blender into separate headersCampbell Barton
- BKE_blender_version.h (only version defines & versionstr). - BKE_blender_copybuffer.h (currently only used for view3d copy/paste). - BKE_blender_undo.h (global undo functions). - BKE_blendfile.h (high level blend file read/write API).
2016-04-12Merge remote-tracking branch 'origin/master' into decklinkBenoit Bolsee
2016-04-11BGE: Fix T48071: Global logic managerPorteries Tristan
Previously the logic manager was used as a global variable for SCA_ILogicBrick::m_sCurrentLogicManager, this request to always update it before run any python script and allow call function like ConvertPythonTo[GameObject/Mesh]. The bug showed in T48071 is that as exepted the global m_sCurrentLogicManager is not updated with the proper scene logic manager. Instead of trying to fix it by updating the logic manager everywhere and wait next bug report to add a similar line. The following patch propose a different way: - Every logic brick now contain its logic manager to SCA_ILogicBrick::m_logicManager, this value is set and get by SCA_ILogicBrick::[Set/Get]LogicManager, It's initialized from blender conversion and scene merging. - Function ConvertPythonTo[GameObject/mesh] now take as first argument the logic manager to find name coresponding object or mesh. Only ConvertPythonToCamera doesn't do that because it uses the KX_Scene::FindCamera function. Reviewers: moguri Differential Revision: https://developer.blender.org/D1913
2016-03-23Fix T47893: BGE crashes w/ generated mesh dataCampbell Barton
2016-03-13More compile fixes - Game EngineJoshua Leung
2016-03-13Full Inverse-Quadratic-Equation Lamp FalloffJack Andersen
This patch adds a new `falloff_type` ('Inverse Coefficients') for Lamps in Blender-Internal and GLSL. The current falloff modes use a formula like this inverse-square one: `I = E × (D^2 / (D^2 + Q × r^2))` While such a formula is simple for 3D-artists to use, it's algebraically cumbersome to work with. Game-designers authoring their own shaders could benefit much more by having direct control of falloff-coefficients: `I = E × (1.0 / (coefC + coefL × r + coefQ × r^2))` In this mode, the `distance` parameter is unused (except for 'Sphere' mode); instead relying on the designer to mathematically-model the falloff-behavior. The UI has been patched like so: {F153843} Reviewers: brecht, psy-fi Reviewed By: psy-fi Subscribers: brita_, antidote, campbellbarton, psy-fi Differential Revision: https://developer.blender.org/D1194
2016-03-11BGE: Fix memory leak in VBO codeMitchell Stokes
2016-03-11BGE: Fix animations when using VBOsMitchell Stokes
2016-03-01UPBGE: Fix light visibilityUlysse Martin
2016-03-01UPBGE: Disallow shadow buffer render when the lamp is hidden.Porteries Tristan
It now allow the user to use multiple shadow lamps and hidden the culled lamps.
2016-02-26Fix T47015: BGE, objects vanish aligning to vectorCampbell Barton
1811 by @mangostaniko Fixes regression since moving to floats.
2016-02-23Fix warnings reported by MSVCSergey Sharybin
Mainly it's related on a bad practice in SDL to force-define __SSE__ and __SSE2__ flags which generates quite some warnings and causes too much noise. There are some other warnings fixed. Should be no functional changes. NeXyon, please check the changes in audaspace :)
2016-02-21Merge remote-tracking branch 'origin/master' into decklinkBenoit Bolsee
Conflicts: source/gameengine/Ketsji/KX_KetsjiEngine.cpp
2016-02-20BGE: undo view matrix scaling but keep axis inverting.Benoit Bolsee
Previous commit 9d18fd11 introduced the possibility to scale the modelview matrix by setting a scale on the camera but this caused undesirable lighting and dynamic side effects. This commit reverts the scaling effect but keeps the axis inversion effect, which was the purpose of the first commit anyway. A negative/positive scale on the camera is applied respectively as -1/+1 scale on the modelview matrix.
2016-02-20Decklink: patch cleanup before merge.Benoit Bolsee
2016-02-20Make Blender ready for C++11Sergey Sharybin
Did a full compile of debug build with C++11 enabled, it all passed compilation apart from some deprecated type used in GE's Video Texture. Solved it inside of ifdef block now. In the future we should uncomment the MSVC part of it, it should all be safe and correct (MSVC2013 does not define new C++ version but supports C++11). The reason it is commented is to have absolutely no effect on the upcoming release.
2016-02-18BGE: Allow access to original texture openGL Bind code/Id/NumberUlysse Martin
This patch adds a python method to get openGL bind code of material's texture according to the texture slot. Example: import bge cont = bge.logic.getCurrentController() own = cont.owner bindId = own.meshes[0].materials[0].getTextureBindcode(0) Test file: http://www.pasteall.org/blend/40679 This can be used to play with texture in openGL, for example, remove mipmap on the texture or play with all wrapping or filtering options. And this can be used to learn openGL with Blender. Reviewers: TwisterGE, kupoman, moguri, panzergame Reviewed By: TwisterGE, kupoman, moguri, panzergame Projects: #game_engine Differential Revision: https://developer.blender.org/D1804
2016-02-16Make game engine ready for FFmpeg-3.0 as wellSergey Sharybin
2016-02-15Cleanup: reorganize BKE ID tagging functions.Bastien Montagne
BKE_main_id_tag_/BKE_main_id_flag_ were horrible naming now that we split those into flags (for presistent one) and tags (for runtime ones). Got rid of previous 'tag_' functions behavior (those who were dedicated shortcuts to set/clear LIB_TAG_DOIT), so now '_tag_' functions affect tags, and '_flag_' functions affect flags.
2016-01-28cleanup: spelling, comments, alignmentMike Erwin
fixed pet peeve “frustrum” and other non-functional changes.
2016-01-27World textures displaying for viewport in BI.Alexander Romanov
This patch supports "Image or Movie" and "Environment map" types of world texture for the viewport. It supports: - "View", "AngMap" and "Equirectangular" types of mapping. - Different types of texture blending (according to BI world render). - Same color blending as when it lacked textures (but render via glsl). {F207734} {F207735} Example: {F275180} Original author: @valentin_b4w Regards, Alexander (Blend4Web Team). Reviewers: sergey, valentin_b4w, brecht, merwin Reviewed By: merwin Subscribers: campbellbarton, merwin, blueprintrandom, youle, a.romanov, yurikovelenov, AlexKowel, Evgeny_Rodygin Projects: #rendering, #opengl_gfx, #bf_blender:_next Differential Revision: https://developer.blender.org/D1414
2016-01-25Fix T46902: Revert zeroing velocity in BGE logic brickSybren A. Stüvel
This reverts commit 3dbc123061aa063efd1fca358f5e295b0ce7b302, "BGE: allow setting velocity to zero in a motion actuator" as it caused more issues than it solved. Zeroing linear or angular velocity with logic bricks is discussed further in https://developer.blender.org/D1545
2016-01-23Vector Transform node support for GLSL mode and the internal rendererAlexander Romanov
The Vector Transform node is a useful node which is present in the Cycles renderer. {F144283} This patch implements the Vector Transform node for GLSL mode and the internal renderer. Example: {F273060} Alexander (Blend4Web Team) Reviewers: brecht, campbellbarton, sergey Reviewed By: campbellbarton, sergey Subscribers: psy-fi, duarteframos, RobM, lightbwk, sergey, AlexKowel, valentin_b4w, Evgeny_Rodygin, yurikovelenov Projects: #bf_blender:_next Differential Revision: https://developer.blender.org/D909
2016-01-17BGE: Allow access to light shadow settings with pythonUlysse Martin
This patch adds a new API which allow us to access light shadow settings from python. The new API can be used to write custom GLSL materials with shadows. Reviewers: brecht, kupoman, agoose77, panzergame, campbellbarton, moguri, hg1 Reviewed By: agoose77, panzergame, campbellbarton, moguri, hg1 Projects: #game_engine Differential Revision: https://developer.blender.org/D1690
2016-01-11VideoDecklink: fix compilation warning in Windows.Benoit Bolsee
2016-01-11VideoDecklink: accept mode index, test dvp.dll presence, enable audio just ↵Benoit Bolsee
in case. mode index instead of mode name can be used when opening the card: VideoDecklink("1/2vuy",0) The list of video mode is specific to each board and this method is therefore not generic. Only use it for debugging purposes. VideoDecklink will not throw if dvp.dll is not found when opening a Decklink card on Windows with a nVideo Quadro GPU; instead it will fallback on standard OpenGL transfer. It is preferable to use dvp.dll when possible as it provides faster image transfer to Quadro GPU. Audio Input is now enable by default with 48KHz sampling, 16bit samples and 2 channels. This is normally not necessary because audio is not used in VideoTexture; it is just in case it is necessary on certain Decklink card.
2016-01-09Merge remote-tracking branch 'origin/master' into decklinkBenoit Bolsee
2016-01-04Remove SCons building systemSergey Sharybin
While SCons building system was serving us really good for ages it's no longer having much attention by the developers and started to become quite a difficult task to maintain. What's even worse -- there started to be quite serious divergence between SCons and CMake which was only accumulating over the releases now. The fact that none of the active developers are really using SCons and that our main studio is also using CMake spotting bugs in the SCons builds became quite a difficult task and we aren't always spotting them in time. Meanwhile CMake became really mature building system which is available on every platform we support and arguably it's also easier and more robust to use. This commit includes: - Removal of actual SCons building system - Removal of SCons git submodule - Removal of documentation which is stored in the sources and covers SCons - Tweaks to the buildbot master to stop using SCons submodule (this change requires deploying to the server) - Tweaks to the install dependencies script to skip installing or mentioning SCons building system - Tweaks to various helper scripts to avoid mention of SCons folders/files as well Reviewers: mont29, dingto, dfelinto, lukastoenne, lukasstockner97, brecht, Severin, merwin, aligorith, psy-fi, campbellbarton, juicyfruit Reviewed By: campbellbarton, juicyfruit Differential Revision: https://developer.blender.org/D1680
2016-01-03Get rid of three needless instances of DM_DRAW_OPTION_NO_MCOL.Antony Riakiotakis
It would be good to get rid of this entirely, ideally decision about mcols can be taken at material level and not done per face. More work needs to be done for that to work though.
2015-12-30BGE: Fix invalid operator< for microsoft compiler.Porteries Tristan
It fixes the strict weak ordering assertion failure, see : https://support.microsoft.com/en-us/kb/949171. sybren and youle are the author of this commit.
2015-12-27Split id->flag in two, persistent flags and runtime tags.Bastien Montagne
This is purely internal sanitizing/cleanup, no change in behavior is expected at all. This change was also needed because we were getting short on ID flags, and future enhancement of 'user_one' ID behavior requires two new ones. id->flag remains for persistent data (fakeuser only, so far!), this also allows us 100% backward & forward compatibility. New id->tag is used for most flags. Though written in .blend files, its content is cleared at read time. Note that .blend file version was bumped, so that we can clear runtimeflags from old .blends, important in case we add new persistent flags in future. Also, behavior of tags (either status ones, or whether they need to be cleared before/after use) has been added as comments to their declaration. Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1683
2015-12-27OpenGL: stipple support added to basic GLSL shaderAlexander Romanov
The is intended to replace the deprecated glPolygonStipple() calls with a shader based alternative, once we switch over to GLSL shaders. Reviewers: brecht Differential Revision: https://developer.blender.org/D1688
2015-12-20Decklink: fix framerate calculation.Benoit Bolsee
For some reason the framerate attribute of the VideoDeclink object was was wrong by 1. framerate now returns the correct value.
2015-12-20Decklink: use floating point texture format when possible.Benoit Bolsee
Previous implementation was using GL_RED_INTEGER texture format for all non-RGBA pixel format. This isn't supported by intel GPU (although the GL_texture_rg extension is declared supported). Floating RGBA texture are now used for the following pixel formats: 8BitYUV: Cb->B, Y0->G, Cr->R, Y1->A 10BitYUV: no fixed mapping between CbCrY and RGB, a shader is required 8BitARGB: direct mapping 8BitBGRA: direct mapping 10BitRGBXLE: direct mapping (A is undefined) Other pixel formats are mapped to GL_RED_INTEGER (GL_R32UI internal format, usampler2D must be used in the shader). Note: the 10BitYUV, 10BitRGBXLE and 8BitARGB mapping only works on little- endian host CPU. For big endian CPU, other formats must be used (not yet implemented). The texture MIN/MAX_FILTER is now set to NEAREST. Previously it was set to LINEAR, which was detremental on multibytes pixel format. The sample shader in the documentation for the above formats will be changed to reflect the new mapping.
2015-12-17Fix T46959: sys.meta_path reset on on exitCampbell Barton
2015-12-17Cleanup: quiet warningCampbell Barton
2015-12-16BGE clean up: use float version of trigonometric functionsJorge Bernal
2015-12-16BGE Ketsji clean-up: double-promotion warningsJorge Bernal
2015-12-15use float (not double) for font matrixMike Erwin
Following up on recent double --> float commits in the game engine.
2015-12-14BGE Physics clean up: double-promotion warningsJorge Bernal
2015-12-14BGE Scenegraph clean up: double-promotion warningsJorge Bernal
2015-12-13BGE Rasterizer clean up: double-promotion warningsJorge Bernal