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-08-05Fix: T41318Martijn Berger
OSL compiler signature changed with 1.5.
2014-08-05Deduplicate CUDA and OpenCL wranglersSergey Sharybin
For now it was mainly about OpenCL wrangler being duplicated between Cycles and Compositor, but with OpenSubdiv work those wranglers were gonna to be duplicated just once again. This commit makes it so Cycles and Compositor uses wranglers from this repositories: - https://github.com/CudaWrangler/cuew - https://github.com/OpenCLWrangler/clew This repositories are based on the wranglers we used before and they'll be likely continued maintaining by us plus some more players in the market. Pretty much straightforward change with some tricks in the CMake/SCons to make this libs being passed to the linker after all other libraries in order to make OpenSubdiv linked against those wranglers in the future. For those who're worrying about Cycles being less standalone, it's not truth, it's rather more flexible now and in the future different wranglers might be used in Cycles. For now it'll just mean those libs would need to be put into Cycles repository together with some other libs from Blender such as mikkspace. This is mainly platform maintenance commit, should not be any changes to the user space. Reviewers: juicyfruit, dingto, campbellbarton Reviewed By: juicyfruit, dingto, campbellbarton Differential Revision: https://developer.blender.org/D707
2014-08-02Make CHECK_TYPE_NONCONST macro portableCampbell Barton
also replace __typeof -> typeof
2014-08-02SpellingCampbell Barton
2014-08-01Cycles: Update stdosl.h for OSL 1.5.Thomas Dinges
2014-08-01Fix T41197: Blender freezes to infinite loop when switching to PAUSED Cycles ↵Sergey Sharybin
rendered viewport
2014-07-31Fix T41258: Crash when entering edit mode while viewport render is enabledSergey Sharybin
The issue was caused by the render engine loading edit mesh, which re-allocates mesh array which might be referenced by other object's derived meshed. Worst thing about this is that updating render engine happens from the end of scene update function, after all the objects are updated and so. This is needed so render engine gets the update objects which is correct. The only proper way to solve the issue is to make it so viewport engine does not leave objects in inconsistent state, meaning nobody will reference to freed data. In order to reach this we do edit mesh loading before running objects update so all the objects which uses that mesh will have proper references in the derived mesh. This also solves old creepyness which happened before when having single object in edit mode. tweaking it will calculate derived mesh as a part of scene update, then this derived mesh will be freed by edit mesh loading and viewport will be creating derived mesh again. Now render engine is expected to do nothing with meshes which are in edit mode, but they still need to load edit data for non0meshes. It's not really easy to do from the BKE level because needed functions are implemented in the editor. Thanks Campbell for the review! Differential Revision: https://developer.blender.org/D697
2014-07-31Cycles Bake: use size_t instead of width, heightDalai Felinto
(original patch by Sergey Sharybin) Note: RNA API can't use size_t at the moment. Once it does this patch can be tweaked a bit to fully benefit from size_t larger dimensions. (right now num_pixels is passed as int) Reviewed By: sergey, campbellbarton Differential Revision: https://developer.blender.org/D688
2014-07-29Fix T41174: Tangent space required UV map in CyclesSergey Sharybin
Now Cycles behaves in the same way as BI in terms of using sphere projection of orco coordinates if there's no UV map when calculating tangent space.
2014-07-29Implement get_split_task_count to make device_network compile again.Martijn Berger
2014-07-27Fix T41139: Cycles Hair BSDF roughness problemSergey Sharybin
2014-07-27Style cleanup GHOST/Win32Campbell Barton
2014-07-26OSX/GHOST: Using lion_fullscreen suffers from an uncovered problem when ↵Jens Verwiebe
called from operator, disabled for now so ALT-F11 uses old behavior again. OSX menu and CTL-CMD-F still work as lion fullscreen as well as right-upper corner fs window-icon - We must investigate here why double promotion happens from op calls ( dispatchEvents on redraw cause duplicated calls here ) - The actual op calls cause fs to be in a wrong state, so also mousehandles fail and CTX_wm_window(C) is not valid. - similar problem is with quit op, which does not close the app right ( totblocks ) - i would prefer to try getting direct os function call here rather
2014-07-25Cycles Bake: show progress bar during bakeDalai Felinto
Baking progress preview is not possible, in parts due to the way the API was designed. But at least you get to see the progress bar while baking. Reviewers: sergey Differential Revision: https://developer.blender.org/D656
2014-07-25Switch to Cuda 4.0 style api for kernel invocation. This is a small clean-up ↵Martijn Berger
that has no functional changes but makes code a bit more readable. Differential revision: https://developer.blender.org/D659 Reviewed by: Sergey Sharybin, Thomas Dinges
2014-07-25Fix inconsistent use of print_error() and fprintf(stderr, ...) in ↵Tamito Kajiyama
MEM_guarded_printmemlist_internal(). Also extended the size of buf[] in print_error() to prevent mem_printmemlist_pydict_script[] from getting truncated when MEM_printmemlist_pydict() is used. Differential revision: https://developer.blender.org/D675 Reviewed by: Campbell Barton
2014-07-25Yet another OSL compilation fix...sorry.Thomas Dinges
2014-07-25Cycles: Drop old OSL closure compatibility code.Thomas Dinges
This was added to keep custom OSL scripts with Toon and SSS closure calls working. 1 year after the change, we can drop the compatibility code now.
2014-07-25One more fix for new OSL libs.Thomas Dinges
2014-07-25Fix atomix operations on unofficial 64bit archsMatteo F. Vescovi
2014-07-25Cycles: Updates for new OSL 1.5 API.Thomas Dinges
Differential Revision: https://developer.blender.org/D662 Patch by Sergey and myself.
2014-07-24Code cleanup: ghost styleCampbell Barton
2014-07-23Fix T41116: Motion Blur causes random black surfaces on rigged modelsSergey Sharybin
Fix T41115: Motion Blur renders Objects Black - But not in Viewport Preview This actually extends previous fix to normals and makes it all much nicer now. Worth doing some intense testing, quick one worked just fine but there always could be some corner cases.
2014-07-23Fix T41147: Static BVH shading problemSergey Sharybin
Fix T41079: Solid black render of object with negative scale and smooth shading In both cases the issue was caused by negative scaled objects with single mesh users for which scale gets applied when using static BVH. Since the on-fly normals calculation land normals for such cases weren't flipped leading them to point to a wrong direction. Added a special object flag for this, which is a bit of a bummer because now we've got less bits for real useful things, but this is the only way to get proper normals without adding more complexity in the on-fly calculations.
2014-07-22Cleanup: pep8 & redundant varsCampbell Barton
2014-07-21Bugfix T41133: Audio: Speakers with animated pitch cause clicks in rendered ↵Jörg Müller
animations, crashes or huge filesizes in rendered audio Crash happened when the pitch value got <= 0, preventing this now.
2014-07-19Code cleanup: warningsCampbell Barton
2014-07-18Fix T41109: Reloading image that has been modified outside Blender does not ↵Sergey Sharybin
update image in Image Texture nodes
2014-07-18Code cleanupCampbell Barton
2014-07-17Cleanup / Cycles: Remove unused defines and some other minor changes.Thomas Dinges
2014-07-15Fix T40964: Massive shading failures with glass node mixing, whiteouts and ↵Sergey Sharybin
blackouts
2014-07-15BGE: TrackTo actuator: increasing up & track axis optionsJorge Bernal
This is related to Task T34861 to increase up & track axis options for TrackTo actuator. I've just added it to differential to facilitate an easier review. With the patch applied you can select X, Y and Z axis for the Up axis, and X, Y, Z, -X, -Y and -Z for the track axis. Related to the implementation I have used the algorithm from Trackto constrain placed in constrain.c but adapted to be used with MOTO library. The wiki docs are here (http://wiki.blender.org/index.php/User:Lordloki/Doc:2.6/Manual/Game_Engine/Logic/Actuators/Edit_Object#Trackto_Actuator). Test file is here: {F97623} I have also uploaded 2 screenshots showing the UI modifications to the TrackTo actuator: {F91992} {F91990} Reviewers: moguri, dfelinto Reviewed By: moguri CC: Genome36 Differential Revision: https://developer.blender.org/D565
2014-07-13Fix T40987: Distant Lamps have no influence on Volumes.Thomas Dinges
Differential Revision: https://developer.blender.org/D639
2014-07-11Fix T41023: Specific material cause bad render result, different on CPU/GPUSergey Sharybin
Issue was caused by too much aggressive optimization, which skipped execution of some nodes leading to an uninitialized memory read in SVM stack.
2014-07-10Cycles: Add link to a paper used for Beckmann table calculationSergey Sharybin
This is for those who'll be reading code and trying to improve it.
2014-07-10Fix T41005: Seemingly random crashes with cycles renderingSergey Sharybin
Fix T41013: OSL and Crash Fix T40989: Intermittent crash clicking material color selector Issue was caused by not enough precision for inversion threshold. Use double precision for this threshold now. We might want to investigate this code a bit more further, stock implementation uses doubles for all computation. Using floats might be a reason of bad rows distribution in theory.
2014-07-10Cleanup: Same thing in path trace setup, we can safely always assign the ↵Thomas Dinges
proper value.
2014-07-10Cleanup: Always assign num_samples, there is no need for this special define.Thomas Dinges
2014-07-09Fix T41003: Object Info's Random socket produces erratic results whenLukas Tönne
material is applied to multiple Dupli instances of an object. One of the random_id initialization lines for cycles objects slipped into the basic update part in this commit: rBb98ff5cb5b2c14c33b16e3b129e1e08810e90a6c This would constantly re-shuffle the random_id ...
2014-07-07Code cleanup: Simplify decoupled scattering code a bit.Thomas Dinges
2014-07-07Fix T40712: Duplicators don't generate orco and UV coordinates in Cycles ↵Lukas Tönne
viewport preview. Fix T39286: Display percentage ignored in Cycles viewport. The threaded depsgraph update changes included a cleanup of the global is_rendering flag, which was replaced by a general EvalContext being passed to dupli functions. Problem is that the global flag was true for viewport duplis before (ugly hack), which was used as a check for generating dupli orco/UV from mesh data layers. The new flag is stricter and only true for actual renders, which disables these attributes and breaks the Cycles Texture Coordinates and UVMap nodes. The solution is to extend the simple for_render boolean to an enum: * VIEWPORT: OpenGL viewport drawing (dupli tex coords omitted) * PREVIEW: Viewport preview render (simplified modifiers) * RENDER: Full render with all details and attributes There are still some areas that need to be examined, in particular modifiers seem to totally ignore the EvaluationContext! Instead they generally execute without render params from the depsgraph (BKE_object_handle_update_ex) and are built with render settings explicitly. Differential Revision: https://developer.blender.org/D613
2014-07-07Cycles: Fix crash with environment maps and packed imagesSergey Sharybin
2014-07-06Cycles: Equi-Angular and MIS Volume sampling work on GPU now.Thomas Dinges
* malloc() is used now, which is supported since sm_20: http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#dynamic-global-memory-allocation-and-operations The performance of this needs to be tested on various cards still. * This also works for Heterogeneous Decoupled Ray Marching, but in this case I get sporadic "Illegal Address" errors on my Geforce 540, therefore I did not remove the GPU check in kernel_volume_use_decoupled() yet. I would appreciate some tests from people who compile themselves, enable Volumetrics in kernel_types.h.
2014-07-06Fix part of T40964: Glass shader was giving wrong results with OSL.Thomas Dinges
2014-07-05Cycles: Some tweaks to baking UI.Thomas Dinges
* Put Normal Settings beneath the other ones, wild button jumping should be avoided. * Remove Cage prefix for Object and Extrusion, it's clear from the button placement, the former UI was too squeezed...
2014-07-05Cleanup: Typo fixes.Thomas Dinges
2014-07-05Cycles: Compile fixes for CUDA Volumetrics.Thomas Dinges
* CUDA can be compiled with Volume support again, change line 78 kernel_types.h for that. Volumes are still fragile on GPU though, got some Memory/Address CUDA errors in tests.. needs to be investigated more deeply.
2014-07-04Fix T40843: Cycles does not support viewport render overrideSergey Sharybin
2014-07-03Fix T39825: Crash on startup with tabletCampbell Barton
2014-07-02Cycles: Update CUDA error messages, based on Toolkit 6.0.Thomas Dinges
* Removed deprecated erros, and added some new ones, which might help to figure out problems in the future.