-----Original Message----- From: Ethan Fahy Sent: 13 January 2014 14:13 The only solution I can think of is to split the single building geometry up so that each primitive in the building is its own geometry so that there are no shared vertices within the geometries and I can color each vertex by the color of the primitive.
---- The better solution is to traverse all of the faces in your previous data and generate new a new array of vertices, adding each vertex as it occurs in each face. This will mean that each shared vertex is duplicated. Then (or at the same time in your loop) you need to create a colour array with one copy of the appropriate face colour for each of your vertices. This is better because it is more efficient to render primitives in larger batches. Alistair Baxter Software Engineer ________________________________ Have you downloaded your FREE copy of FieldMove Clino? Find out more about our app for iPhone and Android smartphones: http://news.mve.com/fieldmoveclino Midland Valley Exploration Ltd. 144 West George Street Glasgow G2 2HG United Kingdom Tel: +44 (0) 141 332 2681 Fax: +44 (0) 141 332 6792 The structural geology experts _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

