[osg-users] Vec3b/Vec4b for color array problem

2013-03-25 Thread Bram Vaessen
Hi, To save some memory I am trying to use 3 unsigned bytes for the color of my vertices (they are generated) instead of the 4 floats I had before. Before it was set to Vec3Array, and now Vec3bArray. (actually last thing I tried is Vec4bArray), but I only get black colors. I'm sure I'm not

Re: [osg-users] Vec3b/Vec4b for color array problem

2013-03-25 Thread Robert Osfield
Hi Bram, osg::Geometry is written to primarily use Vec3Array for vertices, while non Vec3Array can be passed to OpenGL these non Vec3Array won't support computation of bounding volumes etc. so problems such as incorrect culling could result. I would recommend use Vec3Array. If you really have