Sasha Posted September 10, 2016 Share Posted September 10, 2016 Hello. How can I create a text on this circle (http://www.babylonjs-playground.com/#SYAJK#0) and limit it's movement(only to left and to right)? As on here https://xboxdesignlab.xbox.com/en-US/customize/bumpers-triggers Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted September 11, 2016 Share Posted September 11, 2016 That is a multi step awnser, do you want the final product to be flat text in the 3D environment on the circle or 3D extruded text, aligned to a certain orientation on the circle? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted September 11, 2016 Share Posted September 11, 2016 For flat... um... dynamicTexture .drawText... (with a transparent background in the drawtext call)... set as the diffuseTexture on an un-capped cylinder's material. Cylinder is exactly as tall as the tallest capital letter of the text. Yeah. The cylinder will be transparent except where there is text... and the text will have the curve of the cylinder (match the circle). yeah! That's it. But extruded text? hmm. More difficult. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted September 11, 2016 Share Posted September 11, 2016 thats a slick solution wing Quote Link to comment Share on other sites More sharing options...
Wingnut Posted September 11, 2016 Share Posted September 11, 2016 Thanks p8! I suppose somebody should create a playground of this... to help the user more. But I am lazy this morning. I hope someone else will create it FOR us. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.