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
2014-10-02Cycles: optimization of panoramic camera in volumeSergey Sharybin
Now we do much better preliminary check for panoramic camera is inside the volume object boundings. Also we're now cacheing the has_volume in the mesh, which makes it unneeded iterations for each object's shaders. Should be no functional changes, just faster sync and panoramic-in-volume rendering.
2014-09-29Cleanup: styleCampbell Barton
2014-09-28Cycles: Correct object flags bitfield, was missing negative scale thereSergey Sharybin
It's quite a few of circumstances to be met to hit the case when render wouldn't be correct. Better to be ported to the final release.
2014-09-28Cycles: Avoid temp variable in camera-in-volume checkSergey Sharybin
Was a left-over from some experiments, no need it with the current implementation, and likely wouldn't need in the future.
2014-09-28Cycles: Cleanup of the SSS volume stack update codeSergey Sharybin
Was a leftover after the changed scene_intersect() which used to be ifdefed depending on the __HAIR__ in the original patch.
2014-09-26Cycles: Keep STACK_MAX_HITS private in kernel_shadowSergey Sharybin
This way adding record_all for other things becomes easier and doesn't lead to naming conflicts.
2014-09-26Code style.Thomas Dinges
2014-09-26OpenNL: modify SuperLU to use doubles rather than floats, for better precision.Brecht Van Lommel
This helps to improve the accuracy of UV unwrapping and laplacian deform for high poly meshes, which could get warped quite badly. It's not much slower, doubles are pretty fast on modern CPUs, but it does double memory usage. This seems acceptable as otherwise high poly meshes would not work correctly anyway. Fixes T39004.
2014-09-26Fix build errors in atomic ops and warning in aligned malloc on OS X.Brecht Van Lommel
2014-09-26Cycles: Keep ccl_always_inline always inlining the stuffSergey Sharybin
It works around strange shading bug when building with MSVC. If such weirdeness continues, we perhaps would need to use proper inline flags all the time. Anyway, lets see how things will behave now.
2014-09-25Cycles: Accidentally inverted the logic of NDEBUG macroSergey Sharybin
2014-09-25Cycles: Better feedback about experimental features being usedSergey Sharybin
Instead of having a label which basically duplicated the information about experimental feature set being used (which had a bug because it claimed experimental GPU kernel is used even if compute device is CPU btw) now we've got an enum item icon. So once you switched to experimental feature set you'll see an exclamation mark icon in the enum, so you know something might be unstable or slow.
2014-09-25Guardedalloc: Implement atomic peak memory updateSergey Sharybin
Updating maximum requires a bit of a cycle which usually does 1 iteration only, sometimes needs a bit more but seems there's no speed regressions. For now the code is commented out. This way it's easier for others to verify there's no speed regressions. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D626
2014-09-25Atomics: Add CAS (compare-and-swap) functionsSergey Sharybin
2014-09-25Cycles: Fix for the MSVC which doesn't have default osteram constructorSergey Sharybin
2014-09-25Cycles: Make CUDA backend aware of sm_52 (Maxwell).Thomas Dinges
In order to compile the new kernel you need to specify sm_52 in SCons / CMake, and use CUDA Toolkit 6.5.19, from here: https://developer.nvidia.com/cuda-downloads-geforce-gtx9xx Note: sm_52 is not enabled per default yet, so it won't be bundled with the Buildbot builds. That will be addressed later.
2014-09-25Cycles: Add support for cameras inside volumeSergey Sharybin
Basically the title says it all, volume stack initialization now is aware that camera might be inside of the volume. This gives quite noticeable render time regressions in cases camera is in the volume (didn't measure them yet) because this requires quite a few of ray-casting per camera ray in order to check which objects we're inside. Not quite sure if this might be optimized. But the good thing is that we can do quite a good job on detecting whether camera is outside of any of the volumes and in this case there should be no time penalty at all (apart from some extra checks during the sync state). For now we're only doing rather simple AABB checks between the viewplane and volume objects. This could give some false-positives, but this should be good starting point. Need to mention panoramic cameras here, for them it's only check for whether there are volumes in the scene, which would lead to speed regressions even if the camera is outside of the volumes. Would need to figure out proper check for such cameras. There are still quite a few of TODOs in the code, but the patch is good enough to start playing around with it checking whether there are some obvious mistakes somewhere. Currently the feature is only available in the Experimental feature sey, need to solve some of the TODOs and look into making things faster before considering the feature is ready for the official feature set. This would still likely happen in current release cycle. Reviewers: brecht, juicyfruit, dingto Differential Revision: https://developer.blender.org/D794
2014-09-25Fix T39823: SSS scatter doesn't update volume stack, causing shading artifactsSergey Sharybin
Basically the title says it all, we need to update volume stack when doing ray scatter for SSS. This leads to speed regressions in cases scene does have both volume and SSS (performance in case there's no SSS or no volume should be the same). We might try optimizing kernel_path_subsurface_update_volume_stack() a bit by either recording all intersections or using some more appropriate visibility flags. Reviewers: brecht, juicyfruit, dingto Differential Revision: https://developer.blender.org/D795
2014-09-25Cycles: Add method to dump current shader graph to the graphiz fileSergey Sharybin
This is rather useful to see how good optimization went and so. Currently uses quite simple notation: shader nodes are nodes on the graph, connects between graph nodes are named by the sockets names, so i.e. connection between BSDF and Mix would be named bsdf:closure1. Could be improved in the feature to draw fancier graph, but it's good enough already. Use in the following way: - To create graphix file call graph->dump_graph("graph.dot") - To visualize the grapf call: dot -Tpng graph.dot -o graph.png
2014-09-25Cycles: Don't inline functions for debug CPU kernelSergey Sharybin
Nobody will use debug mode for benchmarks anyway and this way it's much easier to set breakpoints on inlined functions to catch all their usages.
2014-09-25Cycles: Add support of Glog loggingSergey Sharybin
This commit makes it possible to use Glog library for the debug logging. For now only possible when using CMake and in order to use the logging the WITH_CYCLES_LOGGING configuration variable is to be enabled. When this option is not enabled or when using Scons there's no difference in Cycles behavior at all, when using logging and no output to the console impact is gonna to be minimal. This is done in order to make it possible to have debug logging persistent in code (without need to add it when troubleshooting some bug and removing it afterwards). For now actual logging is not placed yet, only all the functions needed for the logging are written and so.
2014-09-24OSX: ensure windows are restored at their saved position,Jens Verwiebe
meaning here we need to take docksize into account
2014-09-24make "tri_shader" an int instead of a floatMartijn Berger
tri_shader does no longer need to a float. Reviewers: dingto, sergey Reviewed By: dingto, sergey Subscribers: dingto Projects: #cycles Differential Revision: https://developer.blender.org/D789
2014-09-24Cycles: Shader Graph Optimization for Mix RGB nodes.Thomas Dinges
Basically the same as AC2c58e96685e8, but for Mix RGB Shaders, in case we use the Mix type. This way the node can be used as texture switch for example, setting the Factor to 0.0 or 1.0, without wasting extra memory / render time.
2014-09-24Cleanup: Avoid some defines for scene_intersect(), related to Min Width.Thomas Dinges
2014-09-23Fix typo in previous commitSergey Sharybin
Buttons are too much close to each other on the keyboards!
2014-09-23Move versioning code under the subversion checkSergey Sharybin
2014-09-23Fix T41912, OpenCL compile error when building without __SVM__Thomas Dinges
Thanks to Vitaliy Filippov for the patch.
2014-09-20Cycles: Backward compatibility code for the Clamp splitting in 2.70.Thomas Dinges
If an older file (< 270) had clamp enabled, with e.g. a value of 2.0, Direct and Indirect clamp are now automatically set to 2.0 as well.
2014-09-20Cycles: Add a UI warning, in case the experimental GPU kernel is used.Thomas Dinges
The experimental kernel is slower and can cause issues on some cards still, so better communicate it well.
2014-09-19Cycles: Remove unused Mix Shaders from the ShaderGraph, instead of only ↵Thomas Dinges
relinking. Differential revision: https://developer.blender.org/D796
2014-09-19Cleanup: Indentation and Whitespace.Thomas Dinges
2014-09-19Add texture coordinate export.Nathan Letwory
2014-09-18Cleanup: style, spellingCampbell Barton
2014-09-17Cleanup: pep8Campbell Barton
2014-09-16Cycle: Add a bit of explanation why we're using such a dirty hackSergey Sharybin
2014-09-16Cleanup: sync map_to_sphere, UNLIKELY xy zero caseCampbell Barton
2014-09-15Cycles: tentative fix get rid of os-specific issue in struct ShaderClosure ( ↵Jens Verwiebe
aligment issues due order )
2014-09-15Fix T41839, OpenCL error.Thomas Dinges
Also some style fixes, we don't do the "put as much as possible in 1 line" contest.
2014-09-11Followup for last commit, we can break the loop, once we have a match.Thomas Dinges
2014-09-11Fix T41784, Re-enabling transparent shadows in Cycles doesn't work correctlyThomas Dinges
2014-09-07Comment out SVM fresnel_conductor() function for now, still unused.Thomas Dinges
2014-09-07Cycles / OSL: Add a conductive fresnel shader template.Thomas Dinges
This adds a fresnel conductive OSL preset to the Text Editor. Based on a patch by Lukas Stockner. Differential revision: https://developer.blender.org/D145 See the differential for details.
2014-09-07No need for try/except in D766Campbell Barton
2014-09-07Cycles: Several fixes for Presets.Thomas Dinges
* Fix caustic properties, was not updated. * Remove wrong items, leftovers from panel splitting. * Add missing items. Even if the bundled presets do not set those, a user expects that all properties inside the panel are taken into account, when adding a new preset.
2014-09-07Cycles: Fix Caustic tooltips.Thomas Dinges
Now that the option has been reversed, the tooltips should be changed too. Thanks to David Black, for bringing this up!
2014-09-06Fix T41709: Bump not rendered correctly behind transparency using Branched ↵Sergey Sharybin
Path Tracing
2014-09-06Cycles: Workaround cuda 6.5 compiler bug with sm_50Sergey Sharybin
2014-09-06Cycles: Fix for the BSDF evaluation initSergey Sharybin
2014-09-05Cycles: Split caustics option, to allow separate control for Reflection and ↵Thomas Dinges
Refraction caustics. This way artists can only disable/enable refraction or reflection caustics. See Cycles logs for an example: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Cycles Differential revision: https://developer.blender.org/D766