Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dys-master opened this issue Sep 25, 2024 · 8 comments
Open

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

dys-master opened this issue Sep 25, 2024 · 8 comments

Comments

@dys-master
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants