This videos runs over the basics of how and why to use the icesl forge to make models from primitive shapes, as well as import your own stl's into the lua code for manipulation via scripting!
Dont forget, if you want to donate to the channel, send me some btc at the adress below! or leave atip on the video!
Like and Subscribe! check out these other cool channels!
send me a satoshi! (bitcoin address, all donations accepted!) bitcoin: bc1qeew0k58xa58yjx9rddq3n9uvdqhu4vu2uhg2mv
Current Channel Goal: 50,000 Subs!
AI Generated·May contain errors
Video Summary
AI Generated
This video introduces WebForge, the online version of ICE-SL's Forge, a tool for programmatically designing 3D models using Lua code. The presenter demonstrates how to use variables, sliders, and primitive shapes to create and modify models, highlighting the ability to subtract shapes to create molds and the seamless integration with the ICE-SL slicer for G-code generation.
Hey folks, welcome back. I am Tech Niverous and this time we're going to be taking a look at
the WebForge. This is the online version of ICE-SL's Forge where you can create and design
models programmatically using Lua code and there's a lot you can do here. So as you can see
they have built us a pre-built model. This is what you load when you open the WebForge and this
model automatically shows up just to kind of give you a demo of the types of things you can do.
First of all you'll notice there is this bar here that says tweaks and that will allow us to change
the parameters of our model. So what we're going to do, sorry about the noise, is we're going to
play with this a little bit and just kind of show you the capabilities because it's actually really
really crazy what you're capable of doing on here and I think everybody should be checking it out.
So as you can see these tags are denoted by a UIScaler. These are our variables, the boreR,
boreH and sides and they are equal to sliding bars basically which include a label, a current
or the base point where it starts. You can see it's at five and then a minimum and a maximum.
So I can actually take this and adjust my model with these sliding bars which is kind of cool if
you're trying to dial things in perfectly. Not just the bore radius, I can do that with all of
these variables. Get the height and how many sides it has. Now I can actually go in here and adjust
this. Right now I have it maxed out at six sides. Let's say I want 10 sides. It'll reload, it'll
reset it to three which is the default that we're setting here and now I can go all the way up to 10
sides. So this is the bolt with 10 sides. It looks pretty rounded. Not quite, you can still see the
flat faces and that is pretty dang cool. So if you count them there should be five on each quarter.
One, two, three, four, five. So that is basically for a half of the circle. Okay so one of the other
things you can do. Let's say I want to add another one in here. Let's say just for the heck of it,
let's just do UIScaler. We'll pick our label here which we'll just put random and then we need
our initial value which will be four, our low value which would be one, and our high value which will
be seven. So you can see it automatically throws it in here. Now since we're not using this variable
anywhere in our code down here, the slider isn't actually going to do anything. But let's say
we want to be able to move it left and right. So let's say let's translate and we'll say
heck of it, zero, zero. We're going to multiply that times our picture, times our model here.
So now when I tweak it, you'll see that it slides back and forth. Now it looks like the whole view
plane is moving. That is because if there's only one object it centers on that object. So let's go
ahead and add something really small just so we can see the difference. C cube, one. So now
there's a little tiny cube in here that you can see right there. And now if I move the model,
you can see it moving the model, translating it in different directions. You can also do that
upwards. So let's say off build equals UI scaler above. Let's say two plate. So we're going to
offset it off the build plate here. I got to get the single quotation marks. Then we also need to
add our initial value. We'll set to zero. Low end we'll set to zero. High end we'll set to 25. We
should take care of that. If I type it right. Okay. So now the distance to the plate can be
adjusted. Oh, I got to add the variable in. So let's say O, F, F, F. One too many F's in my
variable, but that's all right. So now it is 25 off the build plate and we can raise or lower it.
So this is great for making minor adjustments. Once you have a bunch of different models in
here and you want to line them up and move them around. The crazy thing is, is right now it's on
rotate because we're actually building a cube and then we're taking the bore for the cylinder out of
it and I can actually leave it. I can code this out. It's trying to emit the bolt I can code.
Let's say I just said it was the bolt body, right? Now let's do that a different way. So
don't lose that. Let's just do bolt. All right. So that gets rid of our bore. I can also just do
the bolt bore and not the body and you can see the hole. So programmatically, this is
really, really awesome. There's a million things you can do with this. I've made some pretty cool
models and you can actually, when you're emitting, change the color of the object by picking a
different color paint brush. So as you're making different objects, you can paint them in different
colors. That way if you need more than one thing or you want to see separate models or
things like that. Really, really cool. The options for this are pretty dang limitless.
As long as you can figure out the math, which is the hardest part. But
honestly, they're all primitive shapes and it's just a matter of combining them
and subtracting them from each other. So if I save the script here, it'll save it. I do have the
regular forge opened up because I'm working on another video showing you how to use this
technique to make molds, which isn't quite ready yet, but we'll get there. And then the really
cool thing is that I can save this. Let's go ahead and take that out. That's just a rough
approximation of my mold by subtracting one from the other. I'm going to go ahead and save as
and in 3G objects, we'll call this mold one. It's not going to be our final mold, but
saves it as a Lua script. Then I can easily go in here into the actual slicer for ice SL,
go to file, load model and 3D objects. Let's find this script. So mold one,
it opened and you can see it's brought it in and I can now slice it.
So it's going to save to G code. Let's slice up here. It goes pretty quick.
But the super cool thing is you can import your own files and it'll turn them into Lua files
so that you can then add or subtract them to other things. And that's kind of how I got this
rough mold here. Now, obviously in the mold video, we'll be going over how to split the item in half
afterwards and entering a pour spout, things like that. But let's go ahead and look here.
This is what our print's going to look like. You can see the empty cavity from the STL,
the skull I brought in creating our mold cavity. So pretty cool to use the forge and make pretty
much anything you want and stick around. We'll have some more videos of this type in the future.
I plan on using this quite a bit. I have used it quite a bit in the past and I really,
really enjoy it. So we'll call that good for now. Don't forget to subscribe, leave a like,
and stay tuned. We're going to have a lot more videos on Ice SL, including how to make molds
and some other videos on quick programming tutorials in the Lua language for the forge.
So if you're looking forward to that, make sure you subscribe and we will see you in the next one.