2d cylinder

Started by
0 comments, last by arnero 7 years, 1 month ago

Hello,

I have to map a rectangle in 2d as it were an horizontal 3d cylinder. Can you give me some advice on how to get such effect? I think a fragment shader would be the best option.

Thank you

Advertisement

Why not write down the mapping as an equation like mathematicans have done for two-hundred years? Feed that into your programming language of choice (JS, python). (it is an in-jective mapping: so, if you later want a projection mapping back onto the 2d screen you will probably be on topic in this forum.

This topic is closed to new replies.

Advertisement