All,

With my tetrahedron example I have the following completely different color
scheme.

colorData=: 1&fc ,1,"1~_3]\3#"2] 0&". ;._2 [ 0 : 0
1 0 0
0 1 0
1 1 1
0 1 1
)

This color scheme uses length 4 vectors instead of length 3 vectors:
glVertexAttribPointer colorAttr; 4; GL_FLOAT; 0; 0; 0

The good news is that I see 4 different faces but the bad news is that they
are SCREWY.
The red and the white face CROSS.
The other faces don't make sense either.
I can't figure this out at all.

By the way, I figured an alternative definition for the vertex data,
but it does no better than the original tetrahedron vertexData.

vertexData=: 1&fc ,1 2 0 0 2 3 3 2 1 1 0 3{4 3$, %&10, 0&". ;._2 [ 0 : 0
_3 _9 _4
 3 _9 _4
 0  0  2
 0  8 _4
)

Please play with this and help.


-- 
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to