#Water Reflection

1 messages · Page 1 of 1 (latest)

nocturne moss
#

Hey everyone, can someone go with me to voice to help fix my problem? I have a water reflection and it works perfectly when only one person and one camera are on scene; however, when the screen splits into 2 and there are two cameras reflection of water is broking and for some reason first camera of player is working as reflection for second camera and in other direction
Изображение
i just dont sure if its posible to make it in chat

cursive hemlock
#

so you are working with reflection probes i assume

cursive hemlock
stone ore
#

It looks to me like the depth buffer of one camera is getting reused by the other camera.

#

that's why the railing of player 1 is "blocking" the water for player 2, and vice-versa

#

How are you doing split-screen rendering?

nocturne moss
#

with rent

#

if (count == 1)
{
cam.rect = new Rect(0, 0, 1, 1);
}
else if (count == 2)
{
// Correct logic for two players side-by-side
cam.rect = (i == 0)
? new Rect(0, 0, 0.5f, 1) // Left side
: new Rect(0.5f, 0, 0.5f, 1); // Right side
}

#

i m using this, i thought it was a asset problem but now i understed that this is unity problem

nocturne moss
cursive hemlock
#

it is not a problem it is normal you are using 2 cams and one of them uses the reflections etc as Fen said

nocturne moss
#

yea i see it, but i have no idea how to fix it

#

i saw that some guy in google made something with depth as Fen said

stone ore
#

I would've expected the problem to only appear for player 2

#

rather than going both ways

#

can you show your current camera settings in the inspector?

nocturne moss
#

sec

#

after i turned off depth settings it came good

#

is itgoing to like create porblems in future if i just keep it off?

stone ore
#

what did you change?

#

show me a screenshot of it

nocturne moss
#

sorry, i turned off pc

#

u see that Depth Texture -> use setting from …

#

and there i put off

cursive hemlock
#

and now it would be interesting to see the rp settings

nocturne moss
#

what is rp?

cursive hemlock
#

render pipeline

nocturne moss
#

as i understood, depth texture rendering like depth shaders like for fog and etc

stone ore
#

I'd expect turning that off entirely to cause problems

nocturne moss
#

and if 2 cameras working that depth just come over each other

nocturne moss
#

so i dont think that it will be a problem

stone ore
#

I'm not sure. I feel like you should be able to correct this without turning off the camera depth texture

#

But I don't see anything obvious when searching for people with your problem

nocturne moss
#

i just made some investigations, and ai’s and people say that this cost as i said before shaders and split screen for two gamers is not madeable with both depth texture on

#

you cam change like depth for both cameras and they will work