Adding grunge with nodes in blender 2.8 I am really new to blender and I am scrambling to learn as fast as possible however I am currently stuck. I have modeled a basic barrel and textured it as best as I can, I would like to add a dynamic kind of grunge to the barrel and I was assuming I could do this with nodes. The only tutorial I can find though is from back in 2015. Any ideas where I should start to achieve a grungy look? This is where I am currently.
Blurring/Feathering a Procedural Pointiness Mask I'm trying to create a procedural mask to affect the sharp edges of my model using the Pointiness output from the Geometry node, leading to the eventual idea of using it to create customisable weathering effects, such as .  This is the base setup that I've got so far.   How is it possible to blur/feather the black edges of the mask so that they would essentially expand across the object until the whole object is rendered black?   I've had a look at both of the go-to texture blur methods suggested for cycles found  and  however these seem to rely on there being a vector input/output for the texture, which is not the case in my example.  The Procedural Cracks tutorial by CGMasters came closest to what I was trying to achieve with the 'Worn Edges' section of the , but I didn't have any success trying to convert it to my situation.  Any ideas would be massively appreciated! :)  EDIT: Not sure if it was clear enough from the description but I'm trying to steer clear of baking/UV-Unwrapping/the Works on this one... Purely procedural :)  UPDATE: I've made a couple of updates to the shader which has given me slightly better results, although it's still not quite there and the mask blur/expansion issue is still not successful.  This is what it now looks like:   The issue is now coming from the grey values of the mask 'leaking' out across the whole mesh and not stemming from the black values... if that makes sense? :P   In researching weathering effects in blender, I stumbled across , which is exactly what I want to achieve?  UPDATE 2: Still no luck achieving the desired effect in the gif, however I feel I'm slightly closer from adding another colour ramp node after the previous ones.    Does anyone have any more ideas?  UPDATE 3: Found a working solution, added an answer below if people are interested :)
STM32 send from UART3 and receive on UART2 I thought to create a simple test to send and receive a buffer via UART. I succeeded in sending bytes from my PC to the nucleo bord and receiving them in blocking and non-blocking mode. But for some reason I can't succeed to send data from UART3 and receive the bytes on UART2.  I have a nucleo-f103rb and have the following pins setup:   UART2: tx=PA2;rx=PA3 UART3: tx=PB10;rx=PB11   And then the following code:    while (1)   {     /* USER CODE END WHILE */     /* USER CODE BEGIN 3 */     if (HAL_UART_Transmit(&amp;huart3, send, 2, 1000) == HAL_OK)     {         if (HAL_UART_Receive(&amp;huart2, receive, 2, 1000) == HAL_OK)         {             HAL_GPIO_TogglePin(GPIOA, LD2_Pin);         }     }   }   All the boiler plate is generated using cube mx. So the UART 2 and 3 are all default, same for the button pins.    I connected the transmit pin of uart3 to the receiving pin of uart2 I connected the receive pin of uart3 to the transmitting pin of uart2 (while not used in this trivial example though)   What am I missing here?  Update  As comments and answers suggested, I shouldn't be using the blocking mode approach. So I rewrote it slightly to rely more on interrupts.  I attached a callback to the nucleo blue button  void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {     if (GPIO_Pin == B1_Pin)     {         HAL_UART_Transmit_IT(&amp;huart3, (uint8_t *)send, 2);     } }   And I added a callback for receiving stuff over uart  void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {   /* Prevent unused argument(s) compilation warning */   UNUSED(huart);    /* NOTE : This function should not be modified, when the callback is needed,             the HAL_UART_RxCpltCallback can be implemented in the user file    */       // Toggle the pin to see some proof that I received something      HAL_GPIO_TogglePin(LD2_GPIO_Port, LD2_Pin);       // Resubscribe uart2      HAL_UART_Receive_IT(&amp;huart2, (uint8_t *)receive, 2); }   In the main function I call the interrupt so that the callback is active.  while (HAL_UART_Receive_IT(&amp;huart2, receive, 2) != HAL_OK);  __NOP(); while (1) { }   Again, when debugging through I do end up in the button released callback, but the callback on the uart receive isn't triggered. When I send stuff from the PC, it does. So it seems that sending stuff via uart3 isn't working. So I guess that must be the wiring.     But I really can't see what I am missing here, the pins are clearly defined in the pinout here: .  I hope the photo is clear enough, but this is how I connected them. When I was at school and learning integration in maths class at A Level my teacher wrote things like this on the board.  $$\int f(x)\, dx$$  When he came to explain the meaning of the $dx$, he told us "think of it as a full stop".  For whatever reason I did not raise my hand and question him about it.  But I have always shaken my head at such a poor explanation for putting a $dx$ at the end of integration equations such as these.  To this day I do not know the purpose of the $dx$.  Can someone explain this to me without resorting to grammatical metaphors? . (See comments to the question: the OP tried to include a couple of long XML files, but that wasn't possible.)  What's the recommended approach to including code/data, when there's just too much of it to embed in the question?  I could think of a few approaches myself:   Paste the data to a pastebin and link (and wait for the links to die) Encode the (compressed) data in an image and include that (kludgy!) Implement an attachment feature in Stack&nbsp;Overflow (which will probably be abused) pgfplots: percentages and endvalues in stacked ybar I have two questions regarding the pgfplots package. I have attached the source code I worked on. There are two features I am not able to realize:   I would like to put the total value (sum of the whole stacked bar) on top of the bar, rotated by 90°. For me, it was only possible yet to get the value of each part of the stacked bar by using the nodes near coords command. Additionally, the percentage of each part of the stacked bar as relative to the whole stacked bar should be displayed in the bar, also rotated by 90° (addition equals 100%)   If it is somehow possible, percentages should have only one significant digit, and those below 5% should not be displayed in the bar. I know this is a pretty complex example, but maybe there is one who can solve it.  \documentclass{article}  \usepackage{pgfplots,pgfplotstable}   \usetikzlibrary{pgfplots.groupplots}    \pgfplotsset{compat=1.8}   \pgfplotstableread{  Criterion  ddd     ccc     vvv   (0)    700         750         750   (a)    700         750         750   (b)        1200        750         750       (c)    33      345     345  (d)    34      333     345  (e)    234     344     344   }\Rob   \pgfplotstableread{  Criterion  ddd     ccc     vvv   0      70          75          75    a      70          75          75    b          120         75      75        c      3       34      34  d      3       33      34  e      23      34      34  }\Gab   \begin{document}  \begin{tikzpicture} \begin{groupplot}[group style= {     columns=2,xlabels at=edge bottom,     ylabels at=edge left,     horizontal sep=1cm,group name=plots, }, ymin=0, enlarge x limits={abs=.5}, enlarge y limits={upper,value=0.4},  ylabel=Mon, ylabel style={text height=0.02\textwidth,inner ysep=0pt},  ybar,ybar stacked, major x tick style = transparent,  /pgf/bar shift=0pt, /pgf/bar width=9pt, x tick label style={text height=2ex},    xlabel style={yshift=-2ex},  xticklabels from table={\Rob}{Criterion},  xtick=data,legend columns=-1, legend style={draw=none, /tikz/every even column/.append   style={column sep=5pt}}]  \nextgroupplot[xlabel=Rob, xlabel shift = -7.5cm, legend to name=grouplegend] \pgfplotstableforeachcolumn\Rob\as\col{     \ifnum\pgfplotstablecol=0      \else       \edef\tmp{         \noexpand\addplot table [x expr=\noexpand\coordindex,y=\col] {\noexpand\Rob};         \noexpand\addlegendentry {\col}     }     \tmp     \fi }  \nextgroupplot[xlabel=Gab, xlabel shift = -7.5cm] \pgfplotstableforeachcolumn\Gab\as\col{     \ifnum\pgfplotstablecol=0      \else     \edef\tmp{         \noexpand\addplot table [x expr=\noexpand\coordindex,y=\col] {\noexpand\Gab};     }     \tmp     \fi   }   \end{groupplot}  \draw[dashed] (plots c1r1.south west) -- ++(0,-1.5);   \draw[dashed] (plots c1r1.south east) -- ++(0,-1.5);  \draw[dashed] (plots c2r1.south west) -- ++(0,-1.5);  \draw[dashed] (plots c2r1.south east) -- ++(0,-1.5);  \node at (plots c1r1.south) [inner sep=0pt,anchor=north, yshift=-12ex]     {\ref{grouplegend}};  \end{tikzpicture}  \end{document} Answering beyond the question's scope Is answering beyond the scope of the question a valid thing? Or should we just stick to the question asked and ignore any potential bugs which might be present (of course OP is unaware of that, as of now).  To make myself more clear, please have a look at this .  There are 3 answers which talk about the issue asked and that's it. If you look at my answer, I've added an additional point about a potential bug which the OP has missed now (may find out later). So is it a good thing to point out such potential bugs or not? Should this practice be encouraged? Given two sets $A$ and $B$, what is the difference between $A + B$ and $A \cup B$? For example, if $A = \left\{ a, b, c \right\}$ and $B = \left\{ d, e, f \right\}$, what are $A + B$ and $A \cup B$, respectively? When validating a field manually from my form a error is displayed but the field doesn't get red. For the first parameter i used the name of the input element. DRUPAL 7  if($form_state['values']['panes']['webform_nid31'][0]['contact_person'] == '') {     form_set_error('panes[webform_nid31][0][contact_person]', t('You must select a name for this group of settings.'));   } I want to write as a math fraction 1/4 " ( a quarter of inch). I want to write this fraction out of an equation because is a characteristic of an element. I am a Physics undergrad, and just started studying Topology. How do you define neighborhood and open set in Topology.Wikipedia gives a circular definition.   An  is defined as follows.      In topology, a set  is called an open set if it is a neighborhood of every point    While a  is defined as follows:     If $X$ is a topological space and $p$ is a point in $X$, a neighbourhood of $p$ is a subset $V$ of $X$, which includes an open set $U$ containing $p$   which itself contains the term open set.  How do you define it exactly? Why is my fire simulation so light? I have been struggling to get a match tip to actually look like it's on fire and no matter what material shaders I try, I can't seem to achieve what everyone else does, I can in other scenes, just not this one. :( Why do I get TypeError: can't multiply sequence by non-int of type 'float'? Make display of reputation in revisions list consistent with the user card display How can I get the size of a memory block allocated using malloc()? I'm new in LaTex. I need to draw a graphic like the image and each rectangles of image must have the size shown in Figure. I drwan it by MS power point but I need to do by LaTex. Can you help me? Thank you in advance for your help and collaboration!  Thank you in advance for your help and collaboration! Is there an AmpScript function that can be used in an equivalent manner to sql left, right and mid functions?   Thanks, Mark Is there a word that describes a parent whose child has died?   Along the lines of "orphan", "widow", and "widower", is there a single word for a parent who has lost a child (of any age)? Where to find structure of objects that I can access in PHP snippets added to different parts of UI? Why use swap when there is more than enough free space in RAM? Using swap space instead of RAM can drastically slow down a PC.  So why, when I have more than enough RAM available, does my Linux system (Arch) use the swap?  Checkout my conky output below:    Also, could this be the cause of speed and system-responsiveness issues I'm having?  Output of free -m :  $ free -m              total       used       free     shared    buffers     cached Mem:          1257       1004        252          0         51        778 -/+ buffers/cache:        174       1082 Swap:          502        144        357 $f$ bounded but $f'$ isn't How can I prove that $\mathbb{Q}[x,y]/\langle x^2+y^2-1 \rangle$ is an integral domain?  Also, I need to prove that its field of fractions is isomorphic to the field of rational functions $\mathbb{Q}(t)$?    (The question is taken from )