tag:blogger.com,1999:blog-4741970181714760187.post337878586561798765..comments2024-03-14T19:47:05.494+00:00Comments on master maps: Terrain building with three.jsBjørn Sandvikhttp://www.blogger.com/profile/09449118212462364491noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-4741970181714760187.post-28822711124460723152015-11-12T22:20:25.293+00:002015-11-12T22:20:25.293+00:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/01434397213153720932noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-25613206469143934002014-03-18T17:23:40.179+00:002014-03-18T17:23:40.179+00:00Vincent: You need to access your files through a w...Vincent: You need to access your files through a web server. <br /><br />Michael: You need some sort of LoD-algorithm, and I haven't found a decent solution for three.js yet. <a href="http://www.pheelicks.com/2014/03/rendering-large-terrains/" rel="nofollow">Have a look at this blog post</a>. Bjørn Sandvikhttps://www.blogger.com/profile/16080335362672606377noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-18694744347046196902014-03-15T09:53:06.631+00:002014-03-15T09:53:06.631+00:00Hello,
very nice examples. But what strategy shoul...Hello,<br />very nice examples. But what strategy should be used to support much larger datasets?<br /><br />Is there any limit for number of faces? I tried to increase mesh size and FF crashed. It looks like some WebGL or GPU limit was reached. But which one and how to work around?<br /><br />I saw some level of detail strategy but they are quite complicated and need support on server side.<br /><br />Is it possible to increase data amount by writing special shaders or configuring GPU buffers or ...<br /><br />MichalAnonymoushttps://www.blogger.com/profile/07245373423087104231noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-31386794700919715642013-12-17T16:17:24.824+00:002013-12-17T16:17:24.824+00:00Hi again,
Since my last message I have learned mor...Hi again,<br><br />Since my last message I have learned more about JavaScript and I'm sorry for the confusing with the Java language.<br><br /><br />I also identified the problem for a desktop execution. When I run it, the firefox console give me <a href="http://image.noelshack.com/fichiers/2013/51/1387295190-1387294842-sans-titre.png" rel="nofollow">this report </a> for besseggen.html and <a href="http://image.noelshack.com/fichiers/2013/51/1387295190-sans-titre.png" rel="nofollow">this one </a> when I run jotunheimen.html. So the error comes from the line <i>request.send( null );</i> one time in the besseggen.html JavaScript and another time in the TerrainLoader JavaScript.<br><br /><br />I have read <a href="http://khayyam.developpez.com/articles/web/ajax-cross-domain/" rel="nofollow"> here </a> and <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=465397" rel="nofollow"> here </a> that the <i>BAD_URI </i>error was added into the XMLHttpRequest object by browser editor to improve web security.<br><br /><br />So, perhaps you have any ideas to fix the problem or to load the data in the browser ?Vincentnoreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-69612884802815598422013-12-17T11:47:40.659+00:002013-12-17T11:47:40.659+00:00Hi Bjorn,
thank you for all your posts. I try to r...Hi Bjorn,<br><br />thank you for all your posts. I try to redo the whole thing by myself. Actually I was able to build the binary file with GDAL but I have some trouble with the the webGL grid generation.<br><br /><br />I downloaded the <a href="https://github.com/turban/webgl-terrain" rel="nofollow">file master ZIP</a>, so I have something like <a href="http://image.noelshack.com/fichiers/2013/51/1387276568-sans-titre.png" rel="nofollow"> that</a> on my desktop. but when I try to execute the html with chrome only "plane.html" is working well. <br><br /><br />Do I need to modify jotunheimen.html and besseggen.html for a desktop execution ?<br><br /><br />I'm not a java expert and I don't know how to see in which line the code is breaking. Should I use something like Eclipse ?<br><br /><br />Thanks for your answers.Vincentnoreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-23421802581140337032013-11-04T18:59:31.552+00:002013-11-04T18:59:31.552+00:00Will do!Will do!Anonymoushttps://www.blogger.com/profile/01439456423818253391noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-2233108367572312522013-11-04T17:39:35.142+00:002013-11-04T17:39:35.142+00:00Yes, streaming terrain tiles as TINs will be more ...Yes, streaming terrain tiles as <a href="http://en.wikipedia.org/wiki/Triangulated_irregular_network" rel="nofollow">TINs</a> will be more efficient. Please notify me when the tile format is ready - or make a post on your blog. Bjørn Sandvikhttps://www.blogger.com/profile/16080335362672606377noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-25240121683824773262013-11-04T14:10:44.848+00:002013-11-04T14:10:44.848+00:00There are some folks working on modifying gdal2til...There are some folks working on modifying gdal2tiles.py to generate terrain tiles. See <a href="https://groups.google.com/d/topic/cesium-dev/rBieaEBJHiU/discussion" rel="nofollow">here</a>.<br /><br />My own goals are a bit more ambitious. I'm working on a terrain server that allows users to easily import their own terrain data and process it for use with Cesium. The terrain tiles created by this server will be triangle meshes rather than heightmaps, which allows for both faster and more accurate terrain rendering.<br /><br />The format of these mesh tiles will be open and published as well, but the server itself will be a paid product. This is a way for AGI (the company I work for) to recoup some of the massive investment it has made in Cesium development.<br /><br />We welcome and encourage other solutions from the community, though!Anonymoushttps://www.blogger.com/profile/01439456423818253391noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-66305528952747614172013-11-03T11:06:58.667+00:002013-11-03T11:06:58.667+00:00Looks good Kevin! Would be even better if we had a...Looks good Kevin! Would be even better if we had a tool like gdal2tiles to generate the .terrain tiles from a DEM. Any plans for a tool like this?Bjørn Sandvikhttps://www.blogger.com/profile/16080335362672606377noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-39472184375807816362013-11-03T00:43:03.773+00:002013-11-03T00:43:03.773+00:00Hey Bjorn,
Yes, you have the right idea. To get t...Hey Bjorn,<br />Yes, you have the right idea. To get terrain data into Cesium, you can either create a tileset in a format supported by Cesium, or you can implement a custom TerrainProvider to access the terrain in whatever format it is in.<br /><br />The tile format expected by CesiumTerrainProvider is documented <a href="https://github.com/AnalyticalGraphicsInc/cesium/wiki/Cesium-Terrain-Server" rel="nofollow">here</a>. Cesium also supports loading terrain from an ArcGIS Server or VR-TheWorld server out of the box, but unless you happen to have one of those already you're probably better off with the CesiumTerrainProvider.<br /><br />If you'd prefer to write your own terrain provider, the best way to learn how to do that is to take a look at the source code for <a href="https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/CesiumTerrainProvider.js" rel="nofollow">CesiumTerrainProvider</a>.<br /><br />The situation is similar for texturing. You can either use one of the already-supported imagery providers, or write a custom implementation of the ImageryProvider interface.<br /><br />Let me know if you have any questions!<br /><br />KevinAnonymoushttps://www.blogger.com/profile/01439456423818253391noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-83376338660607988512013-11-02T14:14:59.608+00:002013-11-02T14:14:59.608+00:00Hi Kevin,
I'm very impressed by your work on ...Hi Kevin,<br /><br />I'm very impressed by your work on terrain rendering in Cesium! If I should recreate this example in Cecium, what would be the best/easiest way to add heightmaps and textures? Should I install a Cecium Terrain Server or implement my own TerrainProvider interface? It would be nice if I could just pre-render a set of heightmap/texture tiles and serve them directly. Is it possible? <br /><br />BjornBjørn Sandvikhttps://www.blogger.com/profile/16080335362672606377noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-52565428770476538742013-10-30T14:58:40.306+00:002013-10-30T14:58:40.306+00:00Hi,
Great series, thanks for posting! I'm cur...Hi,<br />Great series, thanks for posting! I'm curious if you've seen <a href="http://cesium.agi.com" rel="nofollow">Cesium</a>? Here's a <a href="http://cesium.agi.com/Cesium/Apps/Sandcastle/gallery/Terrain.html" rel="nofollow">terrain demo</a>. We'd love to have you as a contributor!<br />KevinAnonymoushttps://www.blogger.com/profile/01439456423818253391noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-39127436102158656312013-10-30T08:38:41.341+00:002013-10-30T08:38:41.341+00:00I don't know enough about shaders to be able t...I don't know enough about shaders to be able to use it. Please share your experiences if you give it a try! Bjørn Sandvikhttps://www.blogger.com/profile/16080335362672606377noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-90146904631971402902013-10-30T01:11:31.736+00:002013-10-30T01:11:31.736+00:00Hi Bjorn,
I've also really benefited from you...Hi Bjorn,<br /><br />I've also really benefited from your post, so thank you.<br />Did you consider using shaders for the texturing, and if so why did you decide against it?<br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-24132953032785894302013-10-14T18:39:11.551+01:002013-10-14T18:39:11.551+01:00Thanks for your firefox fix anonymous! :-) Thanks for your firefox fix anonymous! :-) Bjørn Sandvikhttps://www.blogger.com/profile/16080335362672606377noreply@blogger.comtag:blogger.com,1999:blog-4741970181714760187.post-67990087334304699282013-10-14T02:11:28.102+01:002013-10-14T02:11:28.102+01:00Hi Bjorn,
Great series of posts - looking forward ...Hi Bjorn,<br />Great series of posts - looking forward to the next one on texturing the 3d model.<br /><br />I couldn't get the examples to work and was getting an error (using Firefox):<br />"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" besseggen.html:98<br /><br />Managed to resolve it by putting the GET line before the responseType line in the Terrain Loader:<br />request.open( 'GET', url, true );<br />request.responseType = 'arraybuffer';<br /><br />Thanks.Anonymousnoreply@blogger.com