petrbroz / forge-potree-demo

Sample Autodesk Forge application showing the use of Potree pointclouds in the viewer.
MIT License
15 stars 5 forks source link

Potree point cloud is not showing #5

Closed javrro closed 1 year ago

javrro commented 1 year ago

Ive ran the project as is, without any modification but im unable to see the Point Cloud.

leefsmp commented 1 year ago

+1

petrbroz commented 1 year ago

Hi, sorry about that. Some time back the viewer switched from WebGL to WebGL2, and the Potree renderer seems to be having some issues with the newer version. For now, you can work around this issue by configuring the viewer to go back to WebGL(1), like so:

viewer.start(null, null, null, null, {
    webglInitParams: {
        useWebGL2: false
    }
});

I've updated the sample to do this as well.