Hi, all:

I'm trying to create a cube shape, without any texture on the surfaces, but it should still be able to show the edges. I tried:


Qt Code:
  1. QGLSceneNode *cube = builder.finalizedSceneNode();
  2. QGLMaterial *mat = new QGLMaterial;
  3. mat->setColor( Qt::transparent);
  4. cube->setMaterial(mat);
To copy to clipboard, switch view to plain text mode 


Nothing can be shown up.

If I try
Qt Code:
  1. QGLSceneNode *cube = builder.finalizedSceneNode();
  2. QGLMaterial *mat = new QGLMaterial;
  3. mat->setColor(QColor(255, 0, 0));
  4. cube->setMaterial(mat);
To copy to clipboard, switch view to plain text mode 

This will show up a cube with texture on all surfaces.


Is there a method to show just the edges (maybe I can specify the edge width, or even emphasize the vertexes), but not the surfaces?



Cheers
Pei