Hi friends, can i charge a model FBX on fly?
Thanks.
Hi friends, can i charge a model FBX on fly?
Thanks.
Unity doesn’t stop you from reading/writing files so there is no reason you couldn’t, but there is no built-in functionality to do that so you would need a plugin in that can write .fbx and read .fbx into its vertex data. That’s on a standalone.
In the webplayer you have security sandbox issues to worry about, but thats true for almost all io on the web.
As one who has written on-the-fly importers, I would say the short answer is ‘yes’ but you either need to code it yourself of find someone to do it. Creating the meshes and textures at runtime is not hard. If you do accomplish this, please post the code (Asset Store) so others may benefit as well.
Normally, a file format is published. This is nice. Then anyone can read/write files. That’s why I chose X3D. FBX is apparently a closed spec, and Autdesk would like you to use their SDK to read/write that format. I don’t known why it couldn’t be adapted to Unity for run-time FBX - Wikipedia Perhaps someone has decoded the format and posted a bootleg spec? Or you could reverse-engineer it yourself.
Soapbox: Closed formats should be avoided. Open formats should be embraced. Collada was made for this. X3D was made before that and includes more types of assets.
Do you have to use FBX? There are some OBJ importers on the script wiki and Asset Store. My X3D importer is not ready for prime-time but may later this year. 3DS ascii wouldn’t be too difficult to code.
FBX is a 3D fileformat. Many 3D editors/modelling tools are able to export in this format.
When you drop a FBX file into Unity3D editor, it automatically parses the input, generates Unity fileformat etc.
If this was to be on-the-fly, one would need to code that converter himself. Its not a small task, but could be done. Problem is that Unity compiles/assembles their own datastructures within a .Unity3d file so you would need to make your own loader too and then build up the mesh structures in your own way.
Another problem would be the amount of included textures, materials, bones etc. from the .fbx file.
So a short answer is: NO
But if you are stubborn enough or want to build another Second Life, then you need to consider if you really need Unity3D framework/packaged. It might be faster to begin from scratch.