DIR Return Create A Forum - Home
---------------------------------------------------------
Mobile AR Framework Support Forum
HTML https://mobilear.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Outdoor AR Library
*****************************************************
#Post#: 23--------------------------------------------------
3D camera view
DIR By: alia
Date: February 4, 2013, 8:05 pm
---------------------------------------------------------
Hi all,
I realized that the 3d object view is really small when the
distance is more than 100 m. how can i change the setting to
make at least the 3d object still can be seen in 1-2 km from
user current location?
ive change the below code in OAARViewComponent.java
@Override
public void updatePose(TrackerEvent event) {
//Use the sensor manager to send sensor events to the GL
surface for orientation and location.
if(event.getEventType() ==
TrackerEvent.EVENT_SENSOR_ORIENTATION){
if(enableCameraOrientationTracking)
camera.updateRotation(event.getQuaternion());
} else if(event.getEventType() ==
TrackerEvent.EVENT_SENSOR_LOCATION){
//gpsInitialised = true; deprecated
bufferCoords.setLatitude(event.getPosition().getLatitude() -
0.00024);
bufferCoords.setLongitude(event.getPosition().getLongitude()
- 0.00024);
camera.setGeoLocation(bufferCoords);
}
}
thanks!
#Post#: 24--------------------------------------------------
Re: 3D camera view
DIR By: hitlabnz
Date: February 6, 2013, 9:59 pm
---------------------------------------------------------
Hi Alia,
The Outdoor AR library is designed to show 3D models in actual
scale in the real world.
Hence, it doesn't really shows far away objects unless it is
really, big enough.
Moreover, it does cull out the objects further away, as well.
One trick you can try is to scale the geo-locations relative to
the user's geo-location.
For this, you'll have to maintain the original lat/lon
coordinates of the scenes,
and when the user position is updated, you scale the lat/lon
coordinates of the scenes relative to the user's position.
Hope this tip helps.
*****************************************************
Page 1 of 1