HuajianUP / Photo-SLAM

[CVPR 2024] Photo-SLAM: Real-time Simultaneous Localization and Photorealistic Mapping for Monocular, Stereo, and RGB-D Cameras
GNU General Public License v3.0
425 stars 40 forks source link

Rendering issues #29

Open Hillowwold opened 3 months ago

Hillowwold commented 3 months ago

Hi, thank you for your great work! But I encountered some rendering problems. I am trying to use another visualization tool Rerun to do visualization research. I can display the SLAM frame image normally, but the current gaussian mapper frame image will show garbled colors. Do you have any ideas about it? Thanks! Screenshot 2024-08-19 151647

liquorleaf commented 2 months ago

A possible reason might be that glTexImage2D needs a 4-pixel alignment in width. We padded the images with zeros before uploading to opengl. Please see the code related to padded_sub_image_width_ and padded_main_image_width_ in viewer/imgui_viewer.cpp.