setMarker3dModelWithRenderSizeUnit abstract method
- MapMarker3DModel model,
- double scale,
- LocationIndicatorMarkerType type,
- RenderSizeUnit renderSizeUnit,
Sets the MapMarker3DModel asset to be displayed as location indicator for a specified type.
The 3D model should be oriented with y axis up and thus standing on the x/z plane where the
z axis is the depth. The direction in which the location indicator is pointing is the
positive z axis. Please note that only MapMarker3DModel created from obj files are
supported. Models created from Mesh will be ignored.
-
modelThe MapMarker3DModel object to be displayed for the specified type. Only models created fromobjfiles are supported. Those created from mesh will be ignored. -
scaleA scale factor applied to the marker model. -
typeThe type of location marker for which the marker 3d model should be replaced. -
renderSizeUnitThe RenderSizeUnit specifying how the vertex coordinates of the 3D model are being interpreted. It specifies whether the 3D model is placed in world or screen coordinate space.
RenderSizeUnit.meters will make the 3D model use world coordinate space, meaning that it will change size together with the map when it is zoomed in and out. A simple 10 by 10 by 10 (in model space) cube will have a size of 10 by 10 by 10 meters in world space.
RenderSizeUnit.pixels makes the 3D model use screen coordinate space, meaning that it will have constant size on the screen regardless of how the map zoom changes. A simple 10 by 10 (in model space) rectangle will have a size of 10 by 10 pixels on the screen.
RenderSizeUnit.densityIndependentPixels is similar to pixels, but the resulting size will take into account the pixel density of the display, meaning that physical size on the screen will be approximately the same regardless of the size or resolution of the display.
Implementation
void setMarker3dModelWithRenderSizeUnit(MapMarker3DModel model, double scale, LocationIndicatorMarkerType type, RenderSizeUnit renderSizeUnit);