# Converting a freeform line into a LOFTED 3d geometry during RUNTIME

 0 How do you convert a freeform line, drawn in 2d, into a 3d mesh somewhat like a loft geometry based on the path of the freeform line, but with custom cross-section (chosen prior, and based on another 2d closed-line-shape) ... during runtime! ;-) more ▼ asked Dec 21 '10 at 06:44 PM ina 3.3k ● 492 ● 551 ● 602 add new comment (comments are locked) 10|3000 characters needed characters left ▼ Viewable by all users

2 answers: sort voted first
 0 There is now an asset on the asset store that does exactly this and a lot more as well, http://www.west-racing.com/mf/?page_id=2208 it offers simple and complex lofts as well as the ability to clone objects onto the newly created loft surface. more ▼ answered Jun 21 '12 at 01:16 PM SpookyCat 436 ● 5 ● 5 ● 12 Hi Chris West! :) Jun 22 '12 at 05:20 AM ina add new comment (comments are locked) 10|3000 characters needed characters left ▼ Viewable by all users
 0 You can't in Unity. But you can in just about all 3D modeling applications. Start with 3ds Max. Here's an excellent tutorial on making a wine glass. And we all LOVE wine... right? http://www.pcguidelk.com/forum/index.php?topic=118.0 more ▼ answered Dec 21 '10 at 07:12 PM dissidently 450 ● 50 ● 55 ● 60 i meant to say loft. and yes i know how to create lathes and loft's in 3ds -- but i want to be able to do this in runtime in unity Dec 21 '10 at 07:15 PM ina Ok. It can be done in Unity. And anything with Vector information. You'll need to create an array that stores the information of all points on your free from line. You'll need to know where the loft point is (middle) and then you'll need to create another array with your points for your custom cross section. Now you need to goto university for a couple of years and study advanced trigonometry and some advanced mathematics. After that you should know the algorithms that turn those arrays and the lathe point into something you can apply the cross section to and get a predictable result. Dec 21 '10 at 08:11 PM dissidently Wanna do it as a loft, add another two years at university. Dec 21 '10 at 08:12 PM dissidently add new comment (comments are locked) 10|3000 characters needed characters left ▼ Viewable by all users
Your answer

### Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1366
x300
x123
x64
x2

asked: Dec 21 '10 at 06:44 PM

Seen: 1503 times

Last Updated: Jun 22 '12 at 05:20 AM