Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get contours terrain and wireframe terrain? #18

Open
zxo102 opened this issue Apr 15, 2020 · 4 comments
Open

how to get contours terrain and wireframe terrain? #18

zxo102 opened this issue Apr 15, 2020 · 4 comments

Comments

@zxo102
Copy link

zxo102 commented Apr 15, 2020

Follow the example of https://github.com/w3reality/three-geo/tree/master/examples/editor
like:
tgeo.getTerrain(origin, radius, 12, { // onVectorDem: (mesh) => { /* just for debugging ajax */ }, onRgbDem: (meshes) => { ... } , onSatelliteMat: (mesh) => { mesh.material.wireframe = true; mesh.material.side = THREE.DoubleSide; render(); }, });
I can get satellite terrain. How can I get the other two types: contours terrain and wireframe terrain?

@zxo102 zxo102 changed the title how to get terrain with contours? how to get contours terrain and wireframe terrain? Apr 15, 2020
@zxo102
Copy link
Author

zxo102 commented Apr 17, 2020

@zxo102
Copy link
Author

zxo102 commented Apr 17, 2020

I got satellite and contours terrains from tgeo.getTerrain(origin, radius, 12, {...}) in different sizes with same parameters:

image

image

For satellite terrain:

tgeo.getTerrain(origin, radius, 12, { onRgbDem: (meshes) => { meshes.forEach((mesh) => { scene.add(mesh); }); render(); }, onSatelliteMat: (mesh) => { mesh.material.wireframe = true; mesh.material.side = THREE.DoubleSide; render(); }, });

For contours terrain:

tgeo.getTerrain(origin, radius, 12, { onVectorDem: (objs) => { objs.forEach((obj) => { scene.add(obj); }); render(); }, });

How do I get the same size of terrain boxes?

Thanks a lot.

@j-devel
Copy link
Contributor

j-devel commented Apr 18, 2020

How do I get the same size of terrain boxes?

It seems you need to crop each terrain model horizontally along the white reference boxes so they have "the same" sizes. But, currently, we don't have this functionality in three-geo (#8 (comment)).

Edit: more precisely, we already have this cropping feature for vector DEMs (disabled at this moment), but not for rgb DEMs.

@zxo102
Copy link
Author

zxo102 commented Apr 19, 2020

Thanks a lot for your reply @j-devel and see what I can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants