Skip to content
Discussion options

You must be logged in to vote
  1. Your shader seems to have been copied from the master branch (0.14.0dev). (The #ifdef GL_ES is not in 0.13.7)
  2. The version of pyqtgraph that you are using appears to be <= 0.13.7. This is evidenced by the attribute locations being all -1. In pyqtgraph <= 0.13.7, the shaders were written in a very ancient style. The attributes that you used have only existed since 0.14.0dev.

The following works on the current master branch (0.14.0dev)
A sample STL file can be found at https://upload.wikimedia.org/wikipedia/commons/9/93/Utah_teapot_%28solid%29.stl

import sys
import pyqtgraph as pg
import pyqtgraph.opengl as gl
from pyqtgraph.opengl import shaders
import trimesh

vert_shader = """
    #vers…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@s3raf1na
Comment options

Answer selected by Wasupmacuz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants