Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Kurt Heuser

wraping a textbox around a cylinder

This topic is 5577 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

I need to wrap a textbox around the surface of a cylinder, so I can display a font of any type or size. I dont want to use bitmaps since the bitmap changes depending on the size of the diameter.. any and all help appreciated.. thank you in advance.

Share this post


Link to post
Share on other sites
Advertisement
Hi - have you considered first rendering the text that you want to wrap around your cylinder to a texture and then applying that texture to your cylinder?

This should be fairly easy to do --

1) define your texture as a render target
2) render the text to this texture

(you could use d3dxfont here; though it is slower than other methods, it might make sense for your application if you expect the font to change often).

3) render the cylinder using this texture

Hope this vague outline is of some use...

BM


Share this post


Link to post
Share on other sites

  • 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!