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
2016-07-25Cycles: Fix rays parallel to the surface in the triangle refine and MultiGGX ↵Lukas Stockner
code In the triangle intersection refinement code, rays that are parallel to the triangle caused a divide by zero. These rays might initially hit the triangle due to the watertight intersection test, but are very rare - therefore, just skipping the refinement for them works fine. Also, a few remaining issues in the MultiGGX code are fixed that were caused by rays parallel to the surface (which happened more often there due to smooth shading).
2016-07-25Cycles: Calculate differentials in the Multiscattering GGX closuresLukas Stockner
The Multiscattering GGX closures didn't set the omega_i differentials, which could cause undefined behaviour.
2016-07-25OpenSubdiv: Support shadeless shadingSergey Sharybin
2016-07-25Cycles: Fix SSS with spatial splits and motion blurSergey Sharybin
2016-07-24Fix use of uninitialized variable in recent SSS fix.Brecht Van Lommel
2016-07-23Audaspace: fix incorrect parameter check in python API.Jörg Müller
Found by PVS-Studio T48917
2016-07-22OpenSubdiv: Properly respect Subdivide UVs optionSergey Sharybin
2016-07-22OpenSubdiv: Initial support of UV maps in material shading modeSergey Sharybin
2016-07-22OpenSubdiv: Use BLI module math functionsSergey Sharybin
It became rather annoying to have those functions duplicated. Surely, it's not really nice it's actually a bad level call, but similar thing is happening in OCIO and Cycles. IMO, it's better than having functions re-implemented, and have this solved with new OpenGL pipeline.
2016-07-22OpenSubdiv: Make drawing code a bit more flexible for FVar widthSergey Sharybin
2016-07-22OpenSubdiv: Properly support active UV layer in textured viewSergey Sharybin
2016-07-22OpenSubdiv: Lay down fundamentals to support multiple UV mapsSergey Sharybin
2016-07-22OpenSubdiv: Get number of UVs from topology refinerSergey Sharybin
This allows us to store more than one UV layer in the UVs array.
2016-07-22OpenSubdiv: Cleanup, please don't use insanely long linesSergey Sharybin
2016-07-22OpenSubdiv: Cleanup, don't use camel case for variable namesSergey Sharybin
2016-07-22fix comparison of identicalsMike Erwin
Some of these check that dimensions match before running code that assumes they do match. For imb_stereo3d_write_anaglyph I *assume* this change reflects the intended behavior. Before it was always grabbing alpha from buffer 0. Found with PVS-Studio T48917
2016-07-21Tracking: Fix bug when tracker will keep trying tracking past the footageSergey Sharybin
2016-07-21Attempt to fix compilation on Windows, take 2Kévin Dietrich
Previous patch was wrong apparently... :|
2016-07-21Attempt to fix compilation error on Windows.Kévin Dietrich
Patch from @fjuhec.
2016-07-21OpenSubdiv: Prepare majority of things to have proper subdivided UVSergey Sharybin
Mainly the changes are related on establishing API to feed UV islands to OpenSubdiv, so it will know all the connectivity information and will be able to do proper interpolation. Island calculation is currently rather slow, not sure how to make it fast and not use lots of allocations. Shouldn't be THAT bad, since this code is only runs once when creating OSD mesh, and it's probably still faster than our orientation code.
2016-07-21Fix another Cycles OSL script node issue with shaders using bump.Brecht Van Lommel
2016-07-21Fix Cycles OSL script node not working in shader using bump, after node type ↵Brecht Van Lommel
refactoring.
2016-07-21Fix T48908: gray out Cycles motion vector pass if motion blur is enabled, ↵Brecht Van Lommel
doesn't work then.
2016-07-20OpenSubdiv: Initial work to support UV maps in textured OSD viewportSergey Sharybin
A bit work in progress, currently the following limitations: - Texture shading only, Material shading will come later - No UVs subdivision yet - Always uses active UV and currently changing active UV will not properly update the viewport. Well, need to start somewhere :)
2016-07-20OpenSubdiv: Wrap OSD's TopologyRefier with own structSergey Sharybin
This is a way for us to store extra data, such as UVs which we can collect now on topology refiner stage.
2016-07-19Usual i18n/UI messages fixes...Bastien Montagne
2016-07-19Fix building on NetBSDCampbell Barton
2016-07-19OpenSubdiv: Fix wrong shading in BI texture modeSergey Sharybin
This probably makes code somewhat slower, but we can't easily know whether we can use a shortcut and only use directional lighting from the scene. Need some better integration between GPU and OpenSubdiv for that.
2016-07-19OpenSubdiv: Fix broken structure alignment when using color materialSergey Sharybin
2016-07-18Cycles: add ConstantFolder class for constant folding boilerplate.Alexander Gavrilov
Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D2089
2016-07-18Cycles: add support for motion blurring of fluid meshes.Kévin Dietrich
Reviewed By: brecht Differential Revision: https://developer.blender.org/D2063
2016-07-18Fix Cycles kernel build without render passes support.Brecht Van Lommel
2016-07-18[bf_intern_ghost/Windows] CleanupRay Molenkamp
This patch addresses the following issues in bf_intern_ghost ``` Warning C4312 'type cast': conversion from 'GHOST_TEmbedderWindowID' to 'HWND' of greater size bf_intern_ghost K:\BlenderGit\blender\intern\ghost\intern\GHOST_WindowWin32.cpp 179 Warning C4312 'type cast': conversion from 'GHOST_TEmbedderWindowID' to 'HWND' of greater size bf_intern_ghost K:\BlenderGit\blender\intern\ghost\intern\GHOST_WindowWin32.cpp 198 ``` GHOST_TEmbedderWindowID is defined as long, handles are however of pointer size, so this should have been an issue when we moved to 64 bits, guess we got lucky. fixed by turning GHOST_TEmbedderWindowID from long into void* ``` Warning C4302 'reinterpret_cast': truncation from 'HKL' to 'LANGID' bf_intern_ghost K:\BlenderGit\blender\intern\ghost\intern\GHOST_ImeWin32.cpp 67 ``` reinterpret_cast emits warnings on truncation, LOWORD does the job just as well with no warnings. ``` Warning C4838 conversion from 'int' to 'DWORD' requires a narrowing conversion bf_intern_ghost K:\BlenderGit\blender\intern\ghost\intern\GHOST_ContextWGL.cpp 734 Warning C4838 conversion from 'int' to 'BYTE' requires a narrowing conversion bf_intern_ghost K:\BlenderGit\blender\intern\ghost\intern\GHOST_ContextWGL.cpp 734 ``` Weird warning, it does a really bad job at telling you what parameter is causing the warning , tuns out there's a bunch of parameters that cause it but it still only yields a single warning, the problem is that every (somevar ? a : b) construct results in an integer type. which needs to be properly cast to get rid of the warning. ``` Warning C4996 'GetVersionExA': was declared deprecated bf_intern_ghost K:\BlenderGit\blender\intern\ghost\intern\GHOST_WindowWin32.cpp 105 Warning C4996 'GetVersionExA': was declared deprecated bf_intern_ghost K:\BlenderGit\blender\intern\ghost\intern\GHOST_WindowWin32.cpp 107 ``` The warning was clear, the code not as much. The version check in place here is quite convoluted and could be replaced by including VersionHelpers.h and calling IsWindows7OrGreater, However, CreateInstance will just return NULL in m_Bar if the interface is not supported, so the whole check is useless. This however did require that the CreateInstance call actually asked for ITaskbarList3 and not ITaskBarlist . (You're not really allowed to assign different interface types to each-other, a roundtrip through QueryInterface is required there, we were violating spec here by asking for ITaskBarlist and storing it in ITaskbarList3* ) Reviewers: sergey Reviewed By: sergey Subscribers: sergey Differential Revision: https://developer.blender.org/D2094
2016-07-18Fix T48848: Cycles - Camera Culling - Camera Culling removes objects which ↵Sergey Sharybin
are still in frame
2016-07-18Fix T48860: Cycles SSS artifacts with spatially split BVHSergey Sharybin
The issue was caused by SSS intersection code gathering all intersections without check for duplicated ones. This caused situations when same intersection will be recorded twice in the case if triangle is shared by several BVH nodes. Usually this is handled by checking intersection distance after sorting intersections (in shadow_blocked for example) but for SSS we don't do such sorting and using number of intersections to calculate various things. Didn't find anything smarter than to check intersection distance in triangle_intersect_subsurface(). This solves render artifacts in the cost of 1.5% slowdown of extreme case rendering (SSS object filling in whole FullHD screen). Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D2105
2016-07-17Cycles: Fix OpenCL compilation after the recent numerical fixesLukas Stockner
2016-07-16Cycles: Fix three numerical issues in the fresnel, normal map and Beckmann codeLukas Stockner
- In fresnel_dielectric, the differentials calculation sometimes divided by zero. - When the normal map was (0.5, 0.5, 0.5), the code would try to normalize a zero vector. Now, it just uses the regular normal as a fallback. - The approximate error function used in Beckmann sampling sometimes overflowed to inf while calculating r^16. The final value is 1 - 1/r^16, however, so now it just returns 1 if the computation would overflow otherwise.
2016-07-16Cycles: Deduplicate geometric factor calculation in the Beckmann distributionLukas Stockner
Also, this fixes a numerical issue where A would be inf. Since later G is set to 1 if A is larger than 1.6, the code now checks the reciprocal of A for being smaller than 1/1.6 - same effect, but no inf involved.
2016-07-15Cycles: Fix refitting of regular BVHSergey Sharybin
Was causing CUDA issues on viewport edits.
2016-07-15Cycles: Add option to disable new Hair BVHSergey Sharybin
While it's an extra option added to the interface which might not be fully obvious for artists, it allows to save up to 20% of memory in hairy scenes. This is high enough memory saver in my opinion which might become handy for some production files where it's more important to make scene to fit into memory rather than trying to use more optimal BVH structure but go into swap or crash. Reviewers: dingto, brecht Reviewed By: dingto, brecht Differential Revision: https://developer.blender.org/D2090
2016-07-14Code cleanup: show unused arguments names for ShaderNode::constant_fold.Brecht Van Lommel
2016-07-14Cleanup: comment blocksCampbell Barton
2016-07-14Cycles: Give better idea which OpenCL kernel is currently compilingSergey Sharybin
2016-07-14Cycles: Avoid strings passed by value in OpenCL deviceSergey Sharybin
Also use more const qualifiers in the code.
2016-07-14Libmv: Fix some strict compiler warningsSergey Sharybin
One of them was a real bug!
2016-07-14Cycles: Fix wrong size of sobol textureSergey Sharybin
After reformulation of SSS indirect rays it became possible to try accessing dimension higher than was pre-calculated on scene preparation. This is because we're traversing rays backwards, which means we are using higher dimensions first now.
2016-07-14Cycles: Fix wrong termination criteria in intersect_all functionsSergey Sharybin
It was possible to miss bounces termination criteria in this functions, mainly when max_hits was set to 0. Made the check more robust in traversal functions (which should not affect performance, it's an operation of same complexity AFAIK). Also avoid doing ray-scene intersection from shadow_blocked when limit of transparent bounces was already reached.
2016-07-12Cleanup: remove redundant checkCampbell Barton
2016-07-11Cycles: Fix compilation error on Windows with OSL enabledSergey Sharybin
Seems there's some conflict around `near` identifier in that configuration.
2016-07-11Cycles: Fix typoSergey Sharybin