Jump to content
  • Advertisement
Sign in to follow this  
roccio

2d cylinder

This topic is 583 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!