www and uploading a new object in the webplayer

Hello,…
I have the need of uploading different geometries in my scene at Runtime in the webplayer.
Now, I know there is the WWW class which allows me uploading an assetBundle…but what if I have any other geometry format like .3ds, .fbx ? and

I would like to know what happens exacly with I call:

var www = new WWW(url) ?

is URL anywhere on internet, if yes if I call

var www = new WWW(“http://localhost/geometry/my.fbx”);

can I upload the fbx file locally (client side) in the default data directory of the webplayer?
I am exploring various possibilities now before giving up and buying the license for PRO and using the assetBundles as apparently is the only way available.

Kind Regards,
Giancarlo

there is no default data directory for webplayers. they only talk to the WWW

but in case for models, you can’t do it at all unless you write own model parsers / buy one of the available ones, as models can’t be loaded from WWW, only asset bundles, textures, sounds and movies

models when put into a project are converted into an internal representation, they are not used in their dropped in form

Oh,… ok so I guess that the only way to do what I do really need to do is buying the PRO license and using the assetBuddles

You can load .OBJ models at runtime… here is a blog about it :

It seems ideal to me! :slight_smile: and I have all my stuff also converted in OBJ.

This is very much appreciated!
Giancarlo

Hi,

I actually used an OBJ file exported using GoogleSketch up which might use a slightly different OBJ format.
Do you mind if I send you a very simple OBJ model and see if you can upload it…as I keep getting this error message:

FormatException: Input String was not in the correct format.
where filename = “http://localhost/OBJECT.obj”

I’ve found the solution:
the OBJ exported by GoogleSketup is not compatible with that script. So, I used the same model exported by Blender, and it worked properly.

thank you very much!

Glad it worked out :slight_smile:

That site is well worth keeping an eye on! lots of useful stuff there, that chap sure knows his stuff :slight_smile: