GithubHelp home page GithubHelp logo

Comments (8)

goatchurchprime avatar goatchurchprime commented on May 25, 2024

Okay, running it in the cpp directory (as per the instructions) did better.

Now I open the demo project and try to run, I got this:

image

from geodot-plugin.

goatchurchprime avatar goatchurchprime commented on May 25, 2024

Okay, so I missed the stage of running scons in the main directory. Perhaps it should be in the list of steps, because for someone trying to get it to work there's no difference between preparing to compile and compiling this.

Now when I run the demo I get this crash trace report:

handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7fe6f3824210] (??:0)
[2] RasterTileExtractor::clip_dataset(GDALDataset*, double, double, double, int, int) (??:0)
[3] RasterTileExtractor::get_tile_from_dataset(GDALDataset*, double, double, double, int, int) (??:0)
[4] godot::GeoRasterLayer::get_image(double, double, double, int, int) (??:0)
[5] godot_variant godot::__wrapped_method<godot::GeoRasterLayer, godot::Ref<godot::GeoImage>, double, double, double, int, int>(void*, void*, void*, int, godot_variant**) (??:0)
[6] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x2631dd7] (<artificial>:?)
[7] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0xc578ef] (??:?)
[8] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0xb40916] (??:?)
[9] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x2a2337b] (<artificial>:?)
[10] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x2a41760] (<artificial>:?)
[11] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x18c8e4f] (??:?)
[12] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x28ffdf6] (??:?)
[13] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0xbdee04] (??:?)
[14] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x187e6de] (<artificial>:?)
[15] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x18e66fe] (??:?)
[16] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x298fdb0] (??:?)
[17] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x85ce4d] (??:?)
[18] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fe6f38050b3] (??:0)
[19] /home/julian/executables/Godot_v3.2.3-stable_x11.64() [0x86b68e] (??:?)
-- END OF BACKTRACE --

from geodot-plugin.

goatchurchprime avatar goatchurchprime commented on May 25, 2024

Okay, we're on to the next problem. As per instructions I've downloaded 2Gig from https://www.data.gv.at/katalog/dataset/b5de6975-417b-4320-afdb-eb2a9e2a1dbf and unzipped it.

I've changed height_map_path_data and ortho_data_path to point to it.

Then I got the same error as above. This meant I had to find the correct coordinates. This required me to install qgis (another 0.5Gig) know how to run it, drag the tif file into it, point the cursor somewhere in the middle of the map to read off 493651,443824

So I've edited the two lines:

export(float) var start_position_webmercator_x = 493651.0
export(float) var start_position_webmercator_y = 443824.0

Now I've got this weird slowly wobbling red rectangle and a series of numbers being printed out.

image

What do I need to do now to get it to work like your demos in the talk?

from geodot-plugin.

kb173 avatar kb173 commented on May 25, 2024

As I wrote in the Discord, this is just because you're using the heightmap as the texture, and the heights are all > 1 in the red channel, resulting in this all-red visualization. The "wobbling" is because the requested square moves every frame, so what you're seeing is a slow panning over the heights in your data.

Do #35 and #36 cover the problems you've encountered?

from geodot-plugin.

goatchurchprime avatar goatchurchprime commented on May 25, 2024

Okay, I've changed the mesh material shader to the following code:

shader_type spatial;

uniform sampler2D ortho: hint_albedo;
uniform sampler2D heightmap;

void vertex() {
	VERTEX.y = texture(heightmap, UV).r / 500.0;
}

void fragment() {
	//ALBEDO = texture(ortho, UV).rgb;
	float scaled_color = (texture(ortho, UV).r - 300.0) / 500.0;
	ALBEDO = vec3(scaled_color, scaled_color, scaled_color);	
}

Now I get a wobbling grey shaded image.

image

Where's the code you used for the demos in the talk where you could run around in VR?

from geodot-plugin.

goatchurchprime avatar goatchurchprime commented on May 25, 2024

Just tried compiling and running this out of the box again and set all the parameters to their defaults.

Problems are: heightmap_data_path and ortho_data_path don't have default values pointing to the data files.

And anyway it fails on the first line: var heightmap_data = Geodot.get_raster_layer(heightmap_data_path) with "Invalid call: Nonexistant function 'get_raster_layer' in base Node"

Any ideas what next?

from geodot-plugin.

kb173 avatar kb173 commented on May 25, 2024

Actually they should have default values with valid paths (see https://github.com/boku-ilen/geodot-plugin/blob/master/demo/RasterDemo.tscn#L35)... did you pull and have no local changes?

That Invalid call: Nonexistant function 'get_raster_layer' in base Node" sounds like a compilation problem, which is strange since you already had it running. Did the compilation succeed?

from geodot-plugin.

kb173 avatar kb173 commented on May 25, 2024

Closing since the new automated builds and pre-packaged demos hopefully make the setup process much easier.

from geodot-plugin.

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.