GithubHelp home page GithubHelp logo

webgl-terrain's People

Contributors

amilajack avatar turban avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webgl-terrain's Issues

Request to add licensing info

Hi there, awesome examples!

May I request you set a license for these examples?

My recommendation is MIT or 'The Unlicense'.

Black terrain

The terrain shows black upon clicking 'Index.html'

Screenshot 2022-04-22 at 15 17 11

Link to demo?

Would be nice if a link to the demo could be added.

TerrainLoader returns empty arrays when loading binary files

Hello!
First of all, thank you for your great blog post on the subject of three.js and terrain meshes.

I tried following your blog's instructions as closely as possible, but I cannot get your TerrainLoader to parse the binary files I created with GDAL. However, if I use the files from your blog in your repos (e.g., jotunheimen.bin) the TerrainLoader parses that just fine.

I am trying to use arbitrary geotiffs because I want to be able to use your method for several DEM's.

Let me walk you through my steps:

  1. I downloaded this topographic image of the earth

  2. I used GDAL to convert the jpeg to a geotiff with the following command:
    gdal_translate -a_srs WGS84 -a_ullr -180 +90 +180 -90 earth.jpg earth.tiff

  3. I used Gdalinfo to confirm the geotiff created had the correct metadata (it did)

  4. I used the command at the end of your blogpost to convert this geotiff to a binary file

gdal_translate -scale 982 1905 0 65535 -ot UInt16 -of ENVI earth.tif earth.bin

this created 3 files, including a .bin, I placed all three files in a directory in my node application, then I tried to load it using your TerrainLoader:

var terrainLoader = new THREE.TerrainLoader(); terrainLoader.load('./data/earth.bin', function(data) { console.log(data); });

And I get back an array of UInt16, but every index in the array is '0'. So there is no elevation data, any idea what I'm doing wrong? I'd really love to make this work!

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.