- Home /
compute the position of textObj in captured screenshot
I have placed text object in Scene and moving camera to designated target points to capture the textobject from various camera positions. Each time, the camera will move to a particular point (sphere location) and take screenshot. I am trying to find the bounding box of textobject in each screen capture (2D image). I have followed the various ideas from unity forum and computed bbox. Each time BBox is not aligned to the screen. Steps I have followed so far 1. Loop through each vertices of textobject mesh and find the worldToscreenpoint 2. Find the min and max of vertices to determine the bounding box.
I have attached my failure scenario. Any guidance, to this problem is highly appreciated.
Your answer
Follow this Question
Related Questions
Issue with checking to see whether the Bounds value's of two game objects equal each other 1 Answer
Is there a way to get access to the mesh geometry in a TextMesh? 1 Answer
How do I change a TextMesh's Offset Z value in JavaScript? 1 Answer
How can I achieve advanced text effects? 1 Answer
Using Text Mesh to display instructions, story, etc. 0 Answers