Hello
Could you please help me with the following problem. I need to show
ROUND points with the constant screen size. In other words I need to show
round points with the constant radius in pixels. It does not matter
how close or far in the scene they are, they must have the same radius
in pixels.
What I need is something like glPointSize.
Now I did it in the following way:
Ogre::ManualObject* Point = aSceneManager->createManualObject("Point");
Point->begin("BaseWhite", Ogre::RenderOperation::OT_POINT_LIST);
Point->position(Ogre::Vector3(0.0, 0.0, 0.0));
Point->index(0);
Point->position(Ogre::Vector3(0.0, 0.0, 0.0));
Point->index(1);
Point->position(Ogre::Vector3(0.0, 0.0, 0.0));
Point->index(2);
Point->end();
Point size is set with the help of Ogre::Technique* tech->setPointSize(newSize);
Unfortunately, this way gives me SQUARED points, not ROUND. Is there
any solution for that?
I use Ogre 1.12.11
Round points with constant radius in pixels
-
- Gnoblar
- Posts: 2
- Joined: Thu Feb 15, 2018 12:13 pm
-
- OGRE Team Member
- Posts: 2108
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1134
Re: Round points with constant radius in pixels
the points can be textured, so simply use a circle as a texture.