cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use an external URL HTTP Ressource for the .PVZ Files ?

Level 1

Is it possible to use an external URL HTTP Ressource for the .PVZ Files ?

Hello Community,

 

Is it possible to use an external URL HTTP Ressource for the .PVZ Files similar to Image URL links?

I have stored a sample coffeemashine PVZ file here:

http://files.net-online.de/cad/Caffee_Maschine.pvz

 

Is it general possible to use external URL ressources ?

 

According to

https://help.vuforia.io/studio/index.html#page/ThingWorx_Studio_Help_Center/Beginner_DynamicModelLoa...

I have tried to integrate a HTTP ressource, but this is not working

------------------------------------------------------------------------

$scope.populateModelList = function() {

  $scope.app.params.modelSelect = [

  {

    display: "Kaffeemaschine",

    value: "http://files.net-online.de/cad/Caffee_Maschine.pvz"

  },

  {

    display: "Local PVZ",

    value: "app/resources/Uploaded/lokal.pvz"

  }

  ];

}

$scope.populateModelList();

 

---------------------------------------------------------

Thanks in advance

 

Cheers

Timo

2 REPLIES

Re: Is it possible to use an external URL HTTP Ressource for the .PVZ Files ?

No,  the dynamic model loading that you're taking about, from the help page you linked to, only works with models that have been loaded as resources in your studio project.  Those models are uploaded to the experience service when you publish the project.  Thingworx View will download the model from the experience service as it's needed.

Re: Is it possible to use an external URL HTTP Ressource for the .PVZ Files ?

Yes, you can do it this way:

 

$scope.setComponentModel = function() {
var modelParams = {
    modelID: "model-2",
    modelURL: "http://urltoyour.com/file.pvz"
};
tml3dRenderer.setModelURL(modelParams, function(e){console.log(e)}, function(e){console.log(e)});
}

but I have a huge problem with downloading time for such a resource and I can't force it to play it's sequence.