 Okay, last tutorial was a little long and drawn out this tutorial We'll hopefully a little bit quicker because we're going to start with the code that we already have I've copied the plain code. We have the plain dot HTML to a new file called cube dot HTML But as you can see it's still the same file we just have our basic plane here with a very basic material so Let's go into our cube that HTML and we want to create a cube instead of a plane So real first thing we're going to do here again. I'm hopefully you watch the previous tutorial This is part of a series. There should be a annotation on the screen to the full playlist New video every Friday for the coming weeks if you get to a video and you can't access it because it's mark private It's because it hasn't been published yet Wait a week and the next video will be posted But be sure you watch a previous video since I explained everything you see on the screen there So just for fun. We're going to just for clarity. We're going to create a variable called cube and When we add to the scene, we're going to add the cube to the scene now Just doing that you can see as I refresh this page It doesn't do anything because this variable this object we're creating here can be called whatever we want I can call it inner tube or car doesn't make it a car. That's just what we call it But when we add it to the scene, we have to add it based on what it's called now as I said 3js has a lot of basic or at least the basic geometries You need or a predefined so instead of 3J you know creating a new 3js plane geometry We're going to create a new 3 dot cube geometry remember case sensitive here capital C in cube Now with the plane we gave it a size of 300 units by 300 units But since this is a cube. We don't just need a length and width. We also need a height So let's make it 300 there and also leave it with the default material So that's all we have to do to change our scene to have a cube So if I refresh this page We now have a cube looks a little funny because we're looking at it from Straight on as far as all right. We're not left or right any now. We could move the camera, but just to keep things Simple let's first off. Let's lower the size of that cube We could back the camera off, but let's just lower the size of the cube to 200 by 200 by 200 There's our cube once again The colors are based on the plane material and we'll work with that with future tutorials, but just as we Positioned and rotated our camera. You can position and rotate any object so after we've created our cube, let's take our cube and change its rotation and We want to rotate it around left and right So we're going to want to rotate it on the z-axis because the z-axis is what runs up and down Once again, hopefully you have some sort of previous 3d You know what's the word experience and you understand this a little bit. If not, it might be a little more complicated To you just because you don't with a lot of 3d stuff. It's not creating it It's understanding the concept that you're working with 3d stuff not 2d stuff, which you normally do on computers But we're going to rotate it on the z-axis once again We'll get more into Rotating things certain degrees in the future. It's actually really simple, but for now. I'm just going to say 0.75 Which is approximately 45 degrees So we're creating our object. It is a cube geometry object These are the size of it. We're giving it a default very minimalistic normal material and And we are rotating it once it's rotated Then we're going to add it to the scene and we're going to render this scene based on our camera view up there So if I hit f5 now, you can see it has rotated Approximately 45 degrees of course in future tutorials We're gonna get into animation and we will rotate stuff with animate each animations and just like in the previous plane tutorial If we remove the material here a lot of objects have default settings So if I remove that it's going to default to a wireframe So there's a wireframe if you want to have a wireframe cube also Of course, we have a perfectly shaped cube. You can also have a rectangular style cube Let's see if we change this to 100 We now have a tall thin cube We can also change this one to 100 or you know, whatever Measurements we want so you can shape the cube however you want. The same was true with plane It didn't have to be a perfect square the plane could have been 100 by 200 or 100 by 500 or whatever You'd like so again. Let's let's change this rotation on this 2.5 instead of point 75 You can see it rotates it a little bit more So that's placing it and again, you can also move the position right now It's right set at the center of our scene because we haven't given it an x y and z position We've only it modified the rotation is put right smack in the middle of our scene So keep that in mind. So that's all for this tutorial. I'm these early tutorials I'm gonna go very basic didn't want to drag on very simple if you understood last week's tutorial this should make very a Whole lot of sense to you because we basically all we did was change this to say cube instead of plane gave it different measurements and then Rotated it. So really not very much new in there But we have now created a cube. So I thank you for watching you once again This is part of a series and I recommend watching the full series. There should be an annotation on the screen to the full playlist Be sure to watch the previous video. There's Only one before this as far as tutorials are concerned But there will be a new video every Friday if you are watching the playlist and at any point you reach a video That is marked private the reason for that is it hasn't been posted yet It'll be posted next Friday and we will be going over 3d HTML5 stuff for The next couple of months You may be watching this in the future and all the videos might be posting you might be able to watch the full playlist But I have to say that otherwise I'll ask me why are these videos mark private and mark private because they haven't been published publicly yet But they will be one at a time Every week. So I thank you for watching. Also, I'm gonna try to post this code if I remember there will be a link in the description if I don't post it I apologize That's not something I normally do but I figure for this might as well Anyway, thank you for watching and I hope that you have a great day also visit films by chris comm chris of the K Should be a link in the description. Have a great day