Godot 4: Importing 3D Models

KidsCanCode · Intermediate ·🧒 Coding for Kids ·2y ago

Key Takeaways

This video teaches how to import and setup 3D models in Godot 4

Full Transcript

welcome back to gdau recipes in this video we're going to be talking about how to import 3D assets into your gdau project for this demo we're going to use some art packs from K on itch.io and specifically we're going to use the dungeon remastered and the adventures character pack and these are just fantastic they're all really well done and the adventures pack you know has multiple characters and a ridiculous number of animations uh for each of them so this will be a really good example of how to get all sorts of different kinds of assets into good so download both of these and then we'll drag those into our project now the first thing you're going to notice when you unzip all of these is that there are multiple versions of all the files and we want to make sure we use the ones that are most compatible with good which are going to be the gltf versions and so in the adventures pack we're going to drag this character items folder the characters folder and then from the dungeon remasters we're going to grab the gltf folder and I drag those all three of those into my project folder here in my new good project and make sure that you give it a little time because there are a lot of files in these folders good is going to take a few seconds to scan through them all all right let's start with the characters and if you select the Knight here and look at the import tab you're going to see some of the basic import settings that we can change for this particular scene but I'm going to go ahead and click on Advanced here to pop up this window which gives us a lot more access to what's in the character and what we can do with it when we import it on the left you're going to see all the nodes that are going to be imported when we when we use this so there's a a whole bunch of meshes in here there's a skeleton with the rig and here you can see all the animations and the first thing I'm going to do is go over here to the root type and we're going to change this to character body 3D so that's the node type we're going to want our character to be when we use it and then I'm also going to go look at some of these animations so for example let's go find the idle animation and in the idle animation you want to make sure we want this animation to be looping when it's imported so you're going to need to go over here and pick linear it's going to be set to none I've already done it with this one set this to so that when it Imports it will automatically be a looping animation and some of them we want to do that like attacks we would want to only play once but idle the walking animations the running animations and the various idle animations we're going to want to set to looping so go ahead and do that with each of them and then click repport and you'll be good to go all right what about the dungeon items so down here here in the dungeon pack there are a huge number of files and it's kind of hard to just scroll through them I'm going to go ahead and put wall here in the filter so we can find the plain wall object and look at its import settings now the thing about the walls is we want them to be solid objects that we can't walk through and so we want to add Collision to these and it would be really tedious to go to each one and add a uh create it then add a static body then add a collision shape and so we can do this on import if we click on the mesh here we can say turn on physics and then it'll automatically choose static here we want it to be a static body and then we can choose how we want the Collision to be created to so like tresh we'll use the mesh itself to create the Collision which for this one isn't really all that necessary we don't care about these little bumps and everything uh so the simple convex is probably fine which just does an outline or you can use decompose convex which tries to make one uh you know with as few pieces as possible for this particular one it doesn't matter for different ones you'll need to look at what Collision shape works best for what that object's going to be but set that and click reimport all right so now once you've imported the scenes that you want let's go back to the Knight here and if you right click on it and say new inherited scene you'll get a new scene with this root character body 3D like we chose and underneath all of the nodes that came in from the glb file uh now one thing you'll notice is hands are kind of full because the artist has gone ahead and included all the different weapons and shields rigged and attached at the right place places so they'll work with the animations which is great and you can just go along and hide uh the ones you don't want so there I'm just leaving the one-handed Sword and the round shield and down here you'll see the animation player where you can sort of go and look at all the animations in individually and play them and see what they look like there's a a attack there's a block holds up the shield right you can play around with these and make sure they all look good and figure out which ones you want to use for your game notice idle here is in looping mode so when I play this that animation is going to just keep repeating and that's it once we've got our character imported the way we want it and we've imported all of the dungeon items we want that we can start building our dungeon with we're ready to start working on the game and we'll tackle that in the next part thanks for watching and I'll see you in the next one please don't forget to like the video and hit that subscribe button so you'll get notified as soon as the next video is released you can find this in many other goodto recipes tutorials examples and tips at good recipes.com don't forget to like And subscribe on YouTube to get the latest video tutorials and if you'd like to help support these efforts please consider clicking the patreon link thanks

Original Description

In this series of videos, we look at how to import, setup, and use 3D models in Godot, whether you downloaded them or created them yourself. You can download the art packs we're using from Kay Lousberg at itch.io: https://kaylousberg.itch.io/ Text version and link to code: https://kidscancode.org/godot_recipes/4.x/3d/assets/importing_assets/ Want to learn Godot 4? Check out my new book, Godot 4 Game Development Projects. Available now! https://amzn.to/3qcOZ4E Support me on Patreon: https://www.patreon.com/kidscancode
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from KidsCanCode · KidsCanCode · 0 of 60

← Previous Next →
1 Learning to Code with Python: Lesson 1.1 - What is Programming?
Learning to Code with Python: Lesson 1.1 - What is Programming?
KidsCanCode
2 Learning to Code with Python: Lesson 1.2 - Drawing with Turtles
Learning to Code with Python: Lesson 1.2 - Drawing with Turtles
KidsCanCode
3 Learning to Code with Python: Lesson 1.3 - Variables
Learning to Code with Python: Lesson 1.3 - Variables
KidsCanCode
4 Learning to Code with Python: Lesson 1.4 - Loops (and more turtles!)
Learning to Code with Python: Lesson 1.4 - Loops (and more turtles!)
KidsCanCode
5 Learning to Code with Python: Lesson 1.5 - Saving and Running Programs
Learning to Code with Python: Lesson 1.5 - Saving and Running Programs
KidsCanCode
6 Learning to Code with Python: Lesson 1.6 - Functions
Learning to Code with Python: Lesson 1.6 - Functions
KidsCanCode
7 Learning to Code with Python: Lesson 1.7 - Input and Conditional Statements
Learning to Code with Python: Lesson 1.7 - Input and Conditional Statements
KidsCanCode
8 Learning to Code with Python: Lesson 1.8 - Number Guessing Game
Learning to Code with Python: Lesson 1.8 - Number Guessing Game
KidsCanCode
9 KidsCanCode - Patreon Intro Video
KidsCanCode - Patreon Intro Video
KidsCanCode
10 Learning to Code with Python: Lesson 1.9 - Rock Paper Scissors Game
Learning to Code with Python: Lesson 1.9 - Rock Paper Scissors Game
KidsCanCode
11 Learning to Code with Python: Lesson 1.10 - Secret Codes
Learning to Code with Python: Lesson 1.10 - Secret Codes
KidsCanCode
12 Learning to Code with Python: Lesson 2.1 Creating Computer Graphics
Learning to Code with Python: Lesson 2.1 Creating Computer Graphics
KidsCanCode
13 Learning to Code with Python: Lesson 2.2 Simple Animation
Learning to Code with Python: Lesson 2.2 Simple Animation
KidsCanCode
14 Learning to Code with Python: Lesson 2.3: Animating More Objects
Learning to Code with Python: Lesson 2.3: Animating More Objects
KidsCanCode
15 Learning to Code with Python: Lesson 2.4: More Fun with Animation
Learning to Code with Python: Lesson 2.4: More Fun with Animation
KidsCanCode
16 Extra: Setting up the Atom Editor for Python
Extra: Setting up the Atom Editor for Python
KidsCanCode
17 Game Development 1-1: Getting Started with Pygame
Game Development 1-1: Getting Started with Pygame
KidsCanCode
18 Game Development 1-2: Working with Sprites
Game Development 1-2: Working with Sprites
KidsCanCode
19 Game Development 1-3: More About Sprites
Game Development 1-3: More About Sprites
KidsCanCode
20 Pygame Shmup Part 1: Player Sprite and Controls
Pygame Shmup Part 1: Player Sprite and Controls
KidsCanCode
21 Pygame Shmup Part 2: Enemy Sprites
Pygame Shmup Part 2: Enemy Sprites
KidsCanCode
22 Pygame Shmup Part 3: Collisions (and Bullets!)
Pygame Shmup Part 3: Collisions (and Bullets!)
KidsCanCode
23 Pygame Shmup Part 4: Adding Graphics
Pygame Shmup Part 4: Adding Graphics
KidsCanCode
24 Pygame Shmup Part 5: Improved Collisions
Pygame Shmup Part 5: Improved Collisions
KidsCanCode
25 Pygame Shmup Part 6: Sprite Animation
Pygame Shmup Part 6: Sprite Animation
KidsCanCode
26 Pygame Shmup Part 7: Score (and Drawing Text)
Pygame Shmup Part 7: Score (and Drawing Text)
KidsCanCode
27 Pygame Shmup Part 8: Sound and Music
Pygame Shmup Part 8: Sound and Music
KidsCanCode
28 Pygame Shmup Part 9: Shields
Pygame Shmup Part 9: Shields
KidsCanCode
29 Pygame Shmup Part 10: Explosions
Pygame Shmup Part 10: Explosions
KidsCanCode
30 Pygame Shmup Part 11: Player Lives
Pygame Shmup Part 11: Player Lives
KidsCanCode
31 Pygame Shmup Part 12: Powerups
Pygame Shmup Part 12: Powerups
KidsCanCode
32 Pygame Shmup Part 13: Powerups (part 2)
Pygame Shmup Part 13: Powerups (part 2)
KidsCanCode
33 Pygame Shmup Part 14: Game Over Screen
Pygame Shmup Part 14: Game Over Screen
KidsCanCode
34 Pygame Platformer Part 1: Setting Up
Pygame Platformer Part 1: Setting Up
KidsCanCode
35 Pygame Platformer Part 2: Player Movement
Pygame Platformer Part 2: Player Movement
KidsCanCode
36 Pygame Platformer Part 3: Gravity and Platforms
Pygame Platformer Part 3: Gravity and Platforms
KidsCanCode
37 Pygame Platformer Part 4: Jumping
Pygame Platformer Part 4: Jumping
KidsCanCode
38 Pygame Platformer Part 5: Scrolling the Window
Pygame Platformer Part 5: Scrolling the Window
KidsCanCode
39 Pygame Platformer Part 6: Game Over
Pygame Platformer Part 6: Game Over
KidsCanCode
40 Pygame Platformer Part 7: Splash & End Screens
Pygame Platformer Part 7: Splash & End Screens
KidsCanCode
41 Pygame Platformer Part 8: Saving High Score
Pygame Platformer Part 8: Saving High Score
KidsCanCode
42 Pygame Platformer Part 9: Using Spritesheets
Pygame Platformer Part 9: Using Spritesheets
KidsCanCode
43 Pygame Platformer Part 10: Character Animation (part 1)
Pygame Platformer Part 10: Character Animation (part 1)
KidsCanCode
44 Pygame Platformer Part 11: Character Animation (part 2)
Pygame Platformer Part 11: Character Animation (part 2)
KidsCanCode
45 Pygame Platformer Part 12: Platform Graphics
Pygame Platformer Part 12: Platform Graphics
KidsCanCode
46 Pygame Platformer Part 13: Improved Jumping
Pygame Platformer Part 13: Improved Jumping
KidsCanCode
47 Pygame Platformer Part 14: Sound and Music
Pygame Platformer Part 14: Sound and Music
KidsCanCode
48 Pygame Platformer Part 15: Powerups
Pygame Platformer Part 15: Powerups
KidsCanCode
49 Pygame Platformer Part 16: Enemies
Pygame Platformer Part 16: Enemies
KidsCanCode
50 Pygame Platformer Part 17: Using Collision Masks
Pygame Platformer Part 17: Using Collision Masks
KidsCanCode
51 Pygame Platformer Part 18: Scrolling Background
Pygame Platformer Part 18: Scrolling Background
KidsCanCode
52 Pygame Platformer Part 19: Wrapping Up
Pygame Platformer Part 19: Wrapping Up
KidsCanCode
53 Gamedev In-depth Topics: 4-way vs. 8-way Movement
Gamedev In-depth Topics: 4-way vs. 8-way Movement
KidsCanCode
54 Gamedev In-depth Topics: Time-based vs. Frame-based Movement
Gamedev In-depth Topics: Time-based vs. Frame-based Movement
KidsCanCode
55 Gamedev In-depth Topics: Non-integer Movement
Gamedev In-depth Topics: Non-integer Movement
KidsCanCode
56 Tile-based game Part 1: Setting up
Tile-based game Part 1: Setting up
KidsCanCode
57 Tile-based game Part 2: Collisions and Tilemap
Tile-based game Part 2: Collisions and Tilemap
KidsCanCode
58 Tile-based game Part 3: Smooth Movement
Tile-based game Part 3: Smooth Movement
KidsCanCode
59 Tile-based game Part 4: Scrolling Map / Camera
Tile-based game Part 4: Scrolling Map / Camera
KidsCanCode
60 Tile-based game Part 5: Player Graphics
Tile-based game Part 5: Player Graphics
KidsCanCode

Related Reads

📰
How Creative Characters Like Sprunki Inspire Kids to Learn Coding
Learn how creative characters like Sprunki inspire kids to learn coding through interactive games and animations
Medium · Programming
📰
Computer Applications for Primary School Children: A Fun + Safe Guide for Ages 6-12
Learn how to introduce primary school children to computer applications in a fun and safe way, teaching them essential skills for the future.
Dev.to · Ogunkola Adeola
📰
From 0 to 20 Chapters: My Story‑Driven Rust Book for Kids Now Has a Bilingual Interactive Demo
Create an interactive coding book for kids using Rust, with a focus on storytelling and bilingual support, to teach programming concepts in an engaging way
Dev.to · born1987-ir
📰
How Kids Can Build Fighting Games Stickman in Scratch
Kids can learn coding by building a stickman fighting game in Scratch, developing skills like movement control and collision detection.
Medium · Programming
Up next
Man Builds a Backyard Tiny House and Turns It into a Home Office | Start to Finish by @Elseweyr
AKLA GELEN
Watch →