A 3D model displays an object modeled in a 3D modeling software. Like a sprite for 2D games (or for interfaces in 3D games), it's a very common object that can be used for players, enemies, backgrounds, projectiles.
If you need to create walls, plane grounds or other rectangular/cubic 3D objects, consider using the 3D box object.
This object is new and subject to changes. Check the release notes when GDevelop is updated and regularly read this page to ensure you follow the best practices when using 3D models in your game.
Notably, this object does not yet support animations.
Lighting can be set up through layers effects. Ambient and directional light effects allow to configure basic lighting for 3D layers.
The model can be set up to react to lighting in different ways. The GLTF format can include data about light reflection. The 3D model can either use this data or use a forced configuration.
GDevelop supports 3D models saved in the GLB (.glb) format. It is a standardized file format used to share 3D data. Notably, it includes the 3D mesh of the object, as well as its textures or material specifications. This format is also sometimes called GLTF, for "GL Transmission Format". You can sometimes find .gltf files, but only the .glb files are supported by GDevelop, as they can embed the textures whereas .gltf files can't do this.
Large 3D models can impact your game as they will have:
- A larger size, making your game bigger and slower to download (especially on mobile phones or without broadband),
- A larger impact on the loading time (which will be slower, especially on low end devices),
- A negative impact on game performance, as the player device graphics card will need to spend more time rendering all the triangles composing the 3D model.
We recommend you start building a game using "low-poly" 3D models.
How to find or create 3D models?
The GDevelop asset store will soon contain 3D models, so that it will be faster and easier to build your games. If you want to sell your assets (2D images, 3D models, audio or ready-to-use objects/extensions), read more here.
This section will be enhanced with various solutions to build your 3D models.
You can find free or premium 3D models suitable for your games on some website like: