Skip to main content
Notice removed Canonical answer required by CommunityBot
Bounty Ended with Seyed Morteza Kamali's answer chosen by CommunityBot
Tweeted twitter.com/StackGameDev/status/1164462345705394176
Notice added Canonical answer required by Saad Anees
Bounty Started worth 50 reputation by Saad Anees
Cleanup & tagging
Source Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401

Seamless Shader of Multiple Pictures in Unity2D wrap-around effect

I am trying to show multiple images on a grid system which are randomly generated and the grid is moving from right to left. And what

What my client wantwants is when a part of a picture goes away fromoff the viewpointleft edge of the viewport, it should appearstart to peek in from the next frame (on right side). The reference, similar to the image is shown below:

enter image description hereDiagram of coloured squares. Squares that are cut off by the left edge of the view correspond to edges of squares visible on the right edge

If youYou can see the red and blue images areeach represent the same oneobject. When they go away fromoff the viewport endleft edge of the screen, it appears at startthey appear the right edge. But itIt should be seamlesshappen seamlessly, not like its immediatelywithout a sudden "pop" appearing out of nowhere.

I think it can be done via a shader, but ImI'm not a shader programmer so any help would be appreciated. Thanks.How can I achieve this effect?

Seamless Shader of Multiple Pictures in Unity

I am trying to show multiple images on a grid system which are randomly generated and the grid is moving from right to left. And what my client want is when a part of a picture goes away from the viewpoint it should appear to the next frame (on right side). The reference image is shown below:

enter image description here

If you can see the red and blue images are the same one. When they go away from the viewport end, it appears at start. But it should be seamless, not like its immediately appearing.

I think it can be done via shader but Im not shader programmer so any help would be appreciated. Thanks.

Seamless 2D wrap-around effect

I am trying to show multiple images on a grid system which are randomly generated and the grid is moving from right to left.

What my client wants is when a part of a picture goes off the left edge of the viewport, it should start to peek in from the right, similar to the image shown below:

Diagram of coloured squares. Squares that are cut off by the left edge of the view correspond to edges of squares visible on the right edge

You can see the red and blue images each represent the same object. When they go off the left edge of the screen, they appear the right edge. It should happen seamlessly, without a sudden "pop" appearing out of nowhere.

I think it can be done via a shader, but I'm not a shader programmer. How can I achieve this effect?

Bumped by Community user
Source Link
Saad Anees
  • 324
  • 3
  • 14

Seamless Shader of Multiple Pictures in Unity

I am trying to show multiple images on a grid system which are randomly generated and the grid is moving from right to left. And what my client want is when a part of a picture goes away from the viewpoint it should appear to the next frame (on right side). The reference image is shown below:

enter image description here

If you can see the red and blue images are the same one. When they go away from the viewport end, it appears at start. But it should be seamless, not like its immediately appearing.

I think it can be done via shader but Im not shader programmer so any help would be appreciated. Thanks.