Giter Site home page Giter Site logo

3D Doesn't Appear about gaussiansplats3d HOT 5 CLOSED

dbco0409 avatar dbco0409 commented on July 30, 2024
3D Doesn't Appear

from gaussiansplats3d.

Comments (5)

dbco0409 avatar dbco0409 commented on July 30, 2024 1

Thank you! Finally, 3D has come out.
I didn't know because I didn't get a console error.
Thank you very much for your kind and quick response.

from gaussiansplats3d.

mkkellogg avatar mkkellogg commented on July 30, 2024

Are there any errors in the debug console?

If you are running the code from your own server and haven't set the necessary CORS headers to enable SharedArrayBuffer you will run into problems. The issue is described here: https://github.com/mkkellogg/GaussianSplats3D?tab=readme-ov-file#cors-issues-and-sharedarraybuffer

If that's the issue, setting those CORS headers should fix the problem. Or you can disable shared memory by passingfalse for the sharedMemoryForWorkers constructor parameter for Viewer (and if you do you should probably disable GPU accelerated sort):

const viewer = new GaussianSplats3D.Viewer({
    'cameraUp': [0, -1, -0.54],
    'initialCameraPosition': [-3.15634, -0.16946, -0.51552],
    'initialCameraLookAt': [1.52976, 2.27776, 1.65898],
    `sharedMemoryForWorkers`: false,
    `gpuAcceleratedSort`: false
});
viewer.init();
let path = './shoose.splat';
viewer.loadFile(path, {
    'halfPrecisionCovariancesOnGPU': true
})
.then(() => {
    viewer.start();
});`

from gaussiansplats3d.

dbco0409 avatar dbco0409 commented on July 30, 2024

Thank you for your prompt response.
However, it seems like there are no errors catching on my debug console.
I am leaving the test URL here
https://bexcos.mycafe24.com/coor/ply/webgl3.html

from gaussiansplats3d.

mkkellogg avatar mkkellogg commented on July 30, 2024

I am leaving the test URL here
https://bexcos.mycafe24.com/coor/ply/webgl3.html

When I visit that URL, I see the follow error in the debug console:
image

That error means you don't have the necessary CORS headers set on your server that allow a SharedArrayBuffer to be used with web workers. The README talks about how to solve that problem: https://github.com/mkkellogg/GaussianSplats3D?tab=readme-ov-file#cors-issues-and-sharedarraybuffer

Or you can disable shared memory like I showed in the example above.

from gaussiansplats3d.

mkkellogg avatar mkkellogg commented on July 30, 2024

Great!

from gaussiansplats3d.

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.