Home > other >  Unity can do 2 d image translation?
Unity can do 2 d image translation?

Time:09-20

Want to do with c # + Unity 2 d image display, the requirement is as follows:
1, at least two of the viewport, a large, according to local, a small display global;
2, everything is given priority to with translation, each visual mouth added something new from side, and two translation in the same direction,
3, occasionally thoroughly updated depending on the mouth,

Is from left to right, for example, two viewport translation, new contents are added on the left side, like a conveyor belt,
But when I cut to another scene, is not a translation, but the original things completely erase, show the new thing,

With DirectX 9 at present, it has no function of translation, so every frame completely regenerated, again to the graphics card, rendering,
But I don't think so, I can on the card translation, every time I just preach something new in it?

Checked DirectX9 document, didn't see this kind of usage, should be don't support,

I don't know the Unity support?
Also please playgrounds provide-reduced,

CodePudding user response:

The camera UI and image processing can realize these problems

CodePudding user response:

You can use the Material. The problem of SetTextureOffset try moving, do not need to be really moving images or camera, shows the global map, can try the RenderTexture, camera rendered image map to the map (UI)
You can search the use of the small map or RenderTexture

CodePudding user response:

Computer and don't know what call mobile
He only know updated frame buffer and draw
Do you mind movement does not exist

CodePudding user response:

Two viewport, so long as the two cameras, a local, rendering a rendering all, translation is two picture cycle from left to right, the coordinates of a figure to the left, from the right side of the picture
  • Related