Ah, I missed the vbo bug that needed to fix for j807. with these 2 fixes, I can see a solid color tetrahedron. press z and x to rotate to see all faces.
vbo=: >@{:glGenBuffers 2;2#_1 colorData=: 1&fc , 3# 0&". ;._2 [ 0 : 0 1 0 0 0 1 0 0 0 1 1 1 0 ) the color of the 3 vertex of the first triangle are all red. 1 0 0 1 0 0 1 0 0 so that interpolation or not, all pixel are of the same color. similarly for the other faces. Sat, 29 Feb 2020, Brian Schott написал(а): > 2 comments below. > > 0) I confirmed that scaling the original vertices DOES rescale the object. > Before it did not. (Increasing the 10 in the line below reduces the > tetrahedron's size.) > > vertexData=: 1&fc ,1 2 0 0 2 3 3 2 1 1 0 3{4 3$, %&10, 0&". ;._2 [ 0 : 0 > > 1) A couple of simple changes enabled me to verify that 4 faces are colored > correctly. > > R=: _180 0 0 > > Changing the 4th face's color helped my color defectiveness see the 4th > face. Others may not need this change. > > colorData=: 1&fc ,_3]\3#"2] 0&". ;._2 [ 0 : 0 > 1 0 0 > 0 1 0 > 1 1 1 > 0 0 1 > ) > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm