How exactly are you constructing the mesh? A minimal reproducible example 
might be helpful. I think what's happening is the faces are created with 
vertices in the wrong order. See here for an explanation: 
https://www.khronos.org/opengl/wiki/Face_Culling#Winding_order

On Sunday, March 22, 2020 at 1:55:44 PM UTC-7, Michiel Cnossen wrote:
>
> Hi Guy's,
>
> I'm using pyqtgraph and opengl for the first time to make some 3d shapes. 
> This has been going well so far, but I cant get the colors to be as I want.
>
> You can see an screenshot of the shape(a tube) I have created below using 
> pyqtgraph.opengl.MeshData. The faces get the color I want(light red in this 
> case), but appear only on one side, I cant figure out how to change it on 
> the other side(the outside of the tube). 
> I don't really care about one side, as i'm going to make a closed shape 
> and add a thickness to the tube wall. Currently I've only made a mesh for 
> the outer radius of the tube, hence the color should be on the other side.
>
> [image: screenshot.png]
>
>
>
>
>
>
>
>
>
>
> Can somebody help me along? I think a general explanation on how to deal 
> with this would be sufficient. This is probably a beginners mistake.
>
> Thanks in advance!
>
> Best regards, Michiel 
>
>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyqtgraph+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/94cdad34-189d-44f4-b95b-978ae94c6165%40googlegroups.com.

Reply via email to