Unity Webgl Character Importer texture issues?

Original Discord Post by eggman28 | 2024-01-24 02:43:06

Hi,

Is there a known issue for Character Importer and WebGL ?

I’m using the “Character Importer” plugin and it works fine for my Windows project but for my WebGL project, the materials don’t seem to get imported correctly for me and the character is pink.

Am seeing this with the “Complete WebGL Demo” from Building for WebGL | Documentation with Unity 2022.3.17f1

Images:


Embedded Content:
Building for WebGL
This guide will help you integrate Convai’s WebGL capabilities into your Unity projects, enabling you to bring to life AI characters with human-like conversational abilities.
Link: Building for WebGL | Documentation
Thumbnail

Reply by eggman28 | 2024-01-24 02:46:53

The imported glb mesh in the Avatar folder is pink but if I import it directly into Blender, the textures are fine.

Reply by eggman28 | 2024-01-24 02:47:27

Images:

Reply by eggman28 | 2024-01-24 03:39:07

Importing RPM Characters | Documentation - ah looks like WebGL support isn’t there for the Character Importer.

Any suggestions for workaround ?

Embedded Content:
Importing a character from Convai Playground
Follow these instructions to bring a character from the Convai Playground into your Unity Project.
Link: Importing RPM Characters | Documentation
Thumbnail

Replying to eggman28’s Message

Reply by eggman28 | 2024-01-24 02:43:06
Hi,

Is there a known issue for Character Importer and WebGL ?

I’m using the “Character Importer” plugin and it works fine for my Windows project but for my WebGL project, the materials don’t seem to get imported correctly for me and the character is pink.

Am seeing this with the “Complete WebGL Demo” from Building for WebGL | Documentation with Unity 2022.3.17f1

Reply by k3kalinix | 2024-01-24 12:06:22

Hello

Reply by k3kalinix | 2024-01-24 12:06:52

Which render pipeline do you use ?

Reply by eggman28 | 2024-01-24 18:58:32

Looks like I’m on the default URP. Is there a specific one that I should use that works with WebGL and Character Importer ?

Images:

Reply by eggman28 | 2024-01-24 19:04:35

The texture looks to be imported ok.

Images:

Reply by k3kalinix | 2024-01-24 19:07:06

<@614184022121119745>

Reply by eggman28 | 2024-01-24 19:15:38

Noticed that if I set it to “None”, the character materials show up OK. There is that warning but will try and see if that builds / works.

Images:

Reply by k3kalinix | 2024-01-24 19:16:23

Yes

Reply by k3kalinix | 2024-01-24 19:16:31

As I guess now you are using built in.

Reply by eggman28 | 2024-01-24 19:18:15

What should I be using for WebGL ? Noticed that while the imported character is ok, the rest of the scene now is not.

Images:

Reply by k3kalinix | 2024-01-24 19:19:30

This Demo scene uses URP materials.
The character you imported, the GLTF material, is compatible with Built-in.

I tagged my friend who developed WebGL

Reply by k3kalinix | 2024-01-24 19:19:35

<@614184022121119745>

Reply by eggman28 | 2024-01-24 19:26:35

Actually, I don’t even need the demo scene to work as I’ll be building my own scene. Let me see if I can get my own demo scene with imported character using Built-In to work.

Reply by eggman28 | 2024-01-24 19:37:37

What should I change in Build Settings to use Built-in ? Getting build error with it.

Images:

Reply by k3kalinix | 2024-01-24 19:38:44

Do you want to use URP?

Reply by eggman28 | 2024-01-24 19:39:41

I’m fine with either. I just want to use WebGL with Character Importer.

Reply by k3kalinix | 2024-01-24 19:39:52

Okay then