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
2010-03-21Fix syntax for ID keyword.Guillermo S. Romero
2010-03-20BGE: bindId property in VideoTexture.Texture (to get the openGL id of the ↵Dalai Felinto
texture) Now if you have a VideoTexture.Texture you can use its id and draw it with bgl The Id is only going to be valid if the obj you are getting the VideoTexture.Texture from has a valid texture. In the examples you will see them as planes, that become invisible at load time, but are needed to validate the texture id. This is a simple example file: http://blenderecia.orgfree.com/blender/bind_id_simple.blend And a (much) more advanced one: http://blenderecia.orgfree.com/blender/bind_id.blend (get also this image and save it to the same folder of your blend file - http://blenderecia.orgfree.com/blender/mask.png ) Benoit, I couldn't decide on better names so for now I'm glad with this one.
2010-03-16Keying Set Fixes:Joshua Leung
* 'Export Keying Set' operator works again - a change in the previous commit broke the created code * Relative Keying Sets don't get their paths shown * Keying Set paths show options for inserting keyframes too now --- Another attempt at fixing compile troubles, and removed some commented out + obsolete stuff.
2010-03-10[#21261] Bugfix for dynamically loaded scenes' lights not mixing in multitextureCampbell Barton
from Mitchell Stokes (moguri)
2010-03-09rename some functions to use easier to understand names.Campbell Barton
'BLI_makestringcode' --> 'BLI_path_rel' 'BLI_convertstringcwd' --> 'BLI_path_cwd' 'BLI_convertstringframe' --> 'BLI_path_frame' 'BLI_convertstringframe_range' --> 'BLI_path_frame_range' 'BLI_make_cwdpath' --> 'BLI_path_cwd'
2010-03-08image re-project now uses offscreen render function and has input for render ↵Campbell Barton
size. unrelated changes that ended up being more trouble to commit separate... - removed BLI_split_dirfile(), was nasty, occasionaly modifying the source string, it could create directories and used the $CWD in some cases. was only used in 2 places in filesel.c, if this gives problems can address without bringing back this function. renamed BLI_split_dirfile_basic --> BLI_split_dirfile - view3d_operator_needs_opengl was being called for offscreen render when it wasnt needed.
2010-03-07BGE 2D Filters: slightly change dfelinto patch to use SCA_IScene instead of ↵Benoit Bolsee
KX_Scene. It is rather anecdotic since KX_Scene is the only implementation of SCA_IScene but it's better to keep GameLogic and Ketsji separated.
2010-03-03small png include adjustments (ifndef NOPNG ...).Dalai Felinto
* gameplayer is now probably not going to build without PNG turned ON. To fix that it would be necessary to use #ifndef NOPNG around the GPC_Canvas::MakeScreenShot. Since I don't this function it's working in 2.5 yet it's better to wait for that before doing it.
2010-03-03fix for CMake compile in windows. ($PNG_INC was needed) - partial revert of ↵Dalai Felinto
commit 27251
2010-03-03fix for minor errors/warningsCampbell Barton
2010-03-03BGE 2D Filters: filters run per scene now (fix for [#18152]) - it (slightly) ↵Dalai Felinto
breaks backward compatibility !!! Originally we had 2DFilters (m_filtermanager) stored in RenderTools. That way filters were stored globally and were being called once per each scene. This was producing two big problems: (1) performance and (2) flexibility of use. (1) Performance - To run the filters 2X == 2X slower (2) flexibility of use - Very often we want the filter in the scene but not in the UI for example. For those reasons I believe that 2DFilters with multiple scenes was very useless or unpredictable. I hope they work fine now. To make it work as before (2.4) you can simply recreate the 2dfilter actuators across the scenes. * * * * * Imagine that we have: (a) Main Scene (b) Overlay Scene in Main Scene the Z Buffer and RGB will be from the main scene. in Overlay Scene the Z Buffer will be from the Overlay Scene and the RBG buffer is from both [(a + 2D Filter) + b]. So in pseudo code if we have a,b,c,d,e scenes we have: (2DFilterE(2DFilterD(2DFilterC(2DFilterB(2DFilterA(a) + b) + c) + d) + e)
2010-02-28make BGL and BLF modile names lowercaseCampbell Barton
2010-02-27VideoTexture: optional arguments to ImageBuff constructor.Benoit Bolsee
ImageBuff([width,height[,color[,scale]]]) width, height: size of buffer in pixel. default: buffer not allocated. color: initial value of RGB channels. Alpha channel is 255. Possible values: 0(black=default) -> 255 (white) scale: True or False to enable or disable fast scaling default: False This constructors eliminates the need to use the load function when you just want to initialize the image buffer to black or white.
2010-02-26use negate_v3 rather then multiplying a vector by -1.0 (no functional changes)Campbell Barton
2010-02-26VideoTexture: fix a bug with AV sync that was causing a loss of sync in case ↵Benoit Bolsee
of rewind to the begining of the file.
2010-02-25BGE Dome: BlenderPlayer Console arguments: warpdata working now (only with ↵Dalai Felinto
absolute path) I forgot to say in the last commit that those arguments are only for the BlenderPlayer. we can now set external warpdata files. 2Do: (1) convert relative to absolute paths for warpdata files (2) investigate weird bug on lack of light in blenderplayer with warpmesh ... [old 2Do] (3) documentation (4) preserve scene settings (at least scene->gm.dome) even if you load a new file inside the game (e.g. Yo Frankie loading new levels)
2010-02-25BGE Dome: Console arguments: angle, tilt, mode and warpdata (not working yet)Dalai Felinto
2Do: (1) open external warpdata file (2) documentation (3) preserve scene settings (at least scene->gm.dome) even if you load a new file inside the game (e.g. Yo Frankie loading new levels) otherwise it's a nightmare to update all your files every time you change your projection system. See note. Maybe SYS_WriteCommandLineInt/Float/String can be used for that. Gotta investigate further. * Note: an external warpdata file is a must ! Currently every time you need to calibrate your system you have to update the warp file in all your demo files. This is terrible. I'm glad I *now* have a dome near by to test it ;) * FYI: A recent 'Yo Frankie in a dome' video if you want to see how it works: http://www.vimeo.com/9629626 I'm going to record a better one tomorrow.
2010-02-23matrix functions, to_3x3, to_4x4Campbell Barton
force fixed time when recording in the BGE.
2010-02-22game engine support for recording animation back & some other minor changes.Campbell Barton
2010-02-22use BLI_findstring in more places & remove some warnings, no functional changes.Campbell Barton
2010-02-22fix for typoCampbell Barton
2010-02-22Fix for the player by nazg-gul.Joerg Mueller
2010-02-22VideoTexture: improvements to image data access API. Benoit Bolsee
- Use BGL buffer instead of string for image data. - Add buffer interface to image source. - Allow customization of pixel format. - Add valid property to check if the image data is available. The image property of all Image source objects will now return a BGL 'buffer' object. Previously it was returning a string, which was not working at all with Python 3.1. The BGL buffer type allows sequence access to bytes and is directly usable in BGL OpenGL wrapper functions. The buffer is formated as a 1 dimensional array of bytes with 4 bytes per pixel in RGBA order. BGL buffers will also be accepted in the ImageBuff load() and plot() functions. It is possible to customize the pixel format by using the VideoTexture.imageToArray(image, mode) function: the first argument is a Image source object, the second optional argument is a format string using the R, G, B, A, 0 and 1 characters. For example "BGR" means that each pixel will be 3 bytes, corresponding to the Blue, Green and Red channel in that order. Use 0 for a fixed hex 00 value, 1 for hex FF. The default mode is "RGBA". All Image source objects now support the buffer interface which allows to create memoryview objects for direct access to the image internal buffer without memory copy. The buffer format is one dimensional array of bytes with 4 bytes per pixel in RGBA order. The buffer is writable, which allows custom modifications of the image data. v = memoryview(source) A bug in the Python 3.1 buffer API will cause a crash if the memoryview object cannot be created. Therefore, you must always check first that an image data is available before creating a memoryview object. Use the new valid attribute for that: if source.valid: v = memoryview(source) ... Note: the BGL buffer object itself does not yet support the buffer interface. Note: the valid attribute makes sense only if you use image source in conjunction with texture object like this: # refresh texture but keep image data in memory texture.refresh(False) if texture.source.valid: v = memoryview(texture.source) # process image ... # invalidate image for next texture refresh texture.source.refresh() Limitation: While memoryview objects exist, the image cannot be resized. Resizing occurs with ImageViewport objects when the viewport size is changed or with ImageFFmpeg when a new image is reloaded for example. Any attempt to resize will cause a runtime error. Delete the memoryview objects is you want to resize an image source object.
2010-02-21No need for this change anymore (force include to get BLO_sys_types.h in GE)Martin Poirier
2010-02-21Compile fix for CMakeElia Sarti
2010-02-16[#18961] Use const char * where appropriate (2.5)Campbell Barton
from Sean Bartell (wtachi) added own changes bpy_props.c
2010-02-15[#21023] 2 Dynamic loading patches (one bugfix, one feature)Campbell Barton
patch from Mitchell Stokes (moguri), only the bugfix part for now.
2010-02-12correct fsf addressCampbell Barton
2010-02-12BGE: linear velocity and angular velocity are attributes nowDalai Felinto
... what lead me to wonder if we should remove obj.setAngularVelocity, obj.setLinearVelocity, obj.getLinearVelocity and obj.getAngularVelocity. * this was so Copy and Paste ... anyways tests are welcome (I never used those methods in python myself).
2010-02-11BGE API DOC update - scene add/restart/end. patch by GomerDalai Felinto
2010-02-082.5 Audio:Joerg Mueller
- recode of the whole sequencer audio handling - encode audio flag removed, instead you choose None as audio codec, added None for video codec too - ffmpeg formats/codecs: enabled: theora, ogg, vorbis; added: matroska, flac (not working, who can fix?), mp3, wav - sequencer wave drawing - volume animation (now also working when mixing down to a file!) - made sequencer strip position and length values unanimatable
2010-02-07BGE: add audio/video synchronization capability to VideoTextureBenoit Bolsee
Add optional parameter to VideoTexture.Texture refresh() method to specify timestamp (in seconds from start of movie) of the frame to be loaded. This value is passed down to image source and for VideoFFmpeg source, it is used instead of current time to load the frame from the video file. When combined with an audio actuator, it can be used to synchronize the sound and the image: specify the same video file in the sound actuator and use the KX_SoundActuator time attribute as timestamp to refresh: the frame corresponding to the sound will be loaded: GameLogic.video.refresh(True, soundAct.time)
2010-02-07Adjust priorities so game engine will link (VideoTex after Ketsji)Martin Poirier
2010-02-07BGE: Fix typo in SConscript preventing to import VideoTexture module.Benoit Bolsee
2010-02-07Wrong argument name for sconsMartin Poirier
2010-02-07BGE: VideoTexture was not included, missing WITH_FFMEG defined. Fixed in all ↵Benoit Bolsee
building system.
2010-02-05BGE: Sound Actuator APIDalai Felinto
act.time can set the sound position (float in seconds) act.is3D RO gives you the dimension of the audio act.minGain3D, maxGain3D ... set the 3D parameters of the sound ** PyDoc to be done. Jörg Müller (NeXyon) do you want to document them? The file is here: //source/gameengine/PyDoc/GameTypes.py + adding a missing \n to KX_Scene.cpp. (kind of typo)
2010-02-05BGE fix: KX_Lamp using strcmp wrongly + typo in rna_defineDalai Felinto
2010-02-04BGE: Optimize Soft body conversion: don't create BVH structure.Benoit Bolsee
A btBvhTriangleMeshShape object is created when converting a mesh to physics, also in case of Soft body although the soft body will not use it (it only uses the mesh interface). This patch keeps this system for compatibility with the KX converter but avoids the creation of the BVH structure, which consumes a lots of CPU. This should speed up significantly the conversion of large mesh to softbody. A secondary optimization is that the sharing of shapeInfo is extended to rigid body using gImpact. Before it was only active between static body and soft body.
2010-02-01BGE: fix for [#20684] Game Render blanks screen on Anaglyph Stereo viewDalai Felinto
The problem was: the Blender default camera has DOF distance as 0.0. Since we are using this as Focal Length for the stereo calculation we had terrible stereo by default. Fix: whenever DOF == 0.0 we use focal length as eye separation * 30.0 (known to be a reasonable value)
2010-01-31rename game object obcolor to colorCampbell Barton
2010-01-30BGE: patch [#20293] Added python sensor attribute: Status.Benoit Bolsee
2010-01-30BGE: patch #20399 Python control over adding/removing scenes.Benoit Bolsee
2010-01-29same fix from 2.4x r26392.Campbell Barton
2010-01-25Radians -> Degrees (in UI)Matt Ebb
Rotations are now stored internally as radians, while exposing degrees in the UI - in the graph editor and UI controls. This is done in two areas: 1) Using the unit system to convert RNA data to display as degrees in the UI controls 2) FCurves now use degrees for rotation, so you can edit in the graph editor what you see in the UI. All rotation data is consistently accessible in DNA and RNA as radians, degrees are only used for the UI controls and graph editor. This commit includes conversions will convert old files (stored data and also fcurve data) to the new units, hopefully everything should go smoothly! Part of this also changes a few properties that were hard-coded as degrees before (such as IK pole angle and brush texture rotation) to also use the same consistent system of radians (dna/rna) and degrees (ui). Thanks to Joshua for hints and review here too.
2010-01-18BGE: Mouse Sensor type defaults to 1 (MOUSELEFT ) + remove camera attribute ↵Dalai Felinto
from Camera objects. (if you want to mark your camera objects create a property manually ;) That way object.getPropertyNames() works consistently across all object types.
2010-01-17patch [#20560] [patch] KX_GameObject.obcolorCampbell Barton
by Mitchell Stokes (moguri) * renamed attribute obcolor to color
2010-01-14spelling errors, no real changes to code.Campbell Barton
2010-01-11evil 1 liner to get bge.logic, bge.render, bge.keys etc.. may eventually ↵Campbell Barton
replace GameLogic, GameKeys module names.
2010-01-11get rid of annoying duplicate python initialization code, added ↵Campbell Barton
setupGamePython() which initializes modules