randomize color by feature: osgviewerd -e ogr -O UseRandomColorByFeature yourFile"
.shp ...) ogr is a part of gdal so i added the build of ogr plugin if gdal is found. to test it osgviewerd -e ogr file.tab or osgviewerd -e ogr file.gml or osgviewerd -e ogr file.shp "