Hey! It's completely possible to store meshes in a database and then transport them into Unity, either through using native C# sockets or the WWW class (by getting a php page or something like that to echo the binary BLOB data). You would however need to produce your own way of storing mesh information in a binary file (or produce your own decoder for a standard mesh file format like OBJ). As a minimum, meshes need:
- Vertex information. These are 3D coordinates of the points making the mesh, made up of 3 4-byte floats each.
- Triangles. This is a list of 4-byte ints which are the indices of the vertices in the above array.
You'd probably want texture information too and an actual texture, but all that depends on what you actually mean by a '3D object' :).
I'm currently making an MMORPG in Unity3D and as you might have guessed that's alot of content; all of which is streamed into the client (which is only 300kb) (including code, images, meshes, animations, audio,text etc). Anything can be streamed in; you've just got to produce a suitable binary format to do it in :)
↧