melowntech / vts-browser-js

JavaScript WebGL 3D map rendering engine
BSD 2-Clause "Simplified" License
218 stars 42 forks source link

How to draw mesh using points in navigation co-ordinate system and physical co-ordinate system in vts-browser-js. #197

Open SukanyaGavhane opened 3 years ago

SukanyaGavhane commented 3 years ago

NavCoordinateData.txt PhyCoordinateData.txt

I have tried to draw mesh points in the navigation coordinate system and physical co-ordinate system but I am not able to do it. for this, we have referred the obj importer code but the draw methods of that are not working for us in case of these obj files.

We actually want to generate some polygons on the fly based on navigation coordinates and draw these solid polygons in vts. Can you please suggest/tell us what will be the sequence of transformation we need to apply in order to get in the right location?

Or Is there any way to draw mesh using points in the navigation co-ordinate system and physical coordinate system?

I have attached obj files(i have just change the extension from .obj to .txt as obj files are not supported to attach) containing vertices in navigation co-ordinates and another file having vertices in the Physical co-ordinate system.

Any help would be appreciated!

SukanyaGavhane commented 3 years ago

if the query is confusing let me simplify for you Let's say like the user can select four points on the earth surface and suppose they are in the Physical co-ordinate so we just want to draw solid rectangle there.

In short, we're trying to draw a solid mesh between the given navigation or /physical coordinate system.

This is quite an urgent requirement and your inputs will be really helpful for us, can someone at least guide me to some useful reference?

Any help would be appreciated!