Logo to Stained Glass WindowMosaic Blender 3D Tutorial

hi in this tutorial we will turn the logo into a stained-glass window or music I will show you the complete process from start to finish a new feature introduced in blender 2.82 and a way to get different sets of random numbers for the perfect look let's go first we need to create the pattern of the strips of metal holding the glass pieces in place and we do that with a vector-based drawing app I use affinity designer but you can use Adobe Illustrator or anything else you're familiar with I'm going to make it a square design now we bring in a logo I'm using the blender logo I am not familiar with how real stained-glass windows are made but my theory here is to first outline the logo with thicker lines just to make them more prominent then create a kind of support structure again using thicker lines thinking that there has to be something holding up the weight of the glass right and then creating a somewhat random pattern to fill in the rest trying to leave room for glass pieces of similar sizes not too big not too small now if I save this design as an SVG and imported into blender all I get are infinitely thin lines just the raw curve information without any of the thickness I just put so much effort into this is no good so back to the vector art let me show you what we have to do this is a single curve and it can have a thickness or even varying pressure thickness along its path but it is always a curve that can be manipulated with these handles what we want to export to blender though would be the outline of this curve and we can do that by simply going to layer expand stroke here in affinity designer other apps have a similar feature for this now I don't have a single curve any longer but a filled shape let's go back to our design here select all the curves and expand stroke now we have a bunch of overlapping shapes and knowing that this will not be good to work with in blender I want to combine them into a single shape which can easily be done by a quick press of this button right here now I have a single object which is the shape of the metal framing and I can now export this to an SVG file and import that file in blender here we go the first and probably most important task is already done in edit mode we can see that this got imported as curves but I really want a solid mesh to work so in object mode I select object convert to mesh from curve now going back to edit mode I can see that that created a rather messy triangulated mesh and before I continue I clean all of that up with a mesh cleanup limited dissolve now the mesh looks like this the glass pieces or tiles if you want to make a mosaic using this technique are obviously all the areas between these lines so right away I'm thinking boolean operation I go into edit mode and extrude this to give it some thickness and just to be safe also select everything and recalculate the normals on the outside then I get a cube and in edit mode scale it down to make a thin sheet of glass out of this thinner than my metal frame design now add a boolean modifier to the glass panel set to difference and pick the metal framing object which cuts my sheet of glass into individual glass pieces I applied a boolean modifier and the glass is done the real magic now happens in the materials I have an environment texture setup in the world settings here to make everything look realistic and I also placed some additional lights and set the camera to look straight at the design to give the metal frame this cast iron look I first add a remesh modifier with a rather high depth setting of 10 for example and apply it this gives me high poly mesh and cleans up the rather messy polygons we get from importing SVG's in blender now in edit mode I select all the vertices and choose vertex smooth vertices set smoothing to one and repeat to ten which rounds out all hard edges and connections between the strips of metal this amount of geometry is definitely overkill and you can spend a bit more time here to get nice topology and then maybe add an adaptive subsurf modifier but it's a quick and dirty solution now I can simply use a Musgrave texture to displace the surface like this and come up with some kind of interesting material for whatever look I'm going for okay with the middle done let's now create the glass material I start off with a glass shader to give each piece of glass a different color I can use the random pair island output of the geometry node this is brand new in blender 2.82 which is still in alpha the time of this recording this looks for separated pieces of geometry so-called islands inside a mesh and generates a random number between 0 and 1 by a control shift clicking the geometry node until we get to the random / Island output we can see that in action each glass piece each island of the mesh now has a random value despite being all inside of a single object this is a really cool new addition to the geometry node ok so by using this value to drive a color ramp I quickly get different colored pieces of glass and I can always tell back the saturation with a hue value saturation node of course until I have a look that I like let me just quickly put together a color setup matching the blender logo colors two more things to make everything look perfect first stained glass windows are usually not made out of modern perfectly flat pieces of glass but rather lumpy wavy glass to do that I add a subdivision modifier set to simple and maybe three or four levels for rendering now I use a Musgrave texture plugged into a displacement node set to a very low zero point zero zero zero one or two or three to make the glass look really old and I hope you agree much more interesting and the last thing I want to show you in this tutorial is how you can change two random colors a good random number generator algorithm is usually based on a so called seed value you might have seen the seed here in the scene settings for the ray tracer or the random seed setting of a particle system before the geometry note here in a material setup however doesn't allow me to change two random seeds so it seems that I am stuck with these random colors I asked the creator of this random / Island feature on Twitter and being the great guy that he is he promptly replied and told me about a trick that I previously had no idea existed thanks Omar and if you're watching this also a big thank you for your contribution to animation notes so here it is you add a white noise texture and set it to 2d for the input here you need a vector so you add a combined X Y C no to plug it in for the x value use the random output you already have now the y-value here can be changed to essentially produce a different set of random values so by simply clicking through some Y values I can find a color set that looks nice of course this wonderful white noise texture magic also works for other random values like in this scene here I have a bunch of individual blender objects the result of a cell fracture and rigid body simulation the object info node has a random output but again no possibility to change the random seed but with the same white noise texture setup I can now get different random colors supercool and we are done with our stained glass window if you want to make a mosaic instead all you would have to do is play with the materials a bit to make it look like tiles and grout and if you simply get rid of the metal framing completely and at a Catmull Clarke subdiv modifier with only one or two levels to the glass object you get this crazy gemstone look now go ahead and create your own stained glass window of your logo and tag me so I can admire your work you can download the finished blend files for the stained glass the mosaic and the gemstones on patreon.com slash crispy if you enjoyed this tutorial please hit the like button and consider subscribing to the channel also I love to read your comments so please drop me a note below or on one of my socials thanks for watching krispy out [Music]

Loading