A few questions about sprites in Visual Novel framework

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
lostmushroom
Posts: 206
Joined: Mon Jul 01, 2019 1:21 pm

A few questions about sprites in Visual Novel framework

Post by lostmushroom »

Hey Tony, just some questions about getting sprites to look correct in the VN.

I noticed that if background images aren't 16:9, they get squashed or stretched. Is there a way to avoid this?

Is it possible to animate backgrounds? I made some of mine larger than 16:9 so they can pan or zoom.

I think I asked this a while ago but didn't get round to figuring it out - what's the best way to make sure character sprites are displaying at the right size and ratio? I have a lot of differently sized characters and for now I just put them all on the same sized sprite - but that's adding a lot of empty transparent space that could possibly be avoided.

Thanks :)
lostmushroom
Posts: 206
Joined: Mon Jul 01, 2019 1:21 pm

Re: A few questions about sprites in Visual Novel framework

Post by lostmushroom »

One more thing - I'm wondering if it's possible to have a post processing volume affecting the backgrounds and characters. I'm not sure if there's an straightforward way to do this since it's all under one canvas with an Overlay render mode.
User avatar
Tony Li
Posts: 22886
Joined: Thu Jul 18, 2013 1:27 pm

Re: A few questions about sprites in Visual Novel framework

Post by Tony Li »

For post processing, you'll need to switch the canvas's Render Mode to Screen Space - Camera, and assign the camera to it. Then add Post-Process Layer and Post-Process Volume components to the camera.

To preserve size and aspect ratio, you can tick the subtitle panel's StandardUISubtitlePanel component > Use Portrait Native Size checkbox. If you're only concerned about aspect ratio, inspect the Portrait Image and tick the Image component's Preserve Aspect checkbox.
Post Reply