Start a new topic

How to change the scale of Label positioned further than 20km away

How to change the scale of Label positioned further than 20km away


Hi,

I have some points I want to show on the Wikitude world, but the problem is that I'm testing with points that are further than 20km from my current position, so I can't see any Label in the screen.

I checked this post (http://forum.wikitude.com/es/home/-/message_boards/message/23386?p_p_auth=MZoPYO1c), but it's not clear about how to change the scale calculation of a Label.

Can anybody help me please?

Thanks a lot,

Marc

Hi Marc,

You may use "AR.context.scene.scalingFactor = 1" to disable distancebased scaling and show labels always in same size.

Please have a look at the Wikitude SDK 3.0 API references and Documentation.

Kind regards,
Andreas

 

Hi Andreas,

Thanks for your answer. I tried what you said, but Wikitude does not draw the points further than 20Km in spite of setting the scaling factor to 1. The points are not drawn neither in the wikitude screen nor in the radar.

Thanks,

Marc

Yes, in this case you need to adjust "AR.context.scene.cullingDistance"
The maximum distance at which objects are visible in the scene, in meters. If an object's distance to the user is further than the culling distance, the object will not be visible in the scen

Kind regards,
Andreas

It works :D Thanks a lot Andreas!
Login or Signup to post a comment