Start a new topic

using 3D (.wt3) model instead of an image

using 3D (.wt3) model instead of an image


i'm trying to customize cordova sdk to use it in my application.

my application goal is similar to 4_PointOfInterest_4_SelectingPois but instead of using images i want to use 3D Models

how can i do this?

i want to change this:

// Create an AR.ImageResource for the marker idle-image

World.markerDrawable_idle = new AR.ImageResource("assets/marker_idle.png");


to something like this: 

World.markerDrawable_idle =   new AR.Model("assets/car.wt3", {

scale: {

x: 0.045,

y: 0.045,

z: 0.045


translate: {

x: 0.0,

y: 0.05,

z: 0.0


rotate: {

roll: -25




Hi Chaima,

You can refer to the documentation here regarding and see how you can position 3D models on GeoLocation.


hi Eva,

thank you for your quick reply.

at the first i think that this is the solution but when i get into the code i find that those are not a 3D Models (.wt3) but they are just PNG images with animation.

my goal is to show some 3D Models like the red car in random places.

i hope you undestand what i want :) and thank you very much for helping


Best Regards,


Hi again,

That was my fault. Please have a look at this documentation and this forum post.


thank you very much Eva for helping me.

i use that case and i get to show many 3D Models even in the same AR screen ^^  and this is the code that i used

for (var i = 0; i < numberBalls; i++)


var randomNumber = Math.floor(Math.random() * 21) - 10;

var obj = new AR.GeoObject(new AR.RelativeLocation(null, randomNumber, randomNumber, 5), {

           drawables: {

              cam: ,




obj.onClick = function(object) { alert("+100");




thank you very much



Best Regards,

Chaima Wetcha


Hi again Eve 

i try to add a click event for each Object but it seems like the action is added only for the last object as i add the click event into my loop.

So how can i add a click event for each one and thanks 
Login or Signup to post a comment