I’m looking for a way so that you can point a game in the web player to import/load up a model into the scene from a web directory. Can this be done?
For .obj files, you can use this.
–Eric
This looks good, thanks Eric. Is there no inbuilt way then to import models universally (.c4d, .cad, .max, etc)?
No…you can potentially use AssetBundles if you have Unity Pro, but they have to be built in Unity and can’t just be arbitrary models. Even the Unity editor can’t import .c4d, .max, etc. files, but opens the appropriate app in the background and makes it export to .fbx. (The .fbx import capability isn’t present in runtimes, only in the editor.)
–Eric
What I wanted to achieve was to couple the Web Player with an upload page, so that users on a web page could upload a model and theen see it appear in the game… is this possible? Thanks for the help ![]()
Sure, if the models are .obj format and you used ObjReader.
Any other format you’d have to write an importer for.
–Eric
Okay cool Eric, thanks for the info ![]()
I might be missing something, but how would this work on Unity webplayer, doesn’t this prevent access to local file system?
You load them from the web rather than locally.
–Eric
you can provide an upload through AJAX or Iframes and have it upload the file onto your web server, then turn right around and download it back using Unity.
I had contemplated making Unity into my own 3d content application where anyone could just go to my web site, throw in a few points and build some stuff. Then have it store it where others can see and play with it. But 3ds Max is WAAAYYY easier than building my own 3d app… lol