Campbell Barton
c1c6c11ca6
Cleanup: spelling in comments
2021-10-12 17:55:02 +11:00
Brecht Van Lommel
0cddbcf1d7
Fix T91803: Freestyle rendering as pass broken after recent changes
2021-09-29 21:14:37 +02:00
Brecht Van Lommel
0803119725
Cycles: merge of cycles-x branch, a major update to the renderer
...
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-21 14:55:54 +02:00
Iyad Ahmed
6f52ebba19
UI: Freestyle UI Upgrade
...
Suggested and funded by [[ https://blendernpr.org/ | BNPR ]], this patch aims to update the long not-updated Freestyle UI
**Why do the UI upgrade:**
- Freestyle UI doesn't match the rest of Blender UI, it was neglected for a long time
- The current UI makes Freestyle workflows tedious and distracting
**Highlights:**
For before/after screenshots see https://developer.blender.org/D10505
Video:
https://youtu.be/qaXhuJW_c9U
Workflow video (older revision): https://youtu.be/IqbjIq_A800
Doc patch (WIP): https://github.com/bnpr/FreestyleUIUpgrade/blob/main/freestyle-ui-upgrade-docs.diff
Reviewed By: #user_interface, Blendify, HooglyBoogly, Severin
Differential Revision: https://developer.blender.org/D10505
2021-09-13 10:37:50 -04:00
Brecht Van Lommel
0b0c2901f6
Render: remove unused Blender Internal view layer settings
...
These should have been removed earlier but were forgotten.
2021-07-29 17:59:03 +02:00
Campbell Barton
9b89de2571
Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXX
...
Also use doxy style function reference `#` prefix chars when
referencing identifiers.
2021-07-04 00:43:40 +10:00
Campbell Barton
1f778dbefc
Cleanup: use Blender's code style for doxygen commetns in freestyle
2021-06-24 15:59:34 +10:00
Brecht Van Lommel
ec8c09f2aa
Cleanup: fix compiler warnings
2021-02-17 16:26:24 +01:00
Sebastian Parborg
d0aa7d5562
Merge branch 'blender-v2.92-release'
2021-02-02 16:47:21 +01:00
Sebastian Parborg
f8359b5f52
Fix freestyle render pass not being created when there are no strokes
...
It could lead to missing images when outputing the pass to an image
sequence.
2021-02-02 16:45:23 +01:00
Brecht Van Lommel
90bcd5e724
Cleanup: remove unused render camera code
2021-01-22 19:30:17 +01:00
Brecht Van Lommel
84702bd3d8
Fix T84242: freestyle animated camera shift lags behind in animation render
2021-01-21 14:21:49 +01:00
Sybren A. Stüvel
958df2ed1b
Cleanup: Clang-Tidy, modernize-deprecated-headers
...
No functional changes.
2020-12-04 11:28:09 +01:00
Campbell Barton
8c846cccd6
Cleanup: clang-format
2020-11-09 15:47:08 +11:00
Sybren A. Stüvel
16732def37
Cleanup: Clang-Tidy modernize-use-nullptr
...
Replace `NULL` with `nullptr` in C++ code.
No functional changes.
2020-11-06 18:08:25 +01:00
Aaron Carlisle
580ff2cb93
Cleanup: Render Module: combine intern/ source & include
2020-11-06 10:37:40 -05:00
Sergey Sharybin
af35ada2f3
Cleanup: Clang-Tidy, modernize-use-bool-literals
2020-11-06 14:32:51 +01:00
Sergey Sharybin
a331d5c992
Cleanup: Clang-Tidy, modernize-redundant-void-arg
2020-11-06 13:40:46 +01:00
Sergey Sharybin
190170d4cc
Cleanup: Clang-Tidy, readability-redundant-member-init
2020-11-06 11:54:53 +01:00
Campbell Barton
aa3a4973a3
Cleanup: use ELEM macro
2020-11-06 12:32:54 +11:00
Campbell Barton
7cb20d841d
Cleanup: follow our code style for float literals
2020-11-06 12:32:54 +11:00
Valentin
5ac4778056
Cleanup: convert gforge task ID's to phabricator format
...
Cleanup old tracker task format to the new. e.g: [#34039 ] to T34039
Ref D8718
2020-09-30 20:11:06 +10:00
Campbell Barton
c350d1eb13
Cleanup: remove redundant scene argument in BKE_object_add
2020-09-07 14:09:50 +10:00
Jacques Lucke
6a4f5e6a8c
Depsgraph: simplify build API
...
Reviewers: sergey, sybren
Differential Revision: https://developer.blender.org/D8611
2020-08-18 15:51:32 +02:00
Jacques Lucke
d9f7cbb8af
Cleanup: remove bmain argument from BKE_scene_graph_update_for_newframe
...
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8613
2020-08-18 15:45:58 +02:00
Campbell Barton
a1d57e3f05
Cleanup: replace sizeof division with ARRAY_SIZE macro
2020-08-08 14:08:37 +10:00
Sybren A. Stüvel
326e137a8c
Cleanup: Freestyle, Clang-Tidy else-after-return fixes
...
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/freestyle` module.
No functional changes.
2020-08-07 13:38:06 +02:00
Jacques Lucke
7283e6fb73
Merge branch 'blender-v2.90-release' into master
2020-08-07 10:04:57 +02:00
Jacques Lucke
91694b9b58
Code Style: use "#pragma once" in source directory
...
This replaces header include guards with `#pragma once`.
A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`),
because they are used in other places.
This patch has been generated by P1561 followed by `make format`.
Differential Revision: https://developer.blender.org/D8466
2020-08-07 09:50:34 +02:00
Campbell Barton
901ee66ea1
Cleanup: use term init instead of initialize/initialise
...
The abbreviation 'init' is brief, unambiguous and already used
in thousands of places, also initialize is often accidentally
written with British spelling.
2020-08-01 13:51:05 +10:00
Jacques Lucke
b274d18aec
Cleanup: correct usage of extern-C blocks in various places
...
This removes extern-C blocks around other includes and adds
such blocks for some headers that need them.
2020-07-28 16:33:43 +02:00
Jacques Lucke
725973485a
Clang Tidy: enable readability-non-const-parameter warning
...
Clang Tidy reported a couple of false positives. I disabled
those `NOLINTNEXTLINE`.
Differential Revision: https://developer.blender.org/D8199
2020-07-13 11:27:09 +02:00
Jacques Lucke
2633683b52
Clang-tidy: enable readability-container-size-empty warning
...
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8197
2020-07-03 14:59:27 +02:00
Campbell Barton
716a8241d3
Cleanup: rename 'name' to 'filepath' for DNA types
...
Using 'name' for the full path of a file reads badly,
especially when id.name is used in related code.
2020-06-23 11:29:36 +10:00
Jacques Lucke
9bb7d6ed68
BLI: put C++ data structures in "blender" namespace instead of "BLI"
...
We plan to use the "blender" namespace in other modules as well.
2020-06-09 10:27:24 +02:00
Brecht Van Lommel
db1099c0ae
Merge branch 'blender-v2.83-release'
2020-05-14 03:09:33 +02:00
Brecht Van Lommel
bd18ffe1f8
Fix T76388: Freestyle not respecting Show Emitter settings
2020-05-14 02:14:18 +02:00
Brecht Van Lommel
5ca1eb96c7
Merge branch 'blender-v2.83-release'
2020-05-12 21:57:04 +02:00
Brecht Van Lommel
a5eee1f935
Fix T76535: Eevee + Freestyle render crash with many strokes
...
Freestyle would create a huge amount of material slots with the same material,
causing issues in Eevee use of alloca().
2020-05-12 21:51:12 +02:00
Jacques Lucke
6f985574b7
Cleanup: take includes out of 'extern "C"' blocks
...
Surrounding includes with an 'extern "C"' block is not necessary anymore.
Also that made it harder to add any C++ code to some headers, or include headers
that have "optional" C++ code like `MEM_guardedalloc.h`.
I tested compilation on linux and windows (and got help from @LazyDodo).
If this still breaks compilation due to some linker error, the header containing
the symbol in question is probably missing an 'extern "C"' block.
Differential Revision: https://developer.blender.org/D7653
2020-05-08 18:22:41 +02:00
Brecht Van Lommel
5fed9ac9b5
Fix clang-format differences between version 6 and 9
...
Version 6 does not appear to respect clang-format off for header sorting.
2020-04-21 13:16:59 +02:00
Brecht Van Lommel
ba8d819c9b
Fix T74417: Freestyle render removes image texture users
...
This simplifies freestyle render pipeline integration so we don't have to do
much manual ID user management at all. The complexity here was legacy from
Blender Internal.
Based on fix provided by Sybren A. Stüvl.
2020-03-26 01:29:20 +01:00
Dalai Felinto
85424397b1
Cleanup: tweak Freestyle #includes in preparation for clang-format sorting
2020-03-06 17:26:32 +01:00
Lukas Stockner
4af74f453d
Freestyle: Add option for rendering Freestyle to a separate pass
...
This allows for more flexibility in Compositing compared to the
hardcoded alpha-over that is currently used.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D6829
2020-02-14 00:33:50 +01:00
Bastien Montagne
56116bbdf4
Cleanup/refactor: Rename BKE_library files to BKE_lib.
...
Note that `BKE_library.h`/`library.c` were renamed to
`BKE_lib_id.h`/`lib_id.c` to avoid having a too generic name here.
Part of T72604.
2020-02-10 13:00:42 +01:00
Antonio Vazquez
1bc2a98a9d
T73589: Code Quality: Renaming on BKE_material.h
...
Old Name New Name
========= =========
init_def_material BKE_materials_init
BKE_material_gpencil_default_free BKE_materials_exit
test_object_materials BKE_object_materials_test
test_all_objects_materials BKE_objects_materials_test_all
give_matarar BKE_object_material_array
give_totcolp BKE_object_material_num
give_current_material_p BKE_object_material_get_p
give_current_material BKE_object_material_get
assign_material BKE_object_material_assign
assign_matarar BKE_object_material_array_assign
give_matarar_id BKE_id_material_array
give_totcolp_id BKE_id_material_num
assign_material_id BKE_id_material_assign
clear_matcopybuf BKE_material_copybuf_clear
free_matcopybuf BKE_material_copybuf_free
copy_matcopybuf BKE_material_copybuf_copy
paste_matcopybuf BKE_material_copybuf_paste
BKE_material_init_gpencil_settings BKE_gpencil_material_attr_init
BKE_material_add_gpencil BKE_gpencil_material_add
BKE_material_gpencil_get BKE_gpencil_material
BKE_material_gpencil_default_get BKE_gpencil_material_default
BKE_material_gpencil_settings_get BKE_gpencil_material_settings
2020-02-05 15:56:50 +01:00
Brecht Van Lommel
14deacdc22
Merge branch 'blender-v2.82-release'
2020-01-28 18:39:58 +01:00
Brecht Van Lommel
ca572e9970
Cleanup: fix compiler warnings related to deprecated members
...
For Freestyle, it helps to move the struct copy from C++ to C, where the
compiler knows that copying deprecated members is ok.
2020-01-28 18:25:31 +01:00
Brecht Van Lommel
1107af1abb
Fix OBJECT_GUARDED_FREE compiler error when type is in namespace
2020-01-27 12:22:01 +01:00
Sergey Sharybin
a650258158
Python handlers: Pass depsgraph to events where it makes sense
...
The goal is to make it possible to access evaluated datablocks at a
corresponding context. For example, be able to check evaluated state
if an object used for rendering.
Allows to write scripts in a safe manner for T63548 and T60094.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D5726
2019-09-11 10:43:27 +02:00