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
AgeCommit message (Collapse)Author
2020-03-13Use preview quality settings for Eevee in VR, not high-quality onesJulian Eisel
The high-quality settings are designed for actual renderings. We use the same offscreen routines as these, but want the preview quality for performance. Brings performance from < 1FPS to ~40FPS in the classroom scene here.
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2020-03-06CodeCleanup: Added enums to opengl render functionsJeroen Bakker
Motivation the functions get 3 different kind of flag parameters (ImBuf, DrawType, OffscreenRendering) the naming of the flags were not clear, leading to mistakes and unnecessary time spend debugging.
2020-03-02Fix T74299: PyGPUOffscreen Color ManagementJeroen Bakker
Color management currently happens after the python handlers. This means that all common drawing operations needs to happen in SRS. The PyGPUOffscreen requested that the color management was applied, that resulted into applying colormanagement twice. This patch makes sure that PyGPUOffscreen.draw_view3d renders in SRS. There are more code paths that needs to be checked that the correct space is being requested.
2020-02-10Cleanup/refactor: Rename `BKE_library` files to `BKE_lib`.Bastien Montagne
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.
2019-12-20Cleanup: remove redundant 'char *' castsCampbell Barton
2019-10-07Fix T70537: Documentation: bpygpu_offscreen_draw_view3d_doc not up to dateUlysse Martin
2019-09-11Depsgraph: Pass bmain to depsgraph object creationSergey Sharybin
Currently unused, but will allow to keep of an owner of the depsgraph. Could also simplify other APIs in the future by avoiding to pass bmain explicitly to relation update functions and things like that.
2019-06-06Python: GPU Offscreen RenderingJeroen Bakker
When using python offscreen rendering the background was not drawn in EEVEE. Users would expect that when calling the `draw_view3d` method that it shows the same as in the 3d viewport. Seems to be a difference between the meaning of draw_background in b279 and b280. In B279 the world background would be drawn. In B280 the transparency is changed. Reviewed By: campbellbarton, fclem Maniphest Tasks: T61768 Differential Revision: https://developer.blender.org/D5022
2019-05-17Cycles/Eevee: unify depth of field settings for camerasJeroen Bakker
There is now a checkbox to enable/disable depth of field per camera. For Eevee this replace the scene level setting. For Cycles there is now only an F-Stop value, no longer a Radius. Existing files are converted based on Cycles or Eevee being set in the scene. Differential Revision: https://developer.blender.org/D4882
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-29Cleanup: style, use braces for the Python APICampbell Barton
2019-03-29GPU: Fix color difference when rendering to gpu_py_offscreenClément Foucault
Now we do the color management inside the Draw manager and output CM byte buffer.
2019-03-19Cleanup: comment blocksCampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: blank lines over doxy headersCampbell Barton
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-02Cleanup: py-gpu error checksCampbell Barton
Move gpu initialization checks to the start of each function instead of mixing with argument parsing.
2019-01-02Revert file rename from T59773 fixCampbell Barton
Mixing file rename with other changes should be avoided. Using 'module_py_api' convention here is in keeping with imbuf, idprop, blf & bmesh. No reason for gpu to have a different convention.
2019-01-02Fix T59773: Raise exception if the gpu module is used in backgound mode.mano-wii
Instead of crashing, an error message is displayed if a function of the gpu module is called without a GPU context. Reviewers: brecht, campbellbarton, JacquesLucke, mont29 Subscribers: abdelmatinboulbayam, amir.shehata Differential Revision: https://developer.blender.org/D4143
2018-11-20Cleanup: style, unusedCampbell Barton
2018-11-19PyAPI: GPUOffscreen: Add context manager for the `bind` method to work with ↵mano-wii
the `with` statement. Differential Revision: https://developer.blender.org/D3918
2018-11-13Py API: fix parameter order in offscreen.draw_view3dJacques Lucke
2018-11-13Py API Docs: CleanupJacques Lucke
2018-11-09gpu.offscreen, fix pydoc, example and rename modelviewmatrix > viewmatrixDalai Felinto
Technically this is only the view matrix, not model view matrix. And view layer was missing from the pydoc.
2018-11-09BKE_id_is_in_gobal_main > BKE_id_is_in_global_mainDalai Felinto
2018-11-06Cleanup: No need to save/restor frame buffer twiceJacques Lucke
2018-09-27Python GPU module: replace `PyArg_ParseTupleAndKeywords` by ↵mano-wii
`_PyArg_ParseTupleAndKeywordsFast` part of T47811 ("for faster argument parsing").
2018-09-21Preserve the actively bound framebuffer after using gpu.offscreenDalai Felinto
Otherwise we cannot draw anything after drawing in the offscreen buffer
2018-09-06Correct build errorsCampbell Barton
2018-09-06Join the python modules `gpu` and `_gpu` into one.mano-wii
Maybe it's still early to set the new drawing api for python. But joining these two modules is an initial step. ``` >>> gpu. matrix select types ``` ``` >>> gpu.types.GPU Batch( OffScreen( VertBuf( VertFormat( ``` The creation of a new offscreen object is now done by the `GPUOffscreen.__new__` method. Reviewers: campbellbarton, dfelinto Reviewed By: campbellbarton, dfelinto Tags: #bf_blender_2.8 Differential Revision: https://developer.blender.org/D3667