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
path: root/intern
AgeCommit message (Collapse)Author
2013-01-17fix for GHOST/X11 using uninitialized memory for the tablets active state. ↵Campbell Barton
(possible cause of reported glitches in tablet use).
2013-01-16style cleanupCampbell Barton
2013-01-16fix for glitch in X11 with tablets.Campbell Barton
Notices this while using continuous-grab, since this is disabled when the tablet is being used. Quite often I would use the tablet then drag a button with the mouse but blender would still have the tablet enabled. This error would cause other parts of blender to behave incorrectly too since wmEvents would have wmTabletData set, operators check for this in some cases. The problem was blender didn't reliably get ProximityOut events, eg: moving the cursor outside the window with the tablet, then back over the window with the mouse - meant blender didn't get a 'ProximityOut' event and would keep the active stylus value set. For now, when the processing events and the active stylus is set, run a check that the tablet is still in proximity.
2013-01-16Movies support for CyclesSergey Sharybin
This adds support of movie textures for Cycles rendering. Uses the same builtin images routines as packed/generated images, but with some extra non-rna hookups from blender_session side. Basically, it's not so clear how to give access to video frames via C++ RNA -- it'll require exposing ImBuf to API, doing some threading locks and so. Ended up adding two more functions which are actually bad level call, but don't consider it's so much bad -- we have few bad calls already, which are actually related. Changed a bit how builtin images names are passing to image manager. Now it's not just an ID datablock name, but also a frame number concatenated via '@' character, which makes itpossible to easily know frame number to be used for movie images, without adding extra descriptors to image manager. Decoding of builtin name is a bit slower now, but it should be still nothing in comparison with rendering complexity. Also exposed image user's frame_current to python API, which is needed to get absolute frame number of movie from node's image user. P.S. Generated/packed images are also using bad level call but only does it to make things more clear here. Either all images are using C++ RNA here or no images does. That's the most clear for now.
2013-01-16UI / Scene Context:Thomas Dinges
* Made Color Management and Audio panel closed by default to save space. * Added COMPAT_ENGINES to color management panel.
2013-01-16Mac OS X, Intuos tablet fixTon Roosendaal
Touch input events map nicely to trackpad input now. However, I noticed the event values are a factor 10 scaled larger compared to other touch delta's. Makes using touch input on the tablet not so nice. I found a hack to detect Wacom events, but if it works for more devices? Anyway - for me the Wacom works perfectly smooth for view manipulations now.
2013-01-16Fix #33877: Pressure Sensitivity stop after opening User Preferences WindowSergey Sharybin
Issue was caused by opening the same device id twice and closing one of descriptors on closing window. This used to close device used by other windows. Now moved all device-specific code to SystemX11, so opening and closing happens only once.
2013-01-16minor changes to ghostCampbell Barton
- use WITH_ASSERT_ABORT define, so GHOST_ASSERT will abort. - rename XTablet -> GHOST_TabletX11, was confusing since it was named like an xlib struct.
2013-01-16code cleanup:Campbell Barton
- cycles ui used 'cscene' for scene.cycles and scene.cycles_curves - style cleanup
2013-01-16Fix CUDA compile after last commit.Brecht Van Lommel
2013-01-15Cycles Hair: Introduction of Cardinal Spline Curve Segments and minor fixes.Stuart Broadfoot
The curve segment primitive has been added. This includes an intersection function and changes to the BVH. A few small errors in the line segment intersection routine are also fixed.
2013-01-15Fix #33838: light render passes for non-progressive integrator were not correct.Brecht Van Lommel
2013-01-15Cycles:Thomas Dinges
* CUDA: Make it more clear that sm_12 and below is not supported. * OpenCL: __KERNEL_SHADING__ was declared twice for nvidia opencl device. * Some reshuffle of defines in kernel_types.h. No functional changes.
2013-01-15Fix #33830: cycles normal mapping was not quite correct, was not correctlyBrecht Van Lommel
respecting the assumption that normal and tangent are interpolated without normalization.
2013-01-15fix [#33831] "Alt" key is "Alt Window Deactivated"Campbell Barton
Patch from Patrick Zulke (pazul)
2013-01-14For non-windows systems, check for CUDA compiler during runtimeAntony Riakiotakis
2013-01-14Cycles: enable lamp multiple importance sampling on the GPU, seems to beBrecht Van Lommel
working ok with sm_20 and sm_21.
2013-01-14Remove usage WITH_CYCLES_CUDA_BINARIES in code, use check forSergey Sharybin
precompiled cubins instead, Logic here is following now: - If there're precompiled cubins, assume CUDA compute is available, otherwise - If cuda toolkit found, assume CUDA compute is available - In all other cases CUDA compute is not available For windows there're still check for only precompiled binaries, no runtime compilation is allowed. Ended up with such decision after discussion with Brecht. The thing is, if we'll support runtime compilation on windows we'll end up having lots of reports about different aspects of something doesn't work (you need particular toolkit version, msvc installed, environment variables set properly and so) and giving feedback on such reports will waste time.
2013-01-14Change some big functions from __device_inline to __device, whichSergey Sharybin
makes CPU kernel compilation much faster when using MSVC. Sideeffect of this change is that CPU rendering is few percent faster now. CUDA rendering is the same speed.
2013-01-14Fix #33868: cycles sample as lamp for world background not rendering with theBrecht Van Lommel
correct intensity on the GPU.
2013-01-13Further tweaks to support libav from wheezySergey Sharybin
2013-01-13Tweak to ffmpeg compatibility layer to support debian's wheezy libavSergey Sharybin
2013-01-12Mac HiDPI ("retina") handling:Ton Roosendaal
OK - so you have this nice crisp screen, and still you want to add extra monitors to the laptop! That means Blender should switch back and forth to HiDPI modes, when you move a window to another monitor. This code makes the pixelsize scale factor a window property, and handles an event when a window moves to another monitor. It then changes the native pixelsize nicely and refreshes entire UI. You can also have one Blender window on high, and other on low resolution. Stretching a Blender window from 1 monitor to the other works too, but that is Apple magic handling it.
2013-01-12Patch #33837: ffmpeg1.1 and libav9.1 compatibility updateSergey Sharybin
Patch makes it possible to compile blender with recent ffmpeg and libav libraries, mainly by getting rid of deprecated API. Original patch by Campbell Barton with own modifications to support compilation with older ffmpeg versions. This patch could break compatibility of FFV1 videos playing back in older players, mainly because of alpha support changes. Preserving compatibility with such players became a headache and think it's high time to get rid of workarounds here.
2013-01-12Packed and generated images support for CyclesSergey Sharybin
This commit adds support of packed and generated images for Cycles when using SVM backend. Movies are still not supported. This changes also doesn't touch OSL which is much less trivial to adopt for any images which are not saved to disk. Implementation details: - When adding images to Image Manager is now possible to mark image as builtin. Builtin images will bypass OIIO loader and will use special loading callbacks. - Callbacks are set by Blender Session and they're using C++ RNA interface to obtain needed data (pixels, dimensions, is_float flag). - Image Manager assumes file path is used as reference to a builtin images, but in fact currently image datablock name is used for reference. This makes it easy to find an image in BlendData database. - Added some extra properties to Image RNA: * channels, which denotes actual number of channels in ImBuf. This is needed to treat image's pixels correct (before it wasn't possible because API used internal number of channels for pixels which is in fact doesn't correlate with image depth) * is_float, which is truth if image is stored in float buffer of ImBuf. - Implemented string lookup for C++ RNA collections for cases there's no manual lookup function. OSL is not supported because it used own image loading and filtering routines and there's seems to be no API to feed pre-loaded pixels directly to the library. Think we'll either need to add some API to support such kind of feeding or consider OSL does not have support of packed images at all. Movies are not supported at this moment because of lack of RNA API to load specified frame. It's not difficult to solve, just need to consider what to best here: * Either write some general python interface for ImBuf and use it via C++ API, or * Write a PY API function which will return pixels for given frame, or * Use bad-level BKE_* call Anyway, small steps, further improvements later. Reviewed by Brecht, thanks!
2013-01-11code cleanup: warnings, also add check in crash handler that a ↵Campbell Barton
wmWindowManager is present.
2013-01-10Fix #33824: cycles non-progressive render mode did not do correct path ↵Brecht Van Lommel
termination, leading to too much noise when the min bounce setting was lower than max bounce.
2013-01-10Fix #33821: cycles background intensity fix had uninitialized memory usageBrecht Van Lommel
for area lights.
2013-01-10Fix too bright result in background multiple importance after recent changes.Brecht Van Lommel
2013-01-10Cycles: different fix for perlin noise generating nan values, now check forBrecht Van Lommel
the result to be finite afterwards which is a bit faster and works for OSL too without needing to slow down OSL itself.
2013-01-10Cycles: multiple importance sampling for lamps, which helps reduce noise forBrecht Van Lommel
big lamps and sharp glossy reflections. This was already supported for mesh lights and the background, so lamps should do it too. This is not for free and it's a bit slower than I hoped even though there is no extra BVH ray intersection. I'll try to optimize it more later. * Area lights look a bit different now, they had the wrong shape before. * Also fixes a sampling issue in the non-progressive integrator. * Only enabled for the CPU, will test on the GPU later. * An option to disable this will be added for situations where it does not help. Same time comparison before/after: http://www.pasteall.org/pic/show.php?id=43313 http://www.pasteall.org/pic/show.php?id=43314
2013-01-09Mac HiDPI support:Ton Roosendaal
With the good help from googling, here's code that compiles for 10.6 natively. Will check on 10.7 and 10.8 right after commit.
2013-01-09Style cleanup in OCIO areaSergey Sharybin
Also fixed typo in function name.
2013-01-08Macbook HiDPI support: reshuffled code to make it compile for 10.6 and workTon Roosendaal
in 10.7 and later. OS X Gurus might check though :)
2013-01-08Fix for recent tile_order feature not working properly with persistent dataSergey Sharybin
2013-01-08style cleanupCampbell Barton
2013-01-07Cycles / Tile Rendering:Thomas Dinges
* Added new option to chose the tile order. In addition to the "Center" method, 4 new methods are available now, like Top -> Bottom and Right -> Left. Thanks to Sergey for code review and some tweaks!
2013-01-07fix for bugs 30300, 31107: pen pressure with multiple open windows on MS WindowsMike Erwin
2013-01-06With some help in irc (thanks erwin, markus!) and some googling, here's code Ton Roosendaal
that compiles for OSX 10.6 for new momentumPhase usage. Jens Verwiebe can give final blessings, I'm just copypasting stuff and test it :)
2013-01-06device_network.cpp is completely elided when WITH_NETWORK is not defined, so ↵Jason Wilkins
do not include it in the build in that case
2013-01-05Removal of old code trying to detect trackpads.Ton Roosendaal
This was causing error in previous commit "wheel only worked after using trackpad once".
2013-01-05New version of code to detect whether a wheel is involved, or a trackpad.Ton Roosendaal
It was compiled with "deploy target 10.6" tested on macbook with 10.8. More tests follow quick.
2013-01-04Added vertex color attributes (currently limited to one) and UVs included ↵Stuart Broadfoot
for triangle mesh hair. I have also included a small speedup for the intersection test.
2013-01-04Silent "no previous prototype" warning, which was treating as error hereSergey Sharybin
2013-01-03Fix CUDA build error after last commit, and remove some comments.Brecht Van Lommel
2013-01-03Cycles Hair: add Generated texture coordinates for curves, so that proceduralBrecht Van Lommel
textures now work without having to add a UV map. Also made UV and intercept attributes only export when needed by the shader.
2013-01-03Cycles Hair: refactoring to store curves with the index of the first key and theBrecht Van Lommel
number of keys in the curve, rather than curve segments with the indices of two keys. ShaderData.segment now stores the segment number in the curve.
2013-01-03Cycles Hair: refactoring to support generic attributes for hair curves. ThereBrecht Van Lommel
should be no functional changes yet. UV, tangent and intercept are now stored as attributes, with the intention to add more like multiple uv's, vertex colors, generated coordinates and motion vectors later. Things got a bit messy due to having both triangle and curve data in the same mesh data structure, which also gives us two sets of attributes. This will get cleaned up when we split the mesh class.
2013-01-03add option WITH_SYSTEM_BULLET to link against the bullet installation found ↵Campbell Barton
on the system. Note: this doesn't work yet for everything with latest stable bullet (2.81), need to look into why and likely apply some patches upstream. However I managed to link blender by disabling some features, likely it can be made to work without too much trouble.
2013-01-03add id property clear function (matching the same python function for ↵Campbell Barton
dicts/lists)