I have using a jQuery library to make a sample like moving the text on the 3D model (download the file below, extract and run the file index.html, drag the rectangle to see the result), this sample I make sample value with the value of size circle is 28 mm, the text size is 2.8 mm (this value to know how the height is it), the total text character is 14 with each character have the size is 1mm (this value to know how long the text is it). (I have used this site https://www.unitconverters.net/typography/millimeter-to-pixel-x.htm to convert mm to px to use for the width and height on the DIV of HTML), when I try to drag the rectangle in the circle to get the coordinates, but the coordinates not correct when using it to apply to the 3D model.
I have some problems:
- With the value I have taken for above example, I don’t know whether these values is taken correctly or not. I just guess based on testing progress on 3D model. The font size is always is mm on the 3D model?
- The size converts from mm to px may be wrong. It also makes the values of coordinates wrong too.
- I don’t know how the algorithm of the ShapeDiver to calculate the coordinates and render that on the 3D model. Because with the coordinates when I applied it into the 3D model is not the same result with the result of the rectangle on the circle in the example.
Thank you for reading and helping me.
textmoving.zip (35.0 KB)