New to Unity. New to Naninovel. 3D Character Implementation

General development topics: using various Unity tools, publishing games, etc.
Post Reply
OldScratch
Posts: 7
Joined: 07 Feb 2021 02:47

New to Unity. New to Naninovel. 3D Character Implementation

Post by OldScratch »

Hello,

I am trying to implement Naninovel to my in progress, top-down isometric game. It is a 3D game in the HDRP. I have managed to import Naninovel and have even got a Hello, World! script being played and displayed on screen. I was attempting to follow the Generic Actor video :https://www.youtube.com/watch?v=HPxhR0I1u2Q so that I could get a similar effect in my game. But despite having the script running and the dialog visible, the 3D character and the designated pose to not appear at all.
I can provide whatever info is required. I have not had time to really get used to the engine or Unity so I apologize if this is a stupid question.

idaot
support
Posts: 262
Joined: 01 Aug 2020 08:25

Re: New to Unity. New to Naninovel. 3D Character Implementation

Post by idaot »

Welcome! There is additional setup for using HDRP with Naninovel, guide can be found here: https://naninovel.com/guide/render-pipe ... -pipelines

Also have you positioned the character using either pos: or position:? Also check the Scene tab to see if the character has spawned but is outside the camera frame. For all the available @char command parameters check the API reference https://naninovel.com/api/#char

OldScratch
Posts: 7
Joined: 07 Feb 2021 02:47

Re: New to Unity. New to Naninovel. 3D Character Implementation

Post by OldScratch »

Sorry for the late response, and thank-you for your assistance. I did follow the steps for setting up HDRP, and the game and text still appears fine. Inside of the Naninovel characters resource I have my "Mother" (the name of the character for now) in the Characters list. And inside of the resources list for Mother I have dragged in the prefab she belongs to. I have set up Default and Pose1 inside of the Animator Controller parameters list. And finally the dialogue script looks like this:
@char Mother.Pose1 pos:25
Mother: Hello, World!
Mother: I am a sink.
@hideChars time:5.5 wait:false
@hidePrinter
@stop

Don' ask about the sink bit. Before I had a good placeholder model for her character, it was the sink who was talking.
I am really happy with Naninovel as creating my own dialogue system would be terrible. But I really need this 3D character thing to work.

OldScratch
Posts: 7
Joined: 07 Feb 2021 02:47

Re: New to Unity. New to Naninovel. 3D Character Implementation

Post by OldScratch »

idaot wrote: 07 Feb 2021 09:08

Welcome! There is additional setup for using HDRP with Naninovel, guide can be found here: https://naninovel.com/guide/render-pipe ... -pipelines

Also have you positioned the character using either pos: or position:? Also check the Scene tab to see if the character has spawned but is outside the camera frame. For all the available @char command parameters check the API reference https://naninovel.com/api/#char

There is one thing I notice while running. If I look at the scene while in game, and expand the Naninovel object, I can see that there is a Mother character spawned under Naninovel when I enter dialogue. This character is waaaay off to the right and below the ground. I am not sure if this is how it is supposed to be as I do not understand how Naninovel creates the avatars for dialogue.

idaot
support
Posts: 262
Joined: 01 Aug 2020 08:25

Re: New to Unity. New to Naninovel. 3D Character Implementation

Post by idaot »

The transforms inside the generic prefab might not be centered, Try checking the model if its position values are at 0,0,0. Then replace the pos: value with position:0,0,0.

Image

OldScratch
Posts: 7
Joined: 07 Feb 2021 02:47

Re: New to Unity. New to Naninovel. 3D Character Implementation

Post by OldScratch »

idaot wrote: 12 Feb 2021 22:36

The transforms inside the generic prefab might not be centered, Try checking the model if its position values are at 0,0,0. Then replace the pos: value with position:0,0,0.

Image

I followed those steps but I did not see the character appear in dialogue. But while the game is playing and I locate the other Mother instance created by Naninovel, I can see that she is standing in front of the camera. I also notice that if I hide the canvas render target that I can see her standing there, at the cost of not seeing anything in my scene anymore. She is a fair distance from the camera and does not appear to be in the correct pose though. I am wondering if Naninovel renders to a different camera target? Or perhaps I need to change the Naninovel camera?

OldScratch
Posts: 7
Joined: 07 Feb 2021 02:47

Re: New to Unity. New to Naninovel. 3D Character Implementation

Post by OldScratch »

OldScratch wrote: 14 Feb 2021 05:04
idaot wrote: 12 Feb 2021 22:36

The transforms inside the generic prefab might not be centered, Try checking the model if its position values are at 0,0,0. Then replace the pos: value with position:0,0,0.

Image

I followed those steps but I did not see the character appear in dialogue. But while the game is playing and I locate the other Mother instance created by Naninovel, I can see that she is standing in front of the camera. I also notice that if I hide the canvas render target that I can see her standing there, at the cost of not seeing anything in my scene anymore. She is a fair distance from the camera and does not appear to be in the correct pose though. I am wondering if Naninovel renders to a different camera target? Or perhaps I need to change the Naninovel camera?

Maybe I can explain a bit more. My game setup is Isometric. And I use a pixellation filter effect by following this video: https://www.youtube.com/watch?v=R7922Pchiq4. So my camera and UI setup and everything is the same as that video, just in HDRP. So there is this image that I suppose I am rendering to, and if I disable the canvas that it is on I can see the Naninovel character I think.

idaot
support
Posts: 262
Joined: 01 Aug 2020 08:25

Re: New to Unity. New to Naninovel. 3D Character Implementation

Post by idaot »

It sounds like you're trying to achieve a lot at once. If you're new to both Naninovel and Unity (I get you, I was in a similar position last year) then I recommend breaking it up in small tasks and making sure you get one task working before you move onto the next task. That way you'll be able to spot issues more easily.

Elringus recently made a generic character example project, I recommend checking it to get a feel for how generic characters work: https://github.com/Naninovel/GenericActor

OldScratch
Posts: 7
Joined: 07 Feb 2021 02:47

Re: New to Unity. New to Naninovel. 3D Character Implementation

Post by OldScratch »

idaot wrote: 15 Feb 2021 13:56

It sounds like you're trying to achieve a lot at once. If you're new to both Naninovel and Unity (I get you, I was in a similar position last year) then I recommend breaking it up in small tasks and making sure you get one task working before you move onto the next task. That way you'll be able to spot issues more easily.

Elringus recently made a generic character example project, I recommend checking it to get a feel for how generic characters work: https://github.com/Naninovel/GenericActor

I actually thought this was a pretty small task haha. I figured just getting to the point where I could talk to someone and their face would appear is a pretty good place to start. I had not noticed that example project for generic characters though. I am sure that will be helpful. Thanks!

Post Reply