This guide walks you through the process of importing Ready Player Me (RPM) characters into a Convai-powered Unity project, configuring them, and integrating Convai NPC components.
Ready Player Me (RPM) allows users to create and customize 3D avatars easily. By integrating RPM characters into Convai's Unity SDK, you can bring dynamic NPCs to life with advanced AI-driven interactions. This guide covers the step-by-step process to set up RPM characters in your Unity project with Convai.
Prerequisites
Before getting started, ensure you have the following:
In the Project Panel, navigate to: Assets > Ready Player Me > Resources > Settings
Right-click inside the folder and go to Create > Ready Player Me > Avatar Configuration.
This will generate an Avatar Config asset.
Select the created asset and, under the Inspector Panel, locate the Morph Targets section.
Click Add, select the required morph targets (Oculus Visemes and ARKit), and save the asset.
Locate Assets > Ready Player Me > Resources > Settings > AvatarLoaderSettings and assign the Avatar Config asset to the Avatar Config field.
Save the asset.
Step 3: Import the RPM Character
Navigate to Tools > Ready Player Me > Avatar Loader.
Paste or enter your RPM Model Link in the provided input field.
Click Load Avatar into Current Scene to import your character.
Step 4: Integrate Convai Components
Select your imported RPM GameObject in the Hierarchy Panel.
Add the Convai NPC component to the GameObject.
Fill in the name and ID of the Convai NPC you wish to integrate.
Click Add Components inside the Convai NPC component.
Choose the components you want and click Apply Changes.
Attach a Capsule Collider to the GameObject and configure its size and center to align with the character's body proportions. Ensure that the collider accurately encapsulates the character for optimal physics interactions and collision detection.
Assign an Animation Controller to the Animator component of the GameObject. The Convai SDK offers two predefined animation controllers (Feminine and Masculine) that you can use. Alternatively, you can integrate a custom controller tailored to your requirements.
Enhance your character with additional features:
Add LipSync: Follow this guide to integrate LipSync into your character.
Implement Narrative Design: Check out this guide to add Narrative Design.
Set up Actions: Explore action-based interactions using this guide.
Conclusion
For more details about Ready Player Me, visit Ready Player Me.
You have successfully integrated a Ready Player Me character into your Convai-powered Unity project. You can now leverage Convai’s capabilities to bring intelligent, interactive NPCs to life.