Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional camera with a render texture causes horizon line #658

Closed
KasperSeas opened this issue Sep 22, 2020 · 5 comments
Closed

Additional camera with a render texture causes horizon line #658

KasperSeas opened this issue Sep 22, 2020 · 5 comments
Assignees
Labels
Bug HDRP Underwater Anything to do with underwater shader
Milestone

Comments

@KasperSeas
Copy link

Describe the bug
Once a second camera is added with render texture, the horizontal line bug appears. This has been done in the main scene in the examples. I don't think this is related to #456 since render texture wasn't mentioned.

Screenshots / video
This is what the horizon line artifact looks like.
image (2)

These are components of the duplicated camera. Once the "ScreenProjectorRT" render texture is added, the line appears.
image (2)

Log
There are no warnings or errors

Versions
In Unity 2020.1.5f1, using HDRP 8.2.0, Crest Ocean System HDRP 4.5.0

To Reproduce
-You can reproduce this by duplicating the DemoCamera in the main scene in examples.
-Change duplicated camera output target display to Display 2 and Depth to 1
-Create and add render texture to duplicated camera's Target Texture.
-Remove Cam Controller and Lerp Cam scripts from duplicated camera
-Press play
-Go underwater add see the horizontal line

Platform

  • in Editor
  • Platform: win

Hardware
Processor: intel core i5-6600k
gpu: nvidia geforce gtx 1080

Additional context
none

@daleeidd
Copy link
Collaborator

Does it still happen if you remove the MainCamera tag from the duplicated camera?

@daleeidd daleeidd self-assigned this Sep 23, 2020
@daleeidd daleeidd added the HDRP label Sep 23, 2020
@KasperSeas
Copy link
Author

Hey deleeidd, yes it does still happen. It's not shown in the screenshot above but I just tried it rn

@daleeidd daleeidd added Bug Underwater Anything to do with underwater shader labels Dec 2, 2020
@daleeidd
Copy link
Collaborator

@KasperSeas sorry we haven't gotten around to this. Is it still an issue?

@psychoclast
Copy link

Yes, I'm having this issue too. I use a secondary camera underwater for a sonar effect.

@daleeidd daleeidd added this to the 4.16 milestone Feb 5, 2023
@daleeidd
Copy link
Collaborator

daleeidd commented Feb 5, 2023

Pretty sure this is solved with 4.16. It adds support for multiple cameras.

@daleeidd daleeidd closed this as completed Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug HDRP Underwater Anything to do with underwater shader
Projects
None yet
Development

No branches or pull requests

3 participants