Start a new topic

AR.Model on absolute GeoLocation(Not relative) problem

AR.Model on absolute GeoLocation(Not relative) problem


I am having a similar issue. Has anyone figured out how to resove this issue?

I can display the globe in relative location, but when I switch to geoLocation ...the model still appears at my relative location.

Thanks.

Hi Micah,

When you switch to GeoLocation do you change the values of the parameters to a place that is located somewhere close to you? Didn't this post help you?

Thanks

Yes I put that actual lat and long parameters.  It still appears relative to my location.  The 'scale' function works, and the model appears....just not in the coordinates I input into AR.GeoLocation.

Here is the code I have (its just simple adjusment from the downloaded example '3dmodelatgeolocation'.

/*
First a location where the model should be displayed will be defined. This location will be relativ to the user.
*/
var location = new AR.GeoLocation(-86.768699, 36.152880);

/*
Next the model object is loaded.
*/
var modelEarth = new AR.Model("assets/NissanStadium.wt3", {
onLoaded: this.worldLoaded,
scale: {
x: 0.3,
y: 0.3,
z: 0.3
}
});

var indicatorImage = new AR.ImageResource("assets/indi.png");

var indicatorDrawable = new AR.ImageDrawable(indicatorImage, 0.1, {
verticalAnchor: AR.CONST.VERTICAL_ANCHOR.TOP

 

Hi,

Does this forum thread help you:

https://support.wikitude.com/support/search/topics?term=ios+ipad2+geolocation

Greetings

Nicola

Hi,

I am new to Wikitude and was trying to modify the Example MultiPois.JS in the sample so that it works with one of the 3D model provided in the sample..

Instead of the display of the Labels, i modify the Marker.JS so it is now loading the AR model as show in the code below.

I test with just first limiting to 5 GeoLocation in case its too heavy loading 20 of them but I still have issues seeing the 3D Model.

I have searched the Forum and it is working using the RelativeLocation GeoLocation only, is using absolute GPS location not recommended for loading 3D Model?

Thanks

 

CODE:

    this.modelEarth = new AR.Model("assets/uranus.wt3", {

                                  scale: {

                                  x: 0.1,

                                  y: 0.1,

                                  z: 0.1

                                  }

                                  });

     

    // create the AR.GeoObject with the drawable objects

    this.markerObject = new AR.GeoObject(markerLocation, {

        drawables: {

            //cam:

            cam:

        }

    });
Login or Signup to post a comment