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
}
});
E
Eva
said
almost 7 years ago
Hi Chaima,
You can refer to the documentation here regarding and see how you can position 3D models on GeoLocation.
Thanks
W
Wetchachaima
said
almost 7 years ago
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
Wetchachaima