i run the demo.
0-4 step run ok.
but the 5th step texture mapping failed.
i donot know if i must change my env.
my env:
CUDA 11.6
OS ubuntu18.04

i also do this.
export MESA_GL_VERSION_OVERRIDE=3.3
logs:
Generating tree -- frame_num 185
Generating tree -- frame_num 186
Generating tree -- frame_num 187
Generating tree -- frame_num 188
Generating tree -- frame_num 189
Generating tree -- frame_num 190
Generating tree -- frame_num 191
Generating tree -- frame_num 192
Generating tree -- frame_num 193
Generating tree -- frame_num 194
Generating tree -- frame_num 195
Generating tree -- frame_num 196
Generating tree -- frame_num 197
Generating tree -- frame_num 198
Generating tree -- frame_num 199
node num: 7244117
upload node num: 0 / 7244116
Start update
End update
download num: 0 / 7244116
Update Done
Enumerating...
Number of triangles 2760858
loading 6
generating 13
updating 6
enumerating 4
stl save 0
Texture mapping
Save bbox rendering trajectory
/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/utils/rendering_trajectory.py:97: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at ../torch/csrc/utils/tensor_new.cpp:201.)
world2frame = torch.tensor([l[1] for l in world2frame]).to(device)
Save scaled rendering trajectory
/home/tesla/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/sklearn/cluster/_kmeans.py:870: FutureWarning: The default value of n_init will change from 10 to 'auto' in 1.4. Set the value of n_init explicitly to suppress the warning
warnings.warn(
INFO:root:[main] Loading mesh from ./demo/mesh/sponza/mesh.stl ...
INFO:root:[main] configuration:
- video_name: sponza
- stl_name: mesh
- face_n: 2760858
- texture_map_max_sizeK: 10.0
- texture_map_min_triangle_side: 7
- total_video_frames_count: 200
- frame_idx_list: [150, 40, 60, 140, 160, 50, 30, 70, 120, 110, 100, 180, 190, 90, 0, 10, 80, 170, 20, 130]
INFO:root: elapsed time (0. Initialize): 0.87 sec
INFO:root:[EqtriangleTiler]
- triangle_side: 8.0
- Texture map size 9413 x 8134
/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/equitriangle_tiler.py:280: UserWarning: floordiv is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor').
triangle_idx = (face_idx // self.M, face_idx % self.M)
INFO:root:[generate_xyzi_map] Rendering xyz map ...
Compilation failure for vertex data:
b'0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES\n'
Compilation failure for fragment data:
b'0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES\n'
Linker failure:
b'error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader'
Framebuffer not complete
Traceback (most recent call last):
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_main.py", line 122, in main
texture_main_single_texture_map.main(args)
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_main_single_texture_map.py", line 78, in main
tiler = EqtriangleTiler(texture_map_max_sizeK=texture_map_max_sizeK,
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/equitriangle_tiler.py", line 58, in init
self.__calculate_xyzi_map(framework.OpenglRendererPlanar('EqtriangleTiler'))
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/equitriangle_tiler.py", line 272, in __calculate_xyzi_map
xyz_map, facei_map = self.__render_xyzi_map(renderer)
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/equitriangle_tiler.py", line 247, in __render_xyzi_map
xyz_map = renderer.render(
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_opengl/framework.py", line 184, in render
self.display()
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_opengl/framework.py", line 45, in display
drawer.draw(camera_matrix, frameBufferObject=self.frameBufferObject)
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_opengl/framework.py", line 483, in draw
glUseProgram(self.theProgram)
File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glUseProgram,
cArguments = (3,)
)
python-BaseException
i run the demo.
0-4 step run ok.
but the 5th step texture mapping failed.
i donot know if i must change my env.

my env:
CUDA 11.6
OS ubuntu18.04
i also do this.
export MESA_GL_VERSION_OVERRIDE=3.3
logs:
Generating tree -- frame_num 185
Generating tree -- frame_num 186
Generating tree -- frame_num 187
Generating tree -- frame_num 188
Generating tree -- frame_num 189
Generating tree -- frame_num 190
Generating tree -- frame_num 191
Generating tree -- frame_num 192
Generating tree -- frame_num 193
Generating tree -- frame_num 194
Generating tree -- frame_num 195
Generating tree -- frame_num 196
Generating tree -- frame_num 197
Generating tree -- frame_num 198
Generating tree -- frame_num 199
node num: 7244117
upload node num: 0 / 7244116
Start update
End update
download num: 0 / 7244116
Update Done
Enumerating...
Number of triangles 2760858
loading 6
generating 13
updating 6
enumerating 4
stl save 0
Texture mapping
Save bbox rendering trajectory
/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/utils/rendering_trajectory.py:97: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at ../torch/csrc/utils/tensor_new.cpp:201.)
world2frame = torch.tensor([l[1] for l in world2frame]).to(device)
Save scaled rendering trajectory
/home/tesla/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/sklearn/cluster/_kmeans.py:870: FutureWarning: The default value of
n_initwill change from 10 to 'auto' in 1.4. Set the value ofn_initexplicitly to suppress the warningwarnings.warn(
INFO:root:[main] Loading mesh from ./demo/mesh/sponza/mesh.stl ...
INFO:root:[main] configuration:
INFO:root: elapsed time (0. Initialize): 0.87 sec
INFO:root:[EqtriangleTiler]
/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/equitriangle_tiler.py:280: UserWarning: floordiv is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor').
triangle_idx = (face_idx // self.M, face_idx % self.M)
INFO:root:[generate_xyzi_map] Rendering xyz map ...
Compilation failure for vertex data:
b'0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES\n'
Compilation failure for fragment data:
b'0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES\n'
Linker failure:
b'error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader'
Framebuffer not complete
Traceback (most recent call last):
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_main.py", line 122, in main
texture_main_single_texture_map.main(args)
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_main_single_texture_map.py", line 78, in main
tiler = EqtriangleTiler(texture_map_max_sizeK=texture_map_max_sizeK,
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/equitriangle_tiler.py", line 58, in init
self.__calculate_xyzi_map(framework.OpenglRendererPlanar('EqtriangleTiler'))
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/equitriangle_tiler.py", line 272, in __calculate_xyzi_map
xyz_map, facei_map = self.__render_xyzi_map(renderer)
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/equitriangle_tiler.py", line 247, in __render_xyzi_map
xyz_map = renderer.render(
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_opengl/framework.py", line 184, in render
self.display()
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_opengl/framework.py", line 45, in display
drawer.draw(camera_matrix, frameBufferObject=self.frameBufferObject)
File "/opt/WD-240G-1/jyd/3d_reconstruction_ai/EgocentricReconstruction/texture_mapping/texture_opengl/framework.py", line 483, in draw
glUseProgram(self.theProgram)
File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glUseProgram,
cArguments = (3,)
)
python-BaseException