Hey guys wondering if someone can give me some guidance on this project.
Basically I need to have;
- interface where a user can choose a font (from pre determined font sets) and input a text string
- This text is then displayed engraved on a ring (jewellery)
I’m not sure the best way to achieve this or if there is a module somewhere that does similar.
My best guess would be to
- using mathematics (sin, cos) to be able to plot the oval (where the text need to be displayed on the ring) on an imaginary graph.
- From here there will be a centre , start and end point. The text will need to be limited as it will eventually following the curve of the ring until it can’t be see as it is masked by the angle of the ring
- If using dynamic font then the width of each letter should be possible to obtain with AS.
Then mathematically it should be possible to determine how far away from the centre point on the oval each letter is. - Following this, dependant on the letters distance from the centre, transformations can be applied to each letter. IE stretch, skew and an emboss filter via the convolution filter.
- Hence this will provide the illusion that the text is following the curve of the ring and the look like it is engraved via the emboss.
Other options I thought of was the have set positions for each letter.
Each position on the oval would require different transformations.
Then for each position, for each font, for each letter, an image could be made up representing how the letter should look at that position.
Then it is just a process of arranging them on the oval.
However this way is not very smart and is still a lot of work.
Is there a better way of doing this?
Any suggestions?
Any premade moules?