Import Model Resources - Cocos Creator

Skip to content MenuReturn to top Sidebar Navigation

Getting Started

Beginner Guide

About Cocos Creator

Install and Launch

Dashboard

Hello World!

Project Structure

Using Editor

Assets

Scene

Node Tree

Properties

Node Library

Console

Settings

Project Settings

Main Menu

Toolbar

Editor Layout

Preview and Build

Coding Environment Setup

Quick Start: Create Your First Game

Cocos2d-x User Guide

Get Help and Support

Upgrade Guide

v2.4 Asset Manager Upgrade Guide

v2.4 Subpackage Upgrade Guide

v2.4 Custom Project Build Process Upgrade Guide

v2.1 Upgrade Guide

v2.0 Upgrade Guide

v1.10 Resource Upgrade Guide

FAQ

Workflows

Asset Workflow

Scene Managing

Texture

Prefab

Atlas

Auto Atlas

Texture Compression

Label Atlas

Import/Export Assets

Texture Auto Trim

Script Files

Font

Particle

AudioClip

Spine

DragonBones

Tiledmap

JSON

Text

Import Project from Other Editor

Scene Building Workflow

Node and Component

Transform

Node Tree

Scene Editing

Scene Camera Configuration

Scripting

Use Component

cc.Class

Access Node and Component

Common Node and Component API

Lifecycle Callback

Creating and Destroying Nodes

Scene Management

Acquire and Set Asset

Asset Loading

Asset Bundle Configuration and Loading

Event System

Builtin Events

Player Input

Tweening

Actions

Scheduler

Execution Order

Networking

Pooling

Modular Script

Plugin Scripts

JavaScript Primer

TypeScript Support

Advanced CCClass

Attributes

Publish Game

Publish to Web

Publish to Facebook Instant Games

Setup Native Development

A short tutorial to install python on MacOS

Publish to native

Debugging JavaScript on Native Platforms

Publish to HUAWEI AppGallery Connect

Publish to Google Play Instant

Publish to Alipay Mini Games

Publish to Taobao Mini Games

Publish to ByteDance Mini Games

Publish to Cocos Play

Publish to Huawei Quick Games

Publish to OPPO Mini Games

Publish to vivo Mini Games

Publish to Migu Mini Games

Publish to Honor Mini Games

Publish to Xiaomi Quick Games

Publish to Baidu Mini Games

Baidu Open Data Context

Publish to WeChat Mini Games

WeChat Open Data Context

WeChat Engine Plugin

WeChat PC Mini Games

Mini Game Subpackage

Publish from Command Line

Custom Project Build Template

Systems

Renderer and Graphics

Core Renderers

External Asset Renderer

Camera

Material

Effect

Sprite Reference

Label Reference

LabelOutline Reference

LabelShadow Reference

Mask Reference

MotionStreak Reference

ParticleSystem Reference

Tiledmap Reference

TiledTile Reference

Spine Reference

DragonBones Reference

VideoPlayer Reference

WebView Reference

Graphics Reference

UI

Multi-Resolution Adaption

Widget Alignment

Stretchable UI Sprites

Label Layout

Layout Container

List with Data

UI Component Reference

Canvas Reference

Widget Reference

Button Reference

Layout Reference

SafeArea Reference

EditBox Reference

RichText Reference

ScrollView Reference

ScrollBar Reference

ProgressBar Reference

Toggle Reference

ToggleContainer Reference

Slider Reference

PageView Reference

PageViewIndicator Reference

BlockInputEvents Reference

Animation

Introduction

Animation Component and Clip

Animation Curve

Sprite Animation

Time Curve

Animation Event

Animation Scripting

Animation Component Reference

Audio

Play Audio

AudioSource Reference

Compatability

Physics and Collision

Collision

Editing Collider Component

Collision Group

Collision Scripting

Collider Component Reference

Physics

Physics Manager

RigidBody

Physics Collider

Contact Callback

Joint

Advance Settings

3D System

3D Node

3D Scene

Import Model Resources

Mesh Resource

Mesh Renderer Component

Skinned Mesh Renderer Component

Skeleton Animation Component

Collision Detection

Lighting

Light Reference

3D Particle System

Primitive 3D Objects

3D Physics and Collision

Setting Physics Engine

Physics Manager

RigidBody Component Reference

ConstantForce Component Reference

Collider Component Reference

Physics Events

Physics Material

Asset Manager

Asset Bundle

Release Of Resources

Download and Parse

Loading and Preloading

Cache Manager

Optional Parameters

Pipeline and Task

Advanced Topics

Editor Extension

Your First Extension

Install and Share

Introduction to IPC

Entry Point

Extension Workflow

Extends Main Menu

Build Panel

IPC Workflow

Work with Simple Panel

i18n

Working Directories

Submit Extension to Cocos Store

Calling Engine API and Project Scripts

Asset Management

Create Panel

UI Kit

Extends UI Kit

Layout UI Element

Work with Vue.js

Extend Inspector

Customize Gizmos

Advanced Gizmos

Test Your Extension

package.json Reference

Main Menu Reference

Panel Registration Reference

Panel Define Reference

Custom Element Reference

Builtin IPC Message Reference

Advanced Topics

Resource management considerations - meta files

JSB 2.0 Guide

Hot Update Tutorial

AssetManager for Hot Update

i18n

User Data Storage

Engine Customization Workflow

Web Preview Customization

RenderFlow

UI Rendering Batch Processing Guide

Dynamic Atlas

JavaScript to Java Reflection

JavaScript to Objective-C Reflection

SDK Integration

Facebook Live Video & Audience Network

WebSocket Server

Cocos Service

On this pageFeedbackImport Model ​

Authors: Xunyi, youyou

Currently Cocos Creator supports importing 3D models using a very wide range of .fbx formats, and basically all 3D modeling software supports exporting this format.

The process of importing is simple, just drag the .fbx model resource into the Assets, and wait a moment to complete the import work. After the import is complete, you can see that the imported model resource is an expandable folder in Assets. When importing the model, the editor will automatically parses the contents of the model and generates resources such as Prefab, Meshes, and Skeleton animations.

import-model

  • 1 is the model resource
  • 2 is the mesh resource
  • 3 is the prefab resourceAttention: When importing, those automatically generated Prefab resources cannot be modified. If you need to modify them, you can drag the generated prefab into the Scene for editing. After editing, drag and drop it into the Asset to generate a new Prefab, and use this as your own Prefab.
  • 4 is the skeleton animation resource

Associated texture resources ​

Most models will have texture resources. When importing the model, these texture resources need to be placed in the specified location before they are found by the import system and associated with the Mesh Renderer

The import system will first search for the corresponding texture from the model folder. If it is not found, then go to textures or Textures under the model folder for look up.

Attention: The correct search for the texture needs to satisfy that the texture be imported before imported model, or to be imported with the model at the same time

Associated skeleton animation resource ​

The skeleton animation clip can be placed in the model along with the mesh resource, or it can be placed separately in another model and named after the Model name@Animation name name. A separately stored skeleton animation clip will be named with the specified name when it is imported.

skeleton-animation-clip-name

If there is skeleton animation in the model, the import system will automatically add a skeleton animation component to the Prefab of the model

When you click the Search Animation Clips button in the component, the component will search for the model named after the Model name@Animation name format under the current model folder, and associate with the skeleton animation clips in it.

search-skeleton-animation

Configuring model parameters ​

After importing the model, you can set the model import parameters in the Properties by selecting the model in the Assets.

Model ​

Scale Factor: Set the scale of the imported model root node. The default is 1.

Animation ​

  • Precompute Joint Matrix

    When loading skeleton animation data, the matrix of each skeleton at each time point will be calculated in advance, which saves the steps of dynamically calculating the skeleton matrix and greatly improves the efficiency. The default is Unchecked.

    Note: The model with this option turned on must match the model on the SkeletonAnimation component.

  • Animation Frame Rate

    Adjusting the animation pre-calculates the frame rate of the generated animation clip, reducing the frame rate can reduce memory consumption. Only takes effect when the Precompute Joint Matrix option is checked. The default is 30 FPS.

Tag » What Is An Import Model