The problem that the floor has no color when rendering in Pyrender

Using pip install pyrender directly will cause many problems, and may directly report an error "cannot import name 'OSMesaCreateContextAttribs' from ' OpenGL .osmesa'"

Even if the upgraded version is successfully installed and some simple graphics can be rendered, there is still a bug of missing colors as shown in the figure below

 

 The correct installation method is to operate according to the official guide of pyrender. Note that PREFIX needs to be replaced with the installation directory

Installation Guide — pyrender 0.1.45 documentation

Supongo que te gusta

Origin blog.csdn.net/qq_27403925/article/details/131414743
Recomendado
Clasificación