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
2017-06-07Fix MSVC compile (T51740)Mike Erwin
Gawain doesn't include Blender's cross-platform "inline" definition. This change slipped in as part of D2697.
2017-06-07Gawain: stricter lookup of builtin uniformsMike Erwin
UNIFORM_NONE should never match a valid uniform (builtin or custom). The logic for UNIFORM_CUSTOM was just wrong, since it returned the first custom uniform. This function should only accept builtin (non-custom) uniforms.
2017-06-07Gawain: faster lookup shader attribs by nameMike Erwin
Quick hash rejection instead of string comparison. Uniform lookups already work this way. I don't expect a major overall speedup since attributes are looked up less frequently than uniforms.
2017-06-07Merge branch 'master' into blender2.8Sergey Sharybin
2017-06-07Report OpenSubdiv version Blender is compiled againstSergey Sharybin
2017-06-06Cycles: Fix infinite update when using duplisSergey Sharybin
The issue was caused by usage of address of dupli-object (which will vary from iteration process to iteration process) as something denoting whether we've got the data synchronized to Cycles or not. For now solved by using address of original object (the one DupliObject points to) as a pointer for the map. Need to do more thoughts about this.
2017-06-06Cycles: Support rendering objects from dupli-listSergey Sharybin
This commit extends the work from Dalai made around scene iterators to support iterating into objects from dupli-lists. Changes can be summarized as: - Depsgraph iterator will hold pointer to an object which created current duplilist. It is available via `dupli_parent` field of the iterator. It is only set when duplilist is not NULL and guaranteed to be NULL for all other cases. - Introduced new depsgraph.duplis collection which gives a more extended information about depsgraph iterator. It is basically a collection on top of DEGObjectsIteratorData. It is used to provide access to such data as persistent ID, generated space and so on. Things which still needs to be done/finished/clarified: - Need to introduce some sort of `is_instance` boolean property which will indicate Python and C++ RNA that we are inside of dupli-list. - Introduce a way to skip dupli-list for particular objects. So, for example, if we are culling object due to distance we can skip all objects it was duplicating. - Introduce a way to skip particular duplicators. So we can skip iterating into particle system. - Introduce some cleaner API for C side of operators to access all data such as persistent ID and friends. This way we wouldn't need de-reference iterator and could keep access to such data really abstract. Who knows how we'll be storing internal state of the operator in the future. While there is still stuff to do, current state works and moves us in the proper direction.
2017-06-01Gawain: Optimize shader uniform accessSergey Sharybin
Before this change Gawain was doing list lookup twice, doing string comparison of every and each input which is not efficient and not friendly for CPUs with small cache size. Now we store hash of input name together with actual name and compare hashes first. Additionally, we do everything in a single pass which is much better from cache coherency point of view. This brings Eevee cache population time from 80ms to 60ms on my desktop and from 800ms to 400ms for Clement when navigating in a file from T50027. Reviewers: merwin, dfelinto Subscribers: fclem Differential Revision: https://developer.blender.org/D2697
2017-05-31Merge branch 'master' into blender2.8Sergey Sharybin
2017-05-31Libmv: Re-bundle from upstream to ensure code base is perfectly in syncSergey Sharybin
2017-05-31Improve backscatter color of subsurface scattering in Principled BSDFPascal Schoen
Differential Revision: https://developer.blender.org/D2685
2017-05-30Bpy Extras: Port cycles node functions to new node_utils.pyClément Foucault
2017-05-30Audaspace: Don't use strict flagsSergey Sharybin
2017-05-30Cycles: Cleanup, trailing whitespaceSergey Sharybin
2017-05-30Fix T51652: Cycles - Persistant Images not storing imagesLukas Stockner
Denoising was setting session parameters for every frame, which was detected as a change and therefore caused a resync. Since the parameter modification change is only needed for viewport rendering (which doesn't support denoising anyways) and resyncing after a frame change (which isn't affected by denoising settings), an easy fix is to just ignore the denoising parameters like it's currently done with the samples.
2017-05-29NDOF: clean up after MinGW removalMike Erwin
Follow up to 9f044cb422c1fc9ad79278092445f612342abb59 These comments described the difference between Microsoft & MinGW's struct definition. Now that we dropped MinGW we don't need to go into these details.
2017-05-29Gawain: update comments to match latest APIMike Erwin
2017-05-29Gawain: Add support for rendering using an instance batch (for particles)Clément Foucault
2017-05-29Fix T51646: Motion Tracker instantly crashesSergey Sharybin
Was a mistake in previous changes. Weirdly enough, frame reading assumes cache_key is always non-NULL..
2017-05-28Merge branch 'master' into blender2.8Bastien Montagne
2017-05-27Remove MinGW supportAaron Carlisle
The Issue ======= For a long time now MinGW has been unsupported and unmaintained and at this point, it looks like something that we should just leave behind and move on. Why Remove ========== One of the big motivations for MinGW back in the day is that it was free compared to MSVC which was licensed based. However, now that this is no longer true we have basically stopped updating the need CMake files. Along with the CMake files, there are several patches to the extern libs needed to make this work. For example, see: https://developer.blender.org/diffusion/B/browse/master/extern/carve/patches/mingw_w64.patch If we wanted to keep MinGW then we would need to make more custom patches to the external libs and this is not something our platform maintainers are willing to do. For example, here is the patches needed to build python: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-python3 Fixes T51301 Differential Revision: https://developer.blender.org/D2648
2017-05-26Gawain: move convert_prim_type_to_gl to private APIMike Erwin
2017-05-26Fix T50908: Motion Tracker ignored grease pencil maskSergey Sharybin
This feature got lost with new auto-track API, Added it back by extending frame accessor class. This isn't really a frame thing, but we don't have other type of accessor here. Surely, we can use old-style API here and pass mask via region tracker options for this particular case, but then it becomes much less obvious how real auto-tracker will access this mask with old style API. So seems we do need an accessor for such data, just matter of finding better place than frame accessor.
2017-05-26Merge branch 'master' into blender2.8Campbell Barton
2017-05-26Cycles: Cleanup: Remove semicolons from line endings in Python codeLukas Stockner
2017-05-26Cycles: Update compositor when debug or denoising passes are changedLukas Stockner
2017-05-26Cycles: Cleanup: b_srlay is always used now, no more need to silence warningLukas Stockner
2017-05-25TexFace removal part 3Campbell Barton
- MTexPoly structure & layer type. - The 'Mesh.uv_textures' layers. - DerivedMesh TexFace drawing. - Scripts & UI.
2017-05-25Merge branch 'master' into blender2.8Julian Eisel
2017-05-24Cycles: Use falltrhough attribute to help catching missing break statementsSergey Sharybin
2017-05-24Merge branch 'master' into blender2.8Campbell Barton
2017-05-24Fix T51589: Principled Subsurface Scattering, wrong shadow colorPascal Schoen
Apply mix of subsurface and base color (wrt subsurface) for rays that have transmitted the surface.
2017-05-23Merge branch 'master' into blender2.8Sybren A. Stüvel
2017-05-23Cleanup: Make Gawain code style more consistentSergey Sharybin
Not as if i'm totally fine with such style, but i'd better be consistent with whatever the project is using.
2017-05-23Fix T51592: Simplify AO Cycles setting remains active while Simplify is disabledSergey Sharybin
2017-05-22Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenloader/intern/versioning_270.c
2017-05-22Gawain: replace switch with lookup tableMike Erwin
This function is not performance critical, but I prefer the branch-free code and no hack needed to appease gcc. Follow-up to recent 23035cf46fb4dd6a0bf7e688b0f15128030c77d1 and f637145450010d14660fcb029d41560a138eae14.
2017-05-22Fix T51568: CUDA error in viewport render after fix for for OpenCLSergey Sharybin
Seems re-loading module invalidates memory pointers by the looks of it, which gives an error on the next kernel call. Not sure how to move memory pointer from one CUDA module to another one, so for now simply disabling kernel re-load for CUDA devices. Not ideal, but better than failing render. Feature-selective option for CUDA is not an official feature anyway.
2017-05-22Fix compilation on gccAntony Riakiotakis
2017-05-22Gawain: remove GLenum from IndexType APIMike Erwin
Goal is to make most of the API independent of OpenGL, Vulkan, any other backend. Able to remove default case from ElementList_size because IndexType only covers index types. Not that and *everything else* like GLenum.
2017-05-22Gawain: use integer math to convert int16 to int10Mike Erwin
@fclem does this work for you?
2017-05-22Gawain: cleanup code formattingMike Erwin
2017-05-22Gawain: drop support for APPLE_flush_buffer_rangeMike Erwin
Modern GL's glMapBufferRange works the same on all platforms. Part of T49012
2017-05-21Gawain: drop support for APPLE_vertex_array_objectMike Erwin
Recent versions of OpenGL support VAOs natively. Part of T49012
2017-05-21Gawain: promote 10_10_10 to first-class vertex formatMike Erwin
This format is part of OpenGL 3.3, and one of the reasons for choosing 3.3 over 3.2. Instead of checking #if USE_10_10_10 just use it wherever needed.
2017-05-21Cycles Denoising: Skip feature pass writing for volume-only shadersLukas Stockner
Volume shaders without anything connected to the surface output are treated as if they had a transparent BSDF as the surface shader in Cycles, so the denoiser should skip feature pass writing for them just as it does with an actual transparent BSDF.
2017-05-21Cycles Denoising: Skip confidence interval test for outlier central pixelsLukas Stockner
If the central pixel is an outlier, the denoiser is supposed to predict its value from the surrounding pixels. However, in some cases the confidence interval test would reject every single surrounding pixel, which leaves the model fitting with no data to work with.
2017-05-20Cycles: Cleanup, style and unused argumentsSergey Sharybin
- Some arguments were inapproriatry tagged as unused using (void)foo semantic. Only use such semantic in tricky casses, when something needs to be ignored in release builds or something is dependent on tricky ifndef policy. For rest of the cases just use void foo(int /bar*/) semantic, which ensures variable is not used. Solves confusion and code running out of sync with later development. - Used proper unused semantic to some arguments. - Added braces to make code easier to follow, tricky indentation with ifdef, uh.
2017-05-20Merge branch 'master' into blender2.8Campbell Barton
2017-05-20CMake: Use GCC7's -Wimplicit-fallthrough=5Campbell Barton
Use to avoid accidental missing break statements, use ATTR_FALLTHROUGH to suppress.