Get Started         Best Practices         Developer Guide         FAQ        
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Collada support cordova

Rahul Sep 08, 2017

Hi,
I want to use .dea file to display in AR.
Below is my code.
Every time I run this the application crashes.(I am using cordova for application)


CraftARContent.create3dModelContentWithPath("Drachen_1.0_dae.dae",{"type":"3dmodel","model_texture_1":"textures/","uuid":"##My UUID number##"}, function(content3d){
content3d.wrapMode=CraftARContent.CRAFTAR_TRACKING_WRAP_ASPECT_FIT;
content3d.attachTo(item);
CraftARTracking.addItem(item, function(){
CraftARTracking.startTracking();
},function(err) {
alert("Error adding AR item: " + err.errorMessage);
CraftARSDK.startFinder();
});
});


( Agent )
Luis Martinell

Sep 08, 2017

Hi,

You need to pass the path to the file stored in the res/raw folder. You can see how we do it here:

https://github.com/Catchoom/craftar-example-android/blob/master/craftarexampleandroid/src/main/java/com/catchoom/craftarsdkexamples/ARProgrammaticallyActivity.java#L152

Best regards,
Luis

0 rated

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Couldn't find what you were looking for?

support@catchoom.com
https://cdn.desk.com/
false
catchoom
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete