Code Monkey home page Code Monkey logo

3dgs.cpp's People

Contributors

cedric-chedaleux avatar shg8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

3dgs.cpp's Issues

Debug mode compile caused linking issue

Thanks for this good project! I have to say that I have successfully run the project with my data on Release Mode:
image
But on Windows platform with (MSVC 2022 buildtool), the Debug mode will cause the linking issue:
image
which is quite strange. Any suggestion?
On the other hands, the profiler sames not meet the diagram size (I guess?), because the diagrams crowed on the right side:
image
(This data is of a black background, don't worry about the result displayed)

Any suggestion about that?

Anyway, this is just a little "bug" I have encountered, so I would like to share and report it.
Thanks for the contribution of such a great project :-). Best!

platform support

hi, thank you for your sharing code, i wonder can this project run in android platform such as Quest or mobilephone?

Need a trackbar control mode

Could you add a trackbar control mode to this great viewer, just like meshlab~
The default mouse and keyboard control modes are a bit uncomfortable to use now :(

Gaussian instantiation out of memory

Hi, I have find some problem with Gaussian instantiation out of memory.
20240222121748

First time, I run a ply file ~2.1GB, and it worked well.
GPU memory usage went to ~8.5GB at first, then went to 9.4GB when the render result showed.

The next time, I run a ply file ~500MB, which is an edited version of the first file, by deleting some 'fog' points.
GPU memory usage also went to ~8.5GB at first, but then it came out Gaussian instantiation out of memory.

Why an edited small ply file causes out of memory?
The graphic card is Geforce RTX 2080 Ti 11GB.
20240222122624

Thanks.

Unable to find Vulkan SDK on mac

Hi there, I came across this project from reddit. I am trying to compile this project for macOS and also visionos to test on my vision pro.
I have install Vulkan SDK

(base) ➜  3DGS.cpp git:(main) ✗ ls /Users/xuhao/VulkanSDK/1.3.275.0
Applications        InstallationLog.txt MaintenanceTool.dat VERSIONS.txt        install_vulkan.py   macOS               tvOS                vulkan.7z
Helpers             Licenses            MaintenanceTool.ini components.xml      installerResources  network.xml         tvos.7z
INSTALL_BOM.json    MaintenanceTool.app README.txt          iOS                 ios.7z              setup-env.sh        uninstall.sh

However, when build this project with

cmake -DCMAKE_BUILD_TYPE=Release -DVULKAN_SDK="/Users/xuhao/VulkanSDK/1.3.275.0" -S ./ -B .\VulkanSplatting\build

or

cmake -DCMAKE_BUILD_TYPE=Release -DVULKAN_SDK="/Users/xuhao/VulkanSDK/1.3.275.0/macOS" -S ./ -B ./VulkanSplatting/build

It will come with

(base) ➜  3DGS.cpp git:(main) ✗ cmake -DCMAKE_BUILD_TYPE=Release -DVULKAN_SDK="/Users/xuhao/VulkanSDK/1.3.275.0/" -S ./ -B ./VulkanSplatting/build

-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR glslangValidator) (found version "")
-- Using Cocoa for window creation
-- GLM: Version 1.0.0
-- GLM: Disable -Wc++98-compat warnings
-- GLM: Build with C++20 features
GLM: Clang - AppleClang compiler
-- Module support is disabled.
-- Version: 9.1.0
-- Build type: Release
-- CXX_STANDARD: 20
-- Required features: cxx_variadic_templates
-- Build spdlog: 1.13.0
-- Build type: Release
-- Shader header file: /Users/xuhao/develop/SpatialComputing/3DGS.cpp/VulkanSplatting/build/shaders/shaders.h
-- Configuring done (1.1s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/Users/xuhao/develop/SpatialComputing/3DGS.cpp/src/Vulkan_INCLUDE_DIR
   used as include directory in directory /Users/xuhao/develop/SpatialComputing/3DGS.cpp/src

CMake Error at src/CMakeLists.txt:45 (target_link_libraries):
  Target "vulkan_splatting" links to:

    Vulkan::Vulkan

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    VULKAN_SDK


CMake Generate step failed.  Build files cannot be regenerated correctly.

Which path should I use?

Rendering red screen

Good afternoon! Thank you for the amazing 3DGS.cpp project. I have some background with WebGPU and basic TensorFlow but am generally still learning graphics programming and machine learning concepts.

I have an issue that may be related to my incorrect usage or settings, so my apologies ahead of time. However, the issue is pictured below:

image

I tried the nightly build as well 3 different builds at various stages in the commit history, but the latest seems most stable. Yet it is only giving a red screen.

I am able to open schoolbus.ply in another Python-based viewer. The file is binary (text header, binary body) as required.

I have a fresh installation of Vulkan and all the needed dependencies, and I am able to run Vulkan Cube, so it seems that Vulkan is working properly. If you'd like to examine schoolbus.ply, I could probably ask my client if that is okay!

Thank you for your time!

Question about sort.comp

Hello, this is a really great job for me! But I'm having trouble reading the source code, can you explain it to me? I think sort.comp needs to be sorted according to depth, but I didn’t find the part that uses depth sorting. I only saw the code that groups the tiles together in one tile. Can you help me answer it? Thank you very much.

Skip rendering loop when there's no view changes

I built the viewer and tried to use it to load output of original 3DGS and got this error message:

(base) linhanwang@MacBook-Air:~/softwares/3DGS.cpp ⚡ ./build/apps/viewer/3dgs_viewer -v ~/Documents/sep_road/
^[[O[13:06:26] [D] Initializing Vulkan
[13:06:26] [D] Vulkan instance created
[13:06:26] [I] Available physical devices:
[13:06:26] [I] [0] Apple M3
[13:06:26] [I] Selected physical device (automatically): Apple M3
[13:06:26] [D] Logical device created
[13:06:26] [D] Surface format: VK_FORMAT_B8G8R8A8_UNORM
[13:06:26] [D] Present mode: VK_PRESENT_MODE_FIFO_KHR
[13:06:26] [D] Swapchain extent range: 1x1 - 16384x16384
[13:06:26] [D] Swapchain extent: 2560x1440. Preferred extent: 2560x1440
[13:06:26] [D] Swapchain created
[13:06:26] [D] Creating GUI
[13:06:26] [D] Loading scene to GPU
[13:06:26] [C] Could not find end of header
Could not find end of header

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.