Giter VIP home page Giter VIP logo

Comments (12)

acalcutt avatar acalcutt commented on June 8, 2024 1

After some trial and error I got it to work. It looks like in my case it was not working because I didn't install vmware tools, which includes a video driver with 3d support. The default microsoft basic video driver didn't work, but the vmware driver did.

Working with vmware driver
image

Not working with microsoft basic driver
image

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024 1

To use the Mesa3d software rendering you can try this.

1.) Download https://github.com/pal1000/mesa-dist-win/releases/download/22.3.5/mesa3d-22.3.5-release-msvc.7z
2.) extract the files 'opengl32.dll', 'libgallium_wgl.dll', 'libGLESv2.dll', 'libglapi.dll' into the maplibre-native lib folder at \node_modules\@maplibre\maplibre-gl-native\lib\node-(your node version)\
3.) set the windows environment variables. I set them in user variables, but system variables should also work
https://docs.mesa3d.org/envvars.html#envvar-GALLIUM_DRIVER

LIBGL_ALWAYS_SOFTWARE: true
GALLIUM_DRIVER: softpipe

4.) Make sure to restart your command prompt to get the new environment variables.
5.) Try to run "node ." and see if the page loads now.

image

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024

It sounds like it is failing in places that uses maplibre-native rendering.

"https://localhost:8080/" uses maplibre-native to generate the thumnails for your style. "https://localhost/styles/basic-preview/1/0/1.png." uses maplibre-native to render your style+data sources into a rendered png.

502 (Bad Gateway) sounds like maplibre-native is having trouble connecting to the enpoint maybe?...idk

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024

Did you install the latest c++ redistributable needed on windows? https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024

I tried it on server 2022 and experience the same thing. Strange. I'm guessing some dependency is missing but i'm not sure what it would be.

I have been running it fine on Windows 11 here in testing...I would imagine that is pretty similar.

from tileserver-gl.

akram-mhss avatar akram-mhss commented on June 8, 2024

Thank you for your assistance. The issue I'm facing is that I'm using Windows Server 2022 on RDP, and it's displaying "Microsoft Remote Display Adapter" and "Microsoft Basic Display Adapter." Now, should I download the SVGA 3D driver will work, or should I change the RDP graphics mode?

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024

Seems to work fine over RDP, once the real video card is updated to an appropriate driver. What kind of server is this, is it a virtual server or a phsical server? Seems like you need to update the one that shows "Microsoft Basic Display Adapter." .

For a vmware virtual server, the updated driver with 3d support come as part of the vmware tools. If this isn't a virtual server, maybe run windows update and see if it pulls in a better driver that replaces the "Microsoft Basic Display Adapter." If this isn't vmware and windows update doesn't pull in a driver for you, you are going to need to find what video card your server uses and see if you can find a better driver for it.

image

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024

If you can't find a better driver, it may be possible to use Mesa3d software rendering. I have not tested this with tileserver-gl, but I know we have used it when building maplibre-native in the github workflows, which does not have a real video card https://github.com/maplibre/maplibre-native/blob/main/.github/workflows/node-ci.yml#L262-L271 .

I would try the driver first, since there should be one you can use in most cases, but mesa3d could be an option if it is not. we would have to reseach how to do it, but it should mostly be extracting the dlls and possibly setting an environment variable like that step in the workflow does.

Basically the issue here is maplibre-native requires opengl support, which it doesn't seem the "Microsoft Basic Display Adapter." has.

from tileserver-gl.

akram-mhss avatar akram-mhss commented on June 8, 2024

ok I will give this a try, and I'll get back to you with the results

from tileserver-gl.

akram-mhss avatar akram-mhss commented on June 8, 2024

It worked perfectly; thank you so much for your assistance

from tileserver-gl.

acalcutt avatar acalcutt commented on June 8, 2024

Glad you got it working. did you go the fixing the driver route or the mesa3d software rendering route? If it is possible the upgrading the driver route is the better way to go, but at least there is an option.

from tileserver-gl.

akram-mhss avatar akram-mhss commented on June 8, 2024

I followed your instructions and used the mesa3d software, and it's working perfectly.

from tileserver-gl.

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.