gregcman / sucle

Common Lisp Voxel Game Engine
MIT License
285 stars 24 forks source link

No textures #9

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello, I've followed your instruction to run sucle on Arch Linux using SBCL.

The game runs fine, except it start with a black screen, and then I have no textures.

gregcman commented 5 years ago

Hello marespiaut, This might be an OpenGL version issue, what version are you using?

Drainful commented 5 years ago

I'm having the exact same issue, OpenGL version 3.0 Mesa 18.1.7

gregcman commented 5 years ago

Display lists must not be working. A fix would require porting display lists to vbo

Edit: @Drainful if you have OpenGL 3.0 Mesa I don't know what could be wrong, because 3.0 supports legacy OpenGL

Drainful commented 5 years ago

The issue disappears when I run sucle on my nvidia gpu (laptop with nvidia optimus), so that sounds like a good guess.

Edit: The gpu on which the issue occurs is an integrated intel.

gregcman commented 5 years ago

@Drainful It is not obvious why the OpenGL version 3.0 Mesa 18.1.7 would produce the pictured results, but nvidia optimus would not. It could be a number of things:

for the integrated intel gpu, it would be helpful if you ran and shared the diagnostics in this link

Drainful commented 5 years ago

Output is in the link. I'm running Nixos so dpkg isn't a thing and tbh I don't know the equivalent. https://pastebin.com/7Ak8i8mb

ghost commented 5 years ago

@pupcraft here is the information about my computer

$ glxinfo | grep -i opengl
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.3.1
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 18.3.1
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 18.3.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
emacsomancer commented 5 years ago

I have the same issue with integrated intel graphics.


$ glxinfo | grep -i opengl
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL core profile version string: 4.2 (Core Profile) Mesa 18.3.2
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 18.3.2
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.3.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
gregcman commented 4 years ago

Sucle now uses VBOs or display-lists depending on the OpenGL version, so these issues should disappear.

Drainful commented 4 years ago

The issue has been solved for me as of the latest commit