Terrain terrain on Zoom

classic Classic list List threaded Threaded
2 messages Options
Johnson prem Johnson prem
Reply | Threaded
Open this post in threaded view
|

Terrain terrain on Zoom

Hi

Created mapnode by adding vertical scale effect like

VerticalScale *scaler = new VerticalScale();
scaler->setScale(5.f);
mapNode->getTerrainEngine()->addEffect( scaler );

when zoom in to the respective map tile, after some zoom level, the terrain is tearing as shown
in the attachment. It is also observed that without adding vertical scale, such tearing effect is unseen.



What needs to be done to avoid terrain tearing with vertical scaling?

Regards

gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Terrain terrain on Zoom

Short answer: VerticalScale never worked correctly and we removed it in 3.0 for that reason. It doesn't work because the shaders don't know about the scaled bounds and cannot cull properly.
Glenn Waldron / Pelican Mapping