CustomGraphicsPointSet Colour property
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I've been experimenting with rendering some point data using the CustomGraphicsPointSet. In terms of geometry it's working fine, however I don't appear to be able to change the colour of the data to anything other than bright green. It's not 100% clear from the documentation whether you can change the colour property of PointSets but it appears to suggest you can.
Below is how I create my PointSet
Ptr<CustomGraphicsCoordinates> coordinates = CustomGraphicsCoordinates::create(points);
coordinates->colors(colours);
pointSet = cgGroup->addPointSet(coordinates, std::vector<int>(), CustomGraphicsPointTypes::PointCloudCustomGraphicsPointType, "");
And here is how I attempt to change the colour
Ptr<CustomGraphicsSolidColorEffect> solidRed = CustomGraphicsSolidColorEffect::create(Color::create(255, 0, 0, 255));
//Ptr<CustomGraphicsVertexColorEffect> colorEffect = CustomGraphicsVertexColorEffect::create();
bool result = pointSet->color(solidRed);
The result always appears to be "true", however the display always shows the PointSet as green.
Am I missing something or is this just a limitation of the SDK?
Thank you!
Mark