Set osg::Point size #2863
Replies: 3 comments 1 reply
-
|
osgEarth is all shader-based so some of the old FFP OpenGL stuff does not apply/work. I recommend using the |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
The local pointers to the arrays are private, but the arrays themselves are part of the base auto* verts = dynamic_cast<osg::Vec3Array*>(pointDrawable->getVertexArray());
auto* colors = dynamic_cast<osg::Vec4Array*>(pointDrawable->getColorArray());And operate on it directly. Just to sure to keep the colors array in sync. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Awesome thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm creating points like this,
Later on I add vertex's to the array to have history tracks of targets like this,
I am unable to set the size of the point and it seems to be fixed at 1. What do I need to do?
Beta Was this translation helpful? Give feedback.
All reactions