- Home /
Converting a freeform line into a LOFTED 3d geometry during RUNTIME
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! ;-)
Answer by SpookyCat · Jun 21, 2012 at 01:16 PM
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.
Answer by dissidently · Dec 21, 2010 at 07:12 PM
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?
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
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.
Wanna do it as a loft, add another two years at university.