1 (edited by sf.petru 2016-02-23 05:11:48)

Topic: Drawing not showing corectly with elevation

Hi, I have many polygons that have invisible corners when i try to display them and using elevation.

Picture attached.

Example:
[
            25.703806054376393,
            44.53245327694106
          ],
          [
            25.703804693034506,
            44.53244372481203
          ],
          [
            25.703737365876005,
            44.532447852385324
          ],
          [
            25.70369245260592,
            44.53241869185757
          ],
          [
            25.703668498482624,
            44.532403139310425
          ],
          [
            25.7036291699531,
            44.53240669801435
          ],
          [
            25.703625073949034,
            44.53237745085631
          ],
          [
            25.70361775362749,
            44.532325180666255,
            0
          ],
          [
            25.703689573505923,
            44.53232033204781,
            0
          ],
          [
            25.70374618547291,
            44.53231651009466
          ],
          [
            25.703806333133866,
            44.53235837846979
          ],
          [
            25.70393934106813,
            44.532345123402045
          ],
          [
            25.704015680368517,
            44.532195550804424
          ],
          [
            25.704125823257158,
            44.53211161773481
          ],
          [
            25.703988520644465,
            44.532105020385906
          ],
          [
            25.703939276573184,
            44.53215005664679
          ],
          [
            25.703796773422933,
            44.53214431984583
          ],
          [
            25.703802498089637,
            44.53204405852175
          ],
          [
            25.703894027998327,
            44.53204804279978
          ],
          [
            25.70389505134437,
            44.53204138052475
          ],
          [
            25.70416622616025,
            44.53205379779829
          ],
          [
            25.704166270281014,
            44.53204819735022
          ],
          [
            25.70419279220568,
            44.53204824784729
          ],
          [
            25.704210766731286,
            44.53206151765937
          ],
          [
            25.704238359939996,
            44.53208150979637
          ],
          [
            25.70424146909448,
            44.5322050647938
          ],
          [
            25.704256858466724,
            44.53222137874446
          ],
          [
            25.704209548539055,
            44.53228255509981
          ],
          [
            25.704185270298844,
            44.53233323369645
          ],
          [
            25.704174669546884,
            44.53236601818057
          ],
          [
            25.70417045245381,
            44.53240000525724
          ],
          [
            25.70417427800096,
            44.53242071012687
          ],
          [
            25.704176032096093,
            44.532430203747076
          ],
          [
            25.703971183012882,
            44.532439766150276
          ],
          [
            25.703970304069355,
            44.5324285067816
          ],
          [
            25.70390046960213,
            44.53243358118934
          ],
          [
            25.703901779117437,
            44.53244599767316
          ],
          [
            25.703806054376393,
            44.53245327694106
          ]

Thank you

Post's attachments

Attachment icon Clipboard02.jpg 16.82 kb, 107 downloads since 2016-02-23 

Re: Drawing not showing corectly with elevation

Hello

Unfortunately, I was unable to reproduce the problem.
Script and screenshots attached.

Post's attachments

Attachment icon img1.png 140.79 kb, 115 downloads since 2016-02-23 

Attachment icon img2.png 261.94 kb, 124 downloads since 2016-02-23 

Attachment icon TestDrawingAPIWithElevation.cs 4.42 kb, 168 downloads since 2016-02-23 

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Drawing not showing corectly with elevation

Hmm. May have sent the wrong polygon - i'm displaying a lot of them nowadays. I'll check when i get back home.

But the problem is there, only smaller. See how your polygon isn't closed? in img2.

This behaviour happens to me with lines too. There are portions that do not show and they flicker a lot.

Re: Drawing not showing corectly with elevation

Bug fixed.
The new version is already available through the built-in update.

Post's attachments

Attachment icon img1.png 286.28 kb, 118 downloads since 2016-02-23 

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Drawing not showing corectly with elevation

Ok, no idea what i had wrong in my scene, but making a new scene solved it.

One question tho. I can't seem to manage to fill the polygon with a color. Any idea why?

Re: Drawing not showing corectly with elevation

Unfortunately, you can not use filled polygons for tileset.
This is due to the problems of complex surfaces triangulation.
For example, if there is the intersection of lines or polygon is splits into several parts on the boundary of map.
We wrote about this in «Documentation / Troubleshooting / Known issues».

We will try to do it again, but I can not promise that it will be successful.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Drawing not showing corectly with elevation

Makes sense. The more I looked into it the more complex seems it would be. The only option I can think of would be a binary operation between the map mesh and something like the mesh of the walls of a building shaped like a polygon, with the top points over the mesh and the bottom points under the mesh. Something like a cookie dough cutter. I'll look into it myself.

One question, because it's been driving me nuts. In the previous scene I managed to make the buildings cast shadows on the ground. I have one directional light. I have increased shadow distance to a big amount, the buildings cast shadows on each other, but not on the ground. And I can't remember for the life of me what I did in my previous scene.

Re: Drawing not showing corectly with elevation

Use «Online Maps Tileset Control / Materials & Shaders / Tileset Cutout Shader».

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Drawing not showing corectly with elevation

Hello.

We found a way how you can have filled polygons in tileset.
This feature is experimental and much slower than the default drawing.
We added the ability to draw on tileset in front overlay.
Example attached.

Please update Online Maps to the latest beta.

Post's attachments

Attachment icon TestDrawingAPIWithElevation.cs 5.58 kb, 162 downloads since 2016-02-25 

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.