- Home /
How to create a 3D object (terrain) using imported data (CSV, txt)?!
Is it possible to have a 3D array describing an object's shape and import it to Unity?! What is more important is that the 3D array is constantly changing and it is required that Unity reads this file constantly and change the generated model accordingly. Any help is highly appreciated.
Please note that the 3D array could be as simple as an CSV file! Thank you.
Answer by Julian-Glenn · Jul 18, 2010 at 05:31 AM
Here are some examples of procedural mesh creation And here is the documentation for the Mesh class used in the examples. As far as reading in the values for the triangle arrays here's some info on reading text data in Unity You could also store the values in a mySQL table and use say, PHP for example to get the values. Not sure if this exactly what your after but it should help :)
to your answer. Julian Can you answer this please? Thanks. http://answers.unity3d.com/questions/15745/checking-for-last-hit-and-changing-$$anonymous$$ms
Answer by Rez · Jul 19, 2010 at 08:52 AM
Hi Julian,
Thanks for your useful comment. I have looked at the links you sent. I have now got a code which can access a locally stored text file. I still have to do a lot to get the code parse the text. The end goal is to read a CSV file, store the values (which are infact X,Y,Z locations) possibly in an array and then draw it on the scene. Ideally I want the the vertexes (points) to be joined together. Any suggestions on both parsing and drawing?!
Thanks.
Your answer
Follow this Question
Related Questions
Importing exernal fbx into game? 1 Answer
Torus imported from maya not showing 0 Answers
Where Can I Download Pre-made 3D Models? 14 Answers
Imported Blender Models Issue 1 Answer
Objects without Textures... 3 Answers