Author Topic: Possibly to download/display a mesh at runtime?  (Read 3788 times)

Offline Darkflame

  • int
  • **
  • Posts: 55
    • View Profile
Possibly to download/display a mesh at runtime?
« on: July 13, 2010, 05:00:02 pm »
Is it possible to download a mesh (say, OBJ or 3DS) at runtime and use this in a scene?

I assume you'd have to pre-download and then use it as a input-stream for Loader.load3DS, but I have no idea how to do this, or if its even possible.

Sorry if this has been asked before, btw, I tried searching but couldn't see anything.
Thanks,
Thomas

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Possibly to download/display a mesh at runtime?
« Reply #1 on: July 13, 2010, 10:24:47 pm »
Never tried it on Android, but in "normal" Java, you can simply get an InputStream from an URLConnection. Should be possible on Android too.

Edit: I think you have to allow the Activity to access the web before this is possible though.

Offline Darkflame

  • int
  • **
  • Posts: 55
    • View Profile
Re: Possibly to download/display a mesh at runtime?
« Reply #2 on: July 14, 2010, 02:21:30 am »
Oh, if thats the case, its much easier then I expected :)
I already gave my app internet permissions. (to stream the locations of some 3d objects to the field of view).

Thanks.