#Camera space canvas not showing with an RT cam

1 messages · Page 1 of 1 (latest)

summer shard
#

https://www.youtube.com/watch?v=WKTZgf7ZDGs&list=WL&index=13
I'm using this tutorial to create a really cool effect, but i want to render my UI like that too, so Im thinking using a camera to see the UI canvas and then sending in through the raw image so making it filtered like that, but it doesnt work

shut lantern
#

I'd like to mention that there's a new likely better way to do pixelation
In your URP asset you can decrease Render Scale with Nearest-Neighbor as the upscaling filter to get the same effect
It's more performant because it skips the need to render the RT texture as a raw image
And it's easier as it doesn't need setup and the render scale can be changed on the fly without requiring any recalculation or asset swapping on your part

#

That method also requires a screen space camera canvas to work with UI, and post processing should be enabled on the camera

summer shard
#

the 2nd one is before and the 1st one is after

summer shard
shut lantern
shut lantern
# summer shard Thanks, but it feels really noisy compared to the prev one, any tips?

Make sure you're not mixing the two methods
If you change render scale, you don't need the raw image or the RT camera at all
Camera AA and urp asset AA settings make a big difference to the appearance of the image particularly when using decreased render scale
So I suggest be mindful how you mix different AA methods
They generally should reduce noisiness but may conceal other problems
In this case I think there's something off with your ground materials or textures

#

As there's some moiré patterns visible in both examples

#

It'd help to see the material properties and texture import settings for the ground

summer shard
summer shard
#

This is my UI canvas

shut lantern
# summer shard This is my UI canvas

Plane distance needs to be lowered, as that's how far from the camera the UI will be rendered
I'd try 1, or if that seems to clip to nearby walls, then 0.1 or 0.05

summer shard
#

I set it at 0.3 and I still cant see it for some reason

#

Yea, 2 doesnt show anything either, I dont know why

shut lantern
summer shard
#

It isnt excluded, culling mask is everything

summer shard
#

If it helps, this is my main camera

shut lantern
#

You should be able to focus the camera space UI in scene view and zoom into it to visually confirm it is in front of the camera
If that reveals no issues I'd do a quick test with a new camera and a new camera space canvas, perhaps in a new scene, to confirm you can get it working

#

Doing that tends to reveal whether the error is in the setup of the current scene and components, or the steps you are trying to set up the camera space UI

summer shard
#

It is in front, so should i just try to use a new UI camera for that at first?

shut lantern
summer shard
#

Okay, i will

shut lantern
#

If the simple test still doesn't work, that strongly indicates there's a human error in the process and it'll be simpler to find the problem
If the test succeeds, that means something in the setup of your player character is preventing it from working

summer shard
#

Test succeeds, so that's good

shut lantern
summer shard
#

Huh

#

You think my camera is set up wrong?

#

I have 2 cameras, a main and a weapons camera, weapons camera is an overlay with higher priority with only weapons culling mask and main cam is just a main cam

shut lantern
#

I don't know of a reason why that'd be a problem but I'd try without the overlay camera anyway

summer shard
#

Nah yea nah, it doesnt work

shut lantern
#

Could catch exactly at which step it breaks
Or maybe it won't

summer shard
#

Wait, what do you mean?

shut lantern
# summer shard Wait, what do you mean?

You now have a test setup with a camera and a camera space UI that works, if I understand correctly
But it doesn't have the setup for pixelation or for your viewmodel overlay camera
So instead of trying to make the camera space UI work with your initial setup, you have the option to implement the pixelation and viewmodel for the test camera

#

If that process fails, you'll know exactly when
If it succeeds, you'll have what you needed originally

summer shard
#

Ohhhh smart

#

Yeah no, it fails

#

I dont know if its about having 2 canvases

shut lantern
# summer shard

Having 2 canvases is the way to go
The overlay canvas should be able to display the raw image even if there are "no cameras rendering"

summer shard
#

Huh, I have no idea why it wont work then

#

It might have to do something with the texture

#

maybe

shut lantern
summer shard
shut lantern
summer shard
shut lantern
#

I mean go in Play mode, then view the RT texture in inspector

#

RT textures don't always update unless the game is running

summer shard
#

Oh yeah yeah thats what it shows

summer shard
shut lantern
#

I see
That implies the RT camera isn't working regardless of anything to do with the canvases

summer shard
#

Huh, i reckon that helps a bit

summer shard
#

Yeah no yeah, i've tried everything this sucks

summer shard
#

Camera space canvas not showing with an RT cam

summer shard
#

HEYY!! I FIXED IT

#

I DID IT