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
2017-04-04Immediate Mode: removing unecessary comment on gpencil (false positive)Dalai Felinto
2017-03-15Immediate Mode: remove commented out code from drawgpencil.cDalai Felinto
Some of this was "tagged" for removal by Dec 2016.
2017-03-01Cleanup: warningsCampbell Barton
2017-02-28rename built-in point shaders, SMOOTH --> AAMike Erwin
Updated shader names and code that uses them. All of these shaders produce round points that are anti-aliased and blended against the background. These were initially named SMOOTH because they replace glEnable(GL_POINT_SMOOTH). But SMOOTH in shader-land refers to vertex attribute interpolation (like glShadeModel(GL_SMOOTH)). Using SMOOTH to mean two things is confusing, so we now use AA to mean "the point is anti-aliased".
2017-02-05fix most UI text colorMike Erwin
There are still many places to fix. I'll miss the bright yellow! This commit also uses the new BLF_default function where possible. Part of T49043 since we call glColor less often.
2017-01-22Merge branch 'master' into blender2.8Julian Eisel
Conflicts: source/blender/editors/space_action/action_draw.c
2017-01-20Fix minor glitches in GP code.Bastien Montagne
Reported by coverity scan.
2017-01-05Merge branch 'master' into blender2.8Julian Eisel
Conflicts: source/blender/editors/gpencil/drawgpencil.c
2017-01-02GPencil: Per-layer option to always show onion skinningJoshua Leung
Sometimes it can be useful to be able to keep onion skins visible in the OpenGL renders and/or when doing animation playback. In particular, there are two use cases where this is quite useful: 1) For creating a cheap motion-blur effect, especially when the before/after values are also animated. 2) If you've animated a shot with onion skinning enabled, the poses may end up looking odd if the ghosts are not shown (as you may have been accounting for the ghosts when making the compositions). This option can be found as the small "camera" toggle between the "Use Onion Skinning" and "Use Custom Colors" options.
2016-12-17Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: intern/cycles/blender/CMakeLists.txt source/blender/editors/gpencil/drawgpencil.c source/blender/editors/physics/physics_ops.c
2016-12-17Fix T50264: Stroke is not painted when append Grease Pencil blockAntonio Vazquez
When append a datablock the default brushes were not created and only were created when draw new strokes. Now the default brushes are created when draw strokes if necessary.
2016-10-18skip drawing of gpencil strokes with overall thickness <= zeroMike Erwin
Fixes an assert in drawing code. Might need further work to support variable-thickness strokes (from pressure-sensitive stylus). This all is due for geometry shader overhaul anyway.
2016-10-18draw gpencil dots smoothMike Erwin
Some strokes are just single dots. Draw these smooth / antialiased.
2016-10-16Cleanup: Quiet warnings, use RAD2DEG macroJulian Eisel
2016-10-14GPencil: Avoid assert error if the immEnd is called with only one point for ↵Antonioya
lines This function will be replace by geometry shader, but we need this fix until the shader will be ready. The problem is similar to T49614.
2016-10-14Fix T49614: Grease Pencil GPF error if stroke thickness change too much ↵Antonioya
between stroke points The problem was the function tried to draw a line with one point only. This fix will be replaced by new geometry shaders, but we need while this change is not ready.
2016-10-14GPencil: Display stroke filling while drawingAntonioya
Before this change, the stroke was filled only after complete the stroke drawing. For artist is better to get a feedback of the area he is filling while drawing, so this commit draws the filling area while drawing. The triangulation of the stroke is recalculated every time the function is called because using a cache is not useful because the points information is changing all the time while the stroke is being drawing.
2016-10-07OpenGL/gpencil: delete unused utility functionsMike Erwin
Part of T49043 -- done with this file!
2016-10-07OpenGL: draw gpencil fill with new imm modeMike Erwin
Part of T49043
2016-10-07OpenGL: draw 2D gpencil strokes with new imm modeMike Erwin
Part of T49043
2016-10-07OpenGL: draw 3D gpencil strokes with new imm modeMike Erwin
Part of T49043
2016-10-07gpencil: disable / remove some legacy drawingMike Erwin
Want to avoid updating code we no longer use anyway. Comments for areas to investigate or deadlines for deletion. also some minor bool cleanup Part of T49165
2016-10-07OpenGL/GPencil: draw stroke-in-progress with new imm modeMike Erwin
We should revisit this later and use geometry shader to draw one continuous tapered stroke. Part of T49043
2016-10-07cleanup: C99, const, blank linesMike Erwin
2016-10-07OpenGL: modernize gp_draw_strokes_editMike Erwin
Single draw call per stroke! Part of T49043
2016-10-06OpenGL: convert gp_draw_stroke_point to new immediate modeMike Erwin
and constify some static utility functions Note: 2D shader will ignore position's z value, but making pos a vec3 lets us unify code in this function.
2016-10-06OpenGL: modernize more volumetric gpencil drawingMike Erwin
Main goal is to get rid of GLU. Part of T49042, touches on T49043 and T49450
2016-10-02OpenGL: draw volumetric gpencil with point spritesMike Erwin
Transition away from GLU and legacy matrix stack. Using point sprites eliminated the need for most of the matrix math! Depends on decent support of large aliased points. NVIDIA is good at this, must test limits on AMD & Intel systems. Still needs proper scaling based on view zoom. Part of T49042, touches on T49043 and T49450.
2016-09-07GPencil: New interpolate strokes operatorsAntonioya
Two new modal operators to create a grease pencil interpolate drawing for one frame or a complete sequence between two frames. For drawing the temporary strokes in the viewport, two drawing handlers have been added to manage 3D and 2D stuff. Video: https://youtu.be/qxYwO5sSg5Y The operator shortcuts are Ctrl+E and Ctrl+Shift+E. During the modal operator, the interpolation can be adjusted using the mouse (moving left/right) or the wheel mouse.
2016-08-04Cleanup: Use BKE_gpencil prefixJulian Eisel
This is a good point to change this as grease-pencil-v2 branch was just merged, so I hope merge conflicts with other branches are minimal.
2016-08-04Grease Pencil v2 BranchAntonio Vazquez
Improve current Grease Pencil in order to get a better 2D animation tool. More info in WIKI pages: https://wiki.blender.org/index.php/User:Antoniov Reviewed By: Severin, aligorith, campbellbarton Patch by @antoniov, with edits by @Severin. Differential Revision: https://developer.blender.org/D2115
2016-06-09Flat shading for basic shaderAlexander Romanov
The purpose of the patch is to replace deprecated glShadeModel. To decrease glShadeModel calls I've set GL_SMOOTH by default Reviewers: merwin, brecht Reviewed By: brecht Subscribers: blueprintrandom, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D1958
2016-05-09Missed last commitCampbell Barton
2016-05-09Remove redundant error checks in grease-pencil tessellationCampbell Barton
2016-05-08GPencil Onion Skinning: Setting before/after to -1 will turn off ↵Joshua Leung
onionskinning in that direction This is an experimental option that I found would have been useful to have, when making my earlier anim test. The only contentious point is whether it's better to use a separate boolean flag (perhaps bound to the labels) instead of overloading this setting (and describing the usage in the tooltip).
2016-05-08Fix for D1705: Update to fix the bug with extra triangles that produces ↵Antonio Vazquez
glitches in some situations
2016-05-08Code Cleanup: Just a bit more tidying up comments/whitespace/etc.Joshua Leung
There is still some instability in how the triangulations are happening, where the triangle count of the resulting triangulation fluctuates resulting in weird artifacts sometimes. To reproduce, try drawing some U-shapes, and keep reloading the file.
2016-05-08Fix for potential bug with new GP FillJoshua Leung
While trying to track down why I still keep getting some random "extra" triangles showing up when reloading files with fills, I noticed that there's an index mismatch here that may cause problems in some rare cases: There are "gps->totpoints" items in tmp_triangles, but there should only be "gps->tot_triangles" triangles in the gps->triangles array. If for whatever reason some of the triangles in tmp_triangles are invalid, this could have meant that while a tmp_triangles candidate was skipped, a corresponding slot for a valid triangle also got skipped.
2016-05-08Code Cleanups: A bunch of tweaks to tidy up things from the GPencil Fill patchJoshua Leung
2016-05-08D1705: Fix Grease Pencil Fill for Concave ShapesAntonio Vazquez
Improve filling for concave shapes using a triangulation of the stroke. The triangulation information is saved in an internal cache and only is recalculated if the stroke changes. The triangulation is not saved in .blend file. Reviewers: aligorith Maniphest Tasks: T47102 Differential Revision: https://developer.blender.org/D1705
2016-02-08GPencil: Layers with alpha = 0 should not be editableJoshua Leung
* Added a new API function to test if a GPencil layer is visible or not * Replaced all editability checks with this new "super check" * Replaced all magic number thresholds for opacity visiblity with a single define
2016-01-23OpenGL: call glLineWidth less oftenMike Erwin
Each LINES draw call is now responsible for its own line width. No need to set it back to its 1.0 default after every draw. This eliminates half our calls to glLineWidth , similar to last week’s work on glPointSize.
2016-01-16OpenGL: fixes related to GL_POINTSMike Erwin
I put all usage of GL_POINTS under the microscope. Fixed problems & optimized a couple of spots. - reduce calls to glPointSize by about 50% - draw selected & unselected vertices together for UV editor & EditMesh - draw initial gpencil stroke point the proper size - a few other smaller fixes New policy: each GL_POINTS draw call needs to set its desired point size. This eliminates half our calls to glPointSize (setting it back to its 1.0 default after every draw).
2015-12-13Grease Pencil: Merge GPencil_Editing_Stage3 branch into masterJoshua Leung
This commit merges all the work done in the GPencil_Editing_Stage3 branch as of ef2aecf2db981b5344e0d14e7f074f1742b0b2f7 into master. For more details about the changes that this brings, see the WIP release notes: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.77/GPencil
2015-11-24OpenGL: when checking GL version, assume >= 2.1Mike Erwin
Mostly glBlendFunc related.
2015-09-20Cleanup: Use new vector transform functionsJulian Eisel
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-06-22Fix T45133: Crash drawing material buttonsCampbell Barton
2015-04-20Cleanup: use bool /w flag checksCampbell Barton
2015-04-20Fix: "show_points" setting for Grease Pencil drawing didn't workJoshua Leung
As reported by zeffi, the "show_points" option was not working in master. It probably broke recently, after some changes meant that the point sizes weren't geting set prior to drawing these points anymore. Since this was originally added as a debugging tool (though it is now somewhat redundant due to the stroke editing functionality, which uses/exposes the same points), this option wasn't really that important. I have decided to add back a toggle for this to the UI though, since it can be used for some interesting effects...