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
2016-02-15Cleanup: reorganize BKE ID tagging functions.Bastien Montagne
BKE_main_id_tag_/BKE_main_id_flag_ were horrible naming now that we split those into flags (for presistent one) and tags (for runtime ones). Got rid of previous 'tag_' functions behavior (those who were dedicated shortcuts to set/clear LIB_TAG_DOIT), so now '_tag_' functions affect tags, and '_flag_' functions affect flags.
2016-02-14Cleanup: bracesSergey Sharybin
2016-02-14Fix T45606: cycles multires tangent space normal map bake issues.Brecht Van Lommel
2016-02-06Fix T47320: Cycles baking in edit mode uses outdated mesh.Brecht Van Lommel
2016-01-19Usual i18n/UI messages tweaks.Bastien Montagne
2016-01-15Cycles-Bake: Custom Baking passesDalai Felinto
The combined pass is built with the contributions the user finds fit. It is useful for lightmap baking, as well as non-view dependent effects baking. The manual will be updated once we get closer to the 2.77 release. Meanwhile the new page can be found here: http://dalaifelinto.com/blender-manual/render/cycles/baking.html Reviewers: sergey, brecht Differential Revision: https://developer.blender.org/D1674
2016-01-04Cycles-Bake: Unset properties fallback only working for invokeDalai Felinto
2015-12-27Split id->flag in two, persistent flags and runtime tags.Bastien Montagne
This is purely internal sanitizing/cleanup, no change in behavior is expected at all. This change was also needed because we were getting short on ID flags, and future enhancement of 'user_one' ID behavior requires two new ones. id->flag remains for persistent data (fakeuser only, so far!), this also allows us 100% backward & forward compatibility. New id->tag is used for most flags. Though written in .blend files, its content is cleared at read time. Note that .blend file version was bumped, so that we can clear runtimeflags from old .blends, important in case we add new persistent flags in future. Also, behavior of tags (either status ones, or whether they need to be cleared before/after use) has been added as comments to their declaration. Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1683
2015-11-23Cleanup: shadowing (editors)Campbell Barton
2015-11-23Cleanup: use `rna_enum_` prefix for RNA enumsCampbell Barton
Definitions could shadow local vars.
2015-10-01Fix T46313: Cycles bake normal mapCampbell Barton
Regression moving to bake to looptri caused by mismatch w/ MFace and MLoopTri when the 3rd index was 0.
2015-09-04Quiet warningsJulian Eisel
We had too many warnings lately... was awaiting that someone would kill them - didn't happen -> goes to my commit ratio! :P
2015-04-27Fix T44512: Cycles fails normal bake /w scale flipCampbell Barton
2015-04-17Bake-API: reduce memory footprint when baking more than one object (Fix T41092)Dalai Felinto
Combine all the highpoly pixel arrays into a single array with a lookup object_id for each of the highpoly objects. Note: This changes the Bake API, external engines should refer to the bake_api.c for the latest API. Many thanks for Sergey Sharybin for the complete review, changes suggestion and feedback. (you rock!) Reviewers: sergey Subscribers: pildanovak, marcclintdion, monio, metalliandy, brecht Maniphest Tasks: T41092 Differential Revision: https://developer.blender.org/D772
2015-04-06Multi-View and Stereo 3DDalai Felinto
Official Documentation: http://www.blender.org/manual/render/workflows/multiview.html Implemented Features ==================== Builtin Stereo Camera * Convergence Mode * Interocular Distance * Convergence Distance * Pivot Mode Viewport * Cameras * Plane * Volume Compositor * View Switch Node * Image Node Multi-View OpenEXR support Sequencer * Image/Movie Strips 'Use Multiview' UV/Image Editor * Option to see Multi-View images in Stereo-3D or its individual images * Save/Open Multi-View (OpenEXR, Stereo3D, individual views) images I/O * Save/Open Multi-View (OpenEXR, Stereo3D, individual views) images Scene Render Views * Ability to have an arbitrary number of views in the scene Missing Bits ============ First rule of Multi-View bug report: If something is not working as it should *when Views is off* this is a severe bug, do mention this in the report. Second rule is, if something works *when Views is off* but doesn't (or crashes) when *Views is on*, this is a important bug. Do mention this in the report. Everything else is likely small todos, and may wait until we are sure none of the above is happening. Apart from that there are those known issues: * Compositor Image Node poorly working for Multi-View OpenEXR (this was working prefectly before the 'Use Multi-View' functionality) * Selecting camera from Multi-View when looking from camera is problematic * Animation Playback (ctrl+F11) doesn't support stereo formats * Wrong filepath when trying to play back animated scene * Viewport Rendering doesn't support Multi-View * Overscan Rendering * Fullscreen display modes need to warn the user * Object copy should be aware of views suffix Acknowledgments =============== * Francesco Siddi for the help with the original feature specs and design * Brecht Van Lommel for the original review of the code and design early on * Blender Foundation for the Development Fund to support the project wrap up Final patch reviewers: * Antony Riakiotakis (psy-fi) * Campbell Barton (ideasman42) * Julian Eisel (Severin) * Sergey Sharybin (nazgul) * Thomas Dinged (dingto) Code contributors of the original branch in github: * Alexey Akishin * Gabriel Caraballo
2015-03-20Fix T43786: Cycles bake disregards Auto Smooth (vertex per-face normals)Sergey Sharybin
Added an utility function which performs vertex split based on the loop normal so now backing API matches to what's happening in Cycles and BI in terms of autosplit. Reviewers: dfelinto, campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1174
2015-02-19RNA: pass only 0/1 to RNA_property_boolean_setCampbell Barton
2015-02-11Fix T43628: Circular dependency error preventing multiple highpoly objects ↵Dalai Felinto
to bake Throwing an RPT_ERROR was stopping baking after the first object.
2015-01-24BKE_image: use BKE_image_*** prefixCampbell Barton
use bools for return values and some api naming consistency.
2014-12-28Fix leak in cycles-bakeCampbell Barton
2014-10-30Complementary fix for rB8054372: Follow the common naming scheme byLukas Tönne
using negate_mat3_m4 instead of negate_m4. This avoids changing the behavior and only flips the 3x3 part of the matrix.
2014-10-30Fix negate_m3 (taking 4x4 matrix)Campbell Barton
Cycles bake used incorrectly.
2014-09-19Fix T40751 preview image not generated after baking.Antony Riakiotakis
A DAG_id_tag_update here is enough to fix the problem.
2014-08-31Bake-API: more MEM_callocN replacements by MEM_mallocNDalai Felinto
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D561
2014-08-28Bake-API: silencing warnings (and fixing a potential memory-access crash)Dalai Felinto
2014-08-27Bake-API: fix potential error for non square imagesDalai Felinto
Not reported, I wonder why, this should be easy to reproduce. I guess people really like their textures square ;)
2014-08-06Add some missng casts to the size_tSergey Sharybin
2014-08-01Bake-API: cleanup - missing (size_t) promotionDalai Felinto
2014-07-31Bake-API: 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-27T41196: Python call of bake operator cause Blender CrashDalai Felinto
We could make the exec to also show the progress bar, but I think it is not needed.
2014-07-23Bake-API: Test for cyclic node connectionDalai Felinto
If the active image node contributes to the final material shader (meaning it's either directly or indirectly connected to an Output Node) the user will receive an alert about circular dependency. Similar to what we do for Blender internal the baking will still happen, but the user will receive the alert which should prevent the image saving to happen if the result was not intentional. Core function to check for node output written by Lukas Toenne. Reviewers: lukastoenne, campbellbarton Differential Revision: https://developer.blender.org/D673
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-17Bake-API: progress (bar) workingDalai Felinto
Note: This makes no change to the user, the render engine (Cycles) still need to update the progress during baking. But this is the Blender side of this.
2014-06-22Code cleanup: styleCampbell Barton
2014-06-19Bake-API: small cleanup to prevent unfreed memory when there are baking errorsDalai Felinto
Fix to be included in 2.71
2014-06-19Bake-API: fix for non-NORMAL maps baking black when using cageDalai Felinto
Reported by Andy Davies (metalliandy) outside the tracker Fix to include in 2.71
2014-06-19Fix T4068787 Cycles Bake Selected To Active From Non-Mesh Object Fails With ↵Dalai Felinto
Error Users can now bake from Mesh, Font, Curve, Surface and Metaballs. Fix to include in 2.71
2014-06-17Bake-API: allow custom UV to be bakedDalai Felinto
Note: the custom UV option is only available when calling the operator via a script. It's currently not exposed in the UI since it's intended to be used by scripters To test it: bpy.ops.object.bake(type='UV', use_clear=True, uv_layer='MyNewUV') Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D546
2014-06-13Bake-API: increase cage extrusion/ray distance limitDalai Felinto
Fix to include in 2.71 (asked via BlenderArtist)
2014-06-13Bake-API: handle objects with no faces (fix T40601)Dalai Felinto
Also it has a better error handling for the BVHTree creation Fix for 2.71
2014-06-12Bake-API: Set Custom Cage to be Cage ObjectDalai Felinto
Suggestion by Andy Davies (metalliandy) to conform with industry standard (custom cage is something else apparently) Note: this is the last bake related commit I plan for 2.71/rc (unless everyone agrees that we could squeeze in D546 - custom UVs, which would be really nice to add for 2.71 scripters) Note 2: I'll update the wiki docs shortly
2014-06-11Bake-API: new approach for cageDalai Felinto
There is a new option to select whether you want to use cage or not. When not using cage the results will be more similar with Blender Internal, where the inwards rays (trying to hit the highpoly objects) don't always come from smooth normals. So if the active object has sharp edges and an EdgeSplit modifier you get bad corners. This is useful, however, to bake to planes without the need of adding extra loops around the edges. When cage is "on" the user can decide on setting a cage extrusion or to pick a Custom Cage object. The cage extrusion option works in a duplicated copy of the active object with EdgeSplit modifiers removed to inforce smooth normals. The custom cage option takes an object with the same number of faces as the active object (and the same face ordering). The custom cage now controls the direction and the origin of the rays casted to the highpoly objects. The direction is a ray from the point in the cage mesh to the equivalent point to the base mesh. That means the face normals are entirely ignored when using a cage object. For developers: When using an object cage the ray is calculated from the cage mesh to the base mesh. It uses the barycentric coordinate from the base mesh UV, so we expect both meshes to have the same primitive ids (which won't be the case if the cage gets edited in a destructive way). That fixes T40023 (giving the expected result when 'use_cage' is false). Thanks for Andy Davies (metalliandy) for the consulting with normal baking workflow and extensive testing. His 'stress-test' file will be added later to our svn tests folder. (The file itself is not public yet since he still has to add testing notes to it). Many thanks for the reviewers. More on cages: http://wiki.polycount.com/NormalMap/#Working_with_Cages Reviewers: campbellbarton, sergey CC: adriano, metalliandy, brecht, malkavian Differential Revision: https://developer.blender.org/D547
2014-06-11correction from last commitDalai Felinto
2014-06-11Bake-API: removal of unecessary UV tests, as suggested by Campbell BartonDalai Felinto
2014-06-06Code cleanup: styleCampbell Barton
2014-06-03Bake-API small cleanupDalai Felinto
2014-06-03Fix T40476 - Baking multiple selected objects in Cycles final resultDalai Felinto
depends on last selected object Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D577
2014-06-03Bake-API prevent baking for engines that dont support the baking APIDalai Felinto
In the future we can fallback to the Blender Internal baking. Review/Suggestions by Campbell Barton
2014-05-30Bake-API: Support for batch bakingDalai Felinto
When "Selected to Active" is not on, we bake all the selected objects. This is the same behaviour we have for Blender Internal. Dev note: I moved most of the validation tests to outside the bake() routine so the function can be called in loop. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D560
2014-05-29Proper fix T40156 Cycles Baking and applyRotation issuesDalai Felinto
This should be the final fix for the applyrotation issue. It baffles me that the fix involves discarding the scale transformations for the normals but it works so I'm happy with it. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D554