Giter VIP home page Giter VIP logo

Comments (5)

BWibo avatar BWibo commented on June 22, 2024

Hey there,
thank you, I am happy to hear the image was helpful for you!
Can you please post the commands you used for creating the terrain tileset?

Check out this repo. The tool provided there has some options for debugging terrains, including visualizing normals.

Closing, as I cannot provide support for Cesium. I am just maintaining this Docker image here. Please re-post this issue where it belongs.

from cesium-terrain-builder-docker.

sambrooks-atkins avatar sambrooks-atkins commented on June 22, 2024

Thanks for the quick reply. I used the commands as specified in the readme, with the world.tif file in the world.zip file attached (as an example, since I can't share my company's private GeoTIFFs):

ctb-tile -f Mesh -C -N -o terrain world.tif
ctb-tile -f Mesh -C -N -l -o terrain world.tif

The terrain files seem to work fine in Cesium, but do not show up at all in quantized-mesh-viewer (the repo you linked). I can't post an issue on the fork that your docker image is based on, and the original repo that was forked doesn't generate quantized mesh files, so it'd be no use asking them. I've tried with many different GeoTIFF files from many different sources, but none of them produce (with the above commands) terrain files which can be inspected with the quantized-mesh-viewer.

Since both the quantized-mesh-viewer and Cesium are having problems with the output of this docker image, and the fork it's based on does not accept issues, I'm not sure where else I can post this issue or ask these questions, as this seems like it could be a problem with this docker image and the code it contains.

If you have seen output from this docker image show up in the quantized-mesh-viewer repo's app, could you please provide the source file and the commands you used to create the terrain output? Thanks!

from cesium-terrain-builder-docker.

sambrooks-atkins avatar sambrooks-atkins commented on June 22, 2024

Here are some of the example .terrain files that gets output for the world.tif file attached above, and do not show up in the quantized mesh viewer:
6.zip

from cesium-terrain-builder-docker.

BWibo avatar BWibo commented on June 22, 2024

Your example input data does not contain elevation values. I am seeing grayscale values from 0 to 255 on band 0. Check if your input data matches the input data description provided here.

Probably, this pull request is where this issue belongs: geo-data/cesium-terrain-builder#64

from cesium-terrain-builder-docker.

sambrooks-atkins avatar sambrooks-atkins commented on June 22, 2024

You're right, the world.tif file I gave above is not a proper DEM geotiff - I was in a hurry to find a DEM geotiff that didn't belong to my company to use as an example, and I must have found the wrong type of file in my rush.

Looking at that PR discussion, it looks like the normals should work fine, so I'm probably doing something wrong on my end in Cesium. Sorry to have bothered you.

from cesium-terrain-builder-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.