gwaldron / osgearth

3D Maps for OpenSceneGraph / C++14
https://www.pelicanmapping.com/home-1/opensource
Other
1.49k stars 776 forks source link

osgearth_viewer simple.earth ,the displayed earth is white #2634

Open dys-master opened 1 week ago

dys-master commented 1 week ago

May I ask if I need to compile osg3.6.5 and osgearth3.1 on an ARM based CPU and Ubuntu system? My graphics card supports up to opengl4.0, but after I compile osg with gl3 turned on and then compile osgearth3.1, the displayed earth is white, which means no image has been loaded. Do you know how to solve this? Is it a problem with my compilation process? When I compiled osg3.6.5, I used cmake- DOPENGL_PROFILE=GL3 -DOSG_GL_CONTEXT_VERSION=3.3, And when I compiled osgear, I used cmake- DCMAKE-CXX_Wings=- fPIC, make install and use osgearth-viewer simple. art. The loaded Earth is a pure white Earth without a map on it. How to solve this problem

gwaldron commented 1 week ago

It could be a number of things, from a compilation problem to a networking problem.

Please set the environment variable OSGEARTH_NOTIFY_LEVEL to INFO and post the output of osgearth_viewer simple.earth.

I also encourage you to use a more recent version of osgEarth if possible.

dys-master commented 1 week ago

I need to combine osgear and qt for secondary development. I have already used osg3.6.5. What version of osgear do you recommend me to use? I hope the function names have not been changed

dys-master commented 1 week ago

Could you please ask me again how to use the one you mentioned? I don't understand "Please set the environment variable to and post the output of .OSGEARTH_NOTIFY_LEVELINFOosgearth_viewer simple.earth"

gwaldron commented 1 week ago

3.6 is the latest version.

export OSGEARTH_NOTIFY_LEVEL=INFO
osgearth_viewer simple.earth

Copy and paste the console output here so I can see it.

dys-master commented 1 week ago

Thank you for your reply. I will try it out tomorrow. I have already compiled osm3.6.5 and osmearth3.1 on a computer with an Intel CPU and Nvidia graphics card, and they can be displayed normally and uploaded to Qt. However, there is a problem on this machine now. The successfully compiled machine supports OpenGL 4.6, and I have chosen the default compilation method, cmake, But I am unable to succeed on my current machine, and switching to opengl3 still cannot succeed

dys-master commented 1 week ago

Also, I would like to know what are the requirements for compiling Osgearth3.1 and higher versions of libraries such as GEOS and GDAL, or where can I check the compatibility of this version

gwaldron commented 1 week ago

I would expect osgEarth 3.1 to build against any GDAL 3.x version. (It will actually build against even older GDAL 2.x versions but we do not recommend this.)

dys-master commented 1 week ago

Then perhaps I should update the version of gdal. I am currently using gdal2.1