3
\$\begingroup\$

I am new and Unity and I want to do a curved UI as if I project a canvas on a cylinder, a bit like this : picture Thing is, it is not that easy. I found this question and answer, but didn't manage to make it worked: I am stuck at stage 5 & 6.

In step 5 in don't understand the all step. I created a sphere which is center on my camera. This camera has a shader which flip the normal but the last part but I don't get this part "maps the assigned RenderTexture around its surface using latitude & longitude (equirectangular mapping)

If you have more details explanation or even a example scene I would be grateful.

I had export the package : https://github.com/QuentinACN/CurvedUI

\$\endgroup\$
10
  • 1
    \$\begingroup\$ The more detail you can give us about what you're trying to do (eg. the particular shape of the UI you want), and where you're stuck (what specifically about step 5 or 6 you don't understand or need help with), the better we can target answers to what you need. \$\endgroup\$
    – DMGregory
    Aug 30, 2018 at 14:25
  • \$\begingroup\$ Well I am trying to do a curved UI as if I project a canvas on a cylinder, a bit like this : l3apq3bncl82o596k2d1ydn1-wpengine.netdna-ssl.com/wp-content/… In step 5 in don't understand the all step. I created a sphere which is center on my camera. This camera has a shader which flip the normal but the last part but I don't get this part "maps the assigned RenderTexture around its surface using latitude & longitude (equirectangular mapping) \$\endgroup\$
    – Quentin M
    Aug 30, 2018 at 14:30
  • \$\begingroup\$ Can you give us more info about what you mean "I am stuck"? Did you not understand something? Do you not know how to do something? The more details you give, the more information we have to help you. Add the new info in your question (instead of in comments) \$\endgroup\$ Aug 30, 2018 at 14:30
  • \$\begingroup\$ That part of step 5 just means that the texture is displayed on the mesh the way you want it. In my example, I wanted to wrap the texture around the sphere using the x coordinate as longitude and the y coordinate as latitude. In your example for a cylinder, the default UV unwrap on the cylinder is probably all you need. Does it not look the way you want yet? \$\endgroup\$
    – DMGregory
    Aug 30, 2018 at 15:00
  • \$\begingroup\$ I think I don't get the way I want cause I juste wanted to reproduce what you have done but without success. \$\endgroup\$
    – Quentin M
    Aug 30, 2018 at 15:10

0

Browse other questions tagged .