Jump to content
  • Advertisement


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

Kurt Heuser

wraping a textbox around a cylinder

This topic is 5663 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
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...


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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!