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
2015-05-09Cycles: Presumably correct workaround for addrspace in camera motion blurSergey Sharybin
2015-05-09Cycles: Add CPU compat headers to some of the OSL implementation filesSergey Sharybin
This header was already included into some of the implementation files already, and this change is needed for some upcoming changes in the way how kernel_types.h works.
2015-05-09Cycles: Set default closure values to some of the nodesSergey Sharybin
Previously it was only set at compilation time which is all fine but does not let us to check which closure the node corresponds to prior to the compilation.
2015-05-08Cleanup: Remove unused ray type flags.Thomas Dinges
They were added for completeness, but it seems we don't need them.
2015-05-07Cycles: Cleanup, make it more clear what endif closes what ifdefSergey Sharybin
2015-05-07Correct typo: ifdef'd now, but obviously wrongCampbell Barton
2015-05-05Fix T44612: add support for mouse button 6 and 7 on OS X.Brecht Van Lommel
2015-05-05Cycles: Fix for wrong clamp usage in fast mathSergey Sharybin
2015-05-05Workaround ld.gold failing with msgfmtCampbell Barton
2015-05-05Cleanup: Remove leftover from Distorted Noise node in XML reader.Thomas Dinges
2015-05-05Cycles: Use curve approximation for blackbody instead of lookup tableSv. Lockal
Now we calculate color in range 800..12000 using an approximation a/x+bx+c for R and G and ((at + b)t + c)t + d) for B. Max absolute error for RGB for non-lut function is less than 0.0001, which is enough to get the same 8 bit/channel color as for OSL with a noticeable performance difference. However there is a slight visible difference between previous non-OSL implementation because of lookup table interpolation and offset-by-one mistake. The previous implementation gave black color outside of soft range (t > 12000), now it gives the same color as for 12000. Also blackbody node without input connected is being converted to value input at shader compile time. Reviewers: dingto, sergey Reviewed By: dingto Subscribers: nutel, brecht, juicyfruit Differential Revision: https://developer.blender.org/D1280
2015-05-04Cleanup: style & const'sCampbell Barton
2015-05-04Cycles: Fix copy / paste mistake in XML reader.Thomas Dinges
2015-05-04Separate scene simplification into viewport and renderSergey Sharybin
This way it is possible to have viewport simplification bumped all the way up, making viewport really responsive but still have final render to use highest subdivision possible. Reviewers: lukastoenne, campbellbarton, dingto Reviewed By: campbellbarton, dingto Subscribers: dingto, nutel, eyecandy, venomgfx Differential Revision: https://developer.blender.org/D1273
2015-04-30Cycles: Fix possible uninitialized XML read state which might cause crashesSergey Sharybin
2015-04-30Fix T44548: Cycles Tube Mapping off / not compatible with BISergey Sharybin
Was a typo in original implementation, probably a result of some code reshuffle happened for optimization reasons.
2015-04-30Cleanup: Update some comments and add ToDo.Thomas Dinges
2015-04-30Cycles: Record all possible volume intersections for SSS and camera checksThomas Dinges
This replaces sequential ray moving followed with scene intersection with single BVH traversal, which gives us all possible intersections. Only implemented for CPU, due to qsort and a bigger memory usage on GPU which we rather avoid. GPU still uses the regular bvh volume intersection code, while CPU now uses the new code. This improves render performance for scenes with: a) Camera inside volume mesh b) SSS mesh intersecting a volume mesh/domain In simple volume files (not much geometry) performance is roughly the same (slightly faster). In files with a lot of geometry, the performance increase is larger. bmps.blend with a volume shader and camera inside the mesh, it renders ~10% faster here. Patch by Sergey and myself. Differential Revision: https://developer.blender.org/D1264
2015-04-29Cycles: Fix wrong termination criteria in SSS volume stack updateSergey Sharybin
Another issue spotted with Thomas.
2015-04-29Cycles: Fix wrong order in object flags calculationsSergey Sharybin
Object flags are depending on bounding box which is only available after mesh synchronization. This was broken since 7fd4c44 which happened quite close to the release and oddly enough was not sopped by anyone. Render test is coming for this. Was spotted by Thomas Dinges while working on another patch.
2015-04-29Cycles: Fix crashes when loading cache created with pre-leaf split buildsSergey Sharybin
2015-04-29Fix T44544: Cached BVH is broken since BVH leaf splitSergey Sharybin
Still need to solve issues with reading old cache with new builds.
2015-04-28Cleanup: Move Cycles volume stack update for subsurface into kernel_volume.h.Thomas Dinges
2015-04-28Cycles: Initialize portal variable directly, so we can avoid the one NULL check.Thomas Dinges
2015-04-27Cycles: Added support for light portalsLukas Stockner
This patch adds support for light portals: objects that help sampling the environment light, therefore improving convergence. Using them tor other lights in a unidirectional pathtracer is virtually useless. The sampling is done with the area-preserving code already used for area lamps. MIS is used both for combination of different portals and for combining portal- and envmap-sampling. The direction of portals is considered, they aren't used if the sampling point is behind them. Reviewers: sergey, dingto, #cycles Reviewed By: dingto, #cycles Subscribers: Lapineige, nutel, jtheninja, dsisco11, januz, vitorbalbio, candreacchio, TARDISMaker, lichtwerk, ace_dragon, marcog, mib2berlin, Tunge, lopataasdf, lordodin, sergey, dingto Differential Revision: https://developer.blender.org/D1133
2015-04-27Cycles: Use native saturate function for CUDASergey Sharybin
This more a workaround for CUDA optimizer which can't optimize clamp(x, 0, 1) into a single instruction and uses 4 instructions instead. Original patch by @lockal with own modification: Don't make changes outside of the kernel. They don't make any difference anyway and term saturate() has a bit different meaning outside of kernel. This gives around 2% of speedup in Barcelona file, but in more complex shader setups with lots of math nodes with clamping speedup could be much nicer. Subscribers: dingto Projects: #cycles Differential Revision: https://developer.blender.org/D1224
2015-04-26Cleanup: Code style.Thomas Dinges
2015-04-26Cleanup: Update Lookup table comments.Thomas Dinges
2015-04-26Cycles: Add Mirror ball mapping to camera panorama optionsLukas Stockner
The projection code was already in place, so this just exposes the option. Differential Revision: https://developer.blender.org/D1079
2015-04-21Cleanup: styleCampbell Barton
2015-04-20Guardedalloc: Don't use aligned blocks to calculate memory sloppynessSergey Sharybin
Aligned memory is allocated with memalign() and malloc_usable_size() can't be used to measure this block.
2015-04-20Cycles: Split BVH nodes storage into inner and leaf nodesSergey Sharybin
This way we can get rid of inefficient memory usage caused by BVH boundbox part being unused by leaf nodes but still being allocated for them. Doing such split allows to save 6 of float4 values for QBVH per leaf node and 3 of float4 values for regular BVH per leaf node. This translates into following memory save using 01.01.01.G rendered without hair: Device memory size Device memory peak Global memory peak Before the patch: 4957 5051 7668 With the patch: 4467 4562 7332 The measurements are done against current master. Still need to run speed tests and it's hard to predict if it's faster or not: on the one hand leaf nodes are now much more coherent in cache, on the other hand they're not so much coherent with regular nodes anymore. Reviewers: brecht, juicyfruit Subscribers: venomgfx, eyecandy Differential Revision: https://developer.blender.org/D1236
2015-04-20Cycles: Synchronize images after building mesh BVHSergey Sharybin
This way memory overhead caused by the BVH building is not so visible and peak memory usage will be reduced. Implementing this idea is not so straightforward actually, because we need to synchronize images used for true displacement before meshes. Detecting whether image is used for true displacement is not so striaghtforward, so for now all all displacement types will synchronize images used for them. Such change brings memory usage from 4.1G to 4.0G with the 01_01_01_D scene from gooseberry. With 01_01_01_G scene it's 7.6G vs. 6.8G (before and after the patch). Reviewers: campbellbarton, juicyfruit, brecht Subscribers: eyecandy Differential Revision: https://developer.blender.org/D1217
2015-04-17Bake-API: reduce memory footprint when baking more than one object (Fix T41092)Dalai Felinto
Combine all the highpoly pixel arrays into a single array with a lookup object_id for each of the highpoly objects. Note: This changes the Bake API, external engines should refer to the bake_api.c for the latest API. Many thanks for Sergey Sharybin for the complete review, changes suggestion and feedback. (you rock!) Reviewers: sergey Subscribers: pildanovak, marcclintdion, monio, metalliandy, brecht Maniphest Tasks: T41092 Differential Revision: https://developer.blender.org/D772
2015-04-13Cleanup: styleCampbell Barton
2015-04-13ndof: fix Linux device detect regressionMike Erwin
2015-04-10Cycles: Fix compilation error on windows after recent logging changesSergey Sharybin
2015-04-10Cycles: Cleanup, make more clear what camera utility functions are ↵Sergey Sharybin
private/public
2015-04-10Cycles: Make transform from viewplane a generic utility functionSergey Sharybin
2015-04-10Cycles: Add some statistics loggingSergey Sharybin
Covers number of entities in the scene (objects, meshes etc), also reports sizes of textures being allocated.
2015-04-09Cycles: Fix BVH counter on mesh updatesSergey Sharybin
2015-04-09Cycles: Fix wrong render result in certain configuration of render layer's ↵Sergey Sharybin
surface/hair There were some synchronization missing in cases when only one of those settings was disabled. Also added a render test for such configurations now.
2015-04-09GHOST: don't instantiate assert argCampbell Barton
When debugging is disabled, function calls in an assert should never run.
2015-04-08Fix T44046: Cycles speed regression in 2.74 (CPU only)Sergey Sharybin
Issue was caused by MSVC not being able to optimize some code out in the same way as GCC/Clang does, so now that parts of code are explicitly unfolded in order to help compilers out. This makes speed loss much less drastic on my laptop. That's probably as good as we can do with MSVC without investing infinite amount of time looking trying to workaround the optimizer.
2015-04-08Fix annoying warning in GHOST when ASSERT_ABORT is offAntony Riakiotakis
2015-04-08Cycles: Code cleanup, indentation. Was wrong in the multiview commitSergey Sharybin
2015-04-08Cleanup: remove unused definesCampbell Barton
2015-04-08Cleanup: confusing if statements & alignmentCampbell Barton
2015-04-07Cycles: Cleanup, typosSergey Sharybin
2015-04-07Cycles: Cleanup, indentationSergey Sharybin