Pages

Thursday, 15 February 2018

Milling....Shingles?

Add an extra software?

I've enjoyed using Grasshopper to this point, even though I certainly don't know very much about how to use it. For this project we were shown how to use an image to map different parameters such as size or position of a point array. This is a simple enough exercise, relatively speaking. I mean, we've had a month or so worth of experience in using Grasshopper, but it's capabilities are so vast that I dont think I could be done learning everything from it in a year or two... if ever. That is the nature of node-based programming though. We are essentially learning how to program 3d models into shapes that would be very difficult, and sometimes impossible (at least to do well) in a more standard modelling operation such as in regular Rhino or a polygon based software.
Yet, I wanted to try something new. At least different.
For my project I'm using the image map node to create the shape which I want to CNC. To have full control over what is produced, I opted to also produce the bitmap that is inserted to draw the information from. To do this I used another node -based software that is designed for creating procedural textures for use in videogames and video called Substance Designer. It has a lot of similarities, workflow wise, to Grasshopper. The difference is that instead of creating 3D models you are creating 2D image maps which can be used on 3d models. They define things like the color, glossiness, shadow placement, and any relief patterns in the material normally. My interest in using this was for a simple height map that could be imported into Grasshopper and used to define a shape there.

Why do this?

What I'm doing seems fairly redundant. As I said, the program already spits out a height map that you'd use on a 3D model. Why bother taking the extra step of interpreting that shape in Grasshopper with points? There is one reason I can think of: So you have a very complex NURBS model and not a polygon based model. As a basic summary, the difference is that NURBS models are mathematically created where polygon models are defined by the position of many points... and putting it that way, using the array of points from Grasshopper feels oddly similar. They're different though! I swear! There is the possibility that a project in the future would call for NURBS versus a polygon model. Hard to say for certain. It would hypothetically be a way to bring these complex shapes also into a software like Fusion 360 or Solidworks where they only allow you to edit NURBS or Solid objects.
Here is my definition and the result in Substance Designer, can you see similarities? Its a bit more visual in my opinion. And the use of folders for sorting nodes is very nice compared to using a panel node.
So as you can tell, it's actually spitting out a pretty nice model already. Its made with a combination of shapes, which I've arrayed with different parameters that allow the way it is arrayed to be quite random. After this I was able to add distortions and such to make it feel... more real? I suppose? Worn down, used. Somewhat more realistic for use in games and applications where you want to portray use. This is the image that came out which I was able to plug into an image map.
So I was excited at this point, and the really cool part is that you could change any value along the way in Substance Designer's definition and it would change the entire look, just like in Grasshopper. And then I used the definition that I had created in class which looks much like what other people were making in order to convert this image to a Delauney Mesh... which I believe is still a NURBS model? I may have to look it up to see what the origin of the word is. You can see below that the mesh came in quite close to how it looks in Substance Designer.
Overall I think the experiment has been successful so far. For me to get it looking good in Grasshopper I needed to ramp up the number of points that the array consisted of by quite a lot: 256 in the x and 256 in the y axes both. However, the image that I generated was 2048x2048 pixels large. So hypothetically the point density could be significantly higher than what it is right now but the increase in detail... I think would be marginal? I'm too scared to try because it sounds like an operation that would crash my computer. Anyhow, the model is ready for the next step. Time to mill it.

Thursday, 1 February 2018

The wonders of parametric equations

Knowing that this assignment was calling for a 2d result, I wasn't worried so much about creating shapes that could be extruded or otherwise made 3D. Now, I know that sounds kind of counter-intuitive, but it was a mental restriction that I had created which stopped me from being completely free with my designs. In class I began to experiment with mathematically creating shapes. And I learned a lot. I found a couple threads within forums that were able to give me a basic idea at how to begin creating these shapes, but there doesn't seem to be much information out there... or at least I'm not looking for the right thing. I began with a basic spiral. I didn't actually save that shape, but it told me that I was on the right track with what I was doing. Below, this is the basic definition that I created in order to output all of the other shapes that follow. So you can see that I have all of the variables created as sliders. These are inputted into ranges in order to allow me to generate a variable number of integers to use in my formulas... which follow. These formulas are incredibly versatile and I really want to see what I can do with them in future projects. They generate a path, which is illustrated by the "construct point" node that everything is connected to. Then, to bring this whole thing to life, plug the control points node into a NURBS curve. An important point is that you need a very high number of steps in order to accurately portray the line generated by the formula.... more steps means a tighter tolerance for accuracy. By tweaking and exploring both the number inputted in each variable, and the formulas themselves, I came up with the following shapes (and a lot more, but these were the most interesting).
 Then, I wanted to do something particularly interesting. I made the formula exist in 3D space. This simply meant plugging a formula into the Z input of the construct points node, which I didn't do for most other designs.
  When it came to using the vinyl plotter, I didn't have too much trouble. In the beginning it was quite fussy and didn't agree with me. But after I got it reset correctly, it actually went faster than I expected and I was done quick. I had to tighten my pen, and I found out about the boundaries of the print. I would say you should probably try to print a bit smaller than you want and cut the paper to size.