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-29Cycles: Add fundamentals to test constant foldingSergey Sharybin
This commit adds some easy to use way to check whether the graph was properly optimized. The idea is based on using mock glog sync which keeps track on all messages and expects specific log message to appear in the logging. This means each optimization step should report that it optimized something (specifying what exactly was optimized) and what was used for optimization. There's also some ease-ish way to define shader networks which we might want to make a bit more global and available for all tests in the future. For now only RGBToBW node is covered as an example, really hope to get help from active guys in the community to finish covering all existing optimization cases. Ready to fix any possible issues with builder when needed tho :)
2016-07-29Cycles: Fix wrong projection coordinates for points behind the cameraSergey Sharybin
Points behind camera will be flipped on projection, but that did not happen. This solves second issue reported at T48848.
2016-07-29Cycles: Fix wrong check for object is behind camera after recent fixesSergey Sharybin
2016-07-29Cycles: Fix strict compilation warningSergey Sharybin
2016-07-29Cycles: remove narrowing conversion from recent commitMai Lavelle
2016-07-29Cycles microdisplacement: move subdivision options to subsurf modifierMai Lavelle
Subdivision options can now be found in the subsurf modifier. The modifier must be the last in the stack or the options will be unavailable. Catmull-Clark subdivision is still unavailable and will fallback to linear subdivision instead Reviewed By: brecht Differential Revision: https://developer.blender.org/D2109
2016-07-29Cycles microdisplacement: ngons and attributes for subdivision meshesMai Lavelle
This adds support for ngons and attributes on subdivision meshes. Ngons are needed for proper attribute interpolation as well as correct Catmull-Clark subdivision. Several changes are made to achieve this: - new primitive `SubdFace` added to `Mesh` - 3 more textures are used to store info on patches from subd meshes - Blender export uses loop interface instead of tessface for subd meshes - `Attribute` class is updated with a simplified way to pass primitive counts around and to support ngons. - extra points for ngons are generated for O(1) attribute interpolation - curves are temporally disabled on subd meshes to avoid various bugs with implementation - old unneeded code is removed from `subd/` - various fixes and improvements Reviewed By: brecht Differential Revision: https://developer.blender.org/D2108
2016-07-29Fix Cycles OSL hair BSDF inconsistencies with SVM.Brecht Van Lommel
2016-07-29Fix use of uninitialized variable in Cycles, mostly harmless.Brecht Van Lommel
2016-07-28Cycles: Fix difference in Ashikhmin Shirley shader between CPU and GPUSergey Sharybin
The issue was caused by some NaN appearing in calculations. Visible with scifi_armor_concept.blend from the cloud.
2016-07-28Cycles: Fix missing mesh flags update when tweaking shadersSergey Sharybin
This is a bit weak, but better than tagging whole mesh manager for update. Maybe we'll solve such dual-look up in the future. This commit finally solves T48963: Noise when changing Diffuse node to Emission node
2016-07-28Cycles: Fix wrong order of light manager update tagSergey Sharybin
Shader's has_surface_emission will only be known for sure after compilation.
2016-07-28Cycles: De-duplicate more checks around light emisive meshesSergey Sharybin
Once again, should be no functional changes.
2016-07-28Cycles: De-duplicate check for MIS shaders in meshesSergey Sharybin
Should be no functional changes.
2016-07-28Cycles: Add some extra logging for light debuggingSergey Sharybin
2016-07-28Fix T48790: Cycles render bug with zero strength lights.Brecht Van Lommel
2016-07-27Cycles: Style, placement of asteric in pointersSergey Sharybin
Seems we are using `void *` much much more often in Cycles.
2016-07-27Cycles: Some minor tweaks to emission sharderSergey Sharybin
- Nodification of shader nodes changed default strength from 10 to 1. If that was intentional, IMO should happen as a separate commit. - Fixed indentation.
2016-07-26Cycles: Proper fix for buffer overflow in volume intersect allSergey Sharybin
2016-07-26Cycles: Revert previous fixes to intersect_all functionsSergey Sharybin
While they prevent legit write past the array boundary error those fixes introduced regression in behavior when having exact max_hits transparent intersections and nothing else. Previous code would have considered such case a totally opaque, but it's not correct. Fixes T48941: Some materials don't get transparent shadows anymore
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