Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
sreejond
Posts: 49
Registered: ‎03-27-2013
My Device: z10

Draw smooth path from a set of vertex by OpenGL ES 1.1

In my project I need to draw a path from a set of vertex. As I am using OpenGL ES 1.1 in my application I need to do it using OpenGL. But I came to know that anti-aliasing is not supported in OpenGL ES 1.1.

 

How can I solve my problem by using OpenGL ES 1.1? The path should look like path between two places in google map.

 

Thanks in advance.

Please use plain text.
Developer
indy2718
Posts: 36
Registered: ‎01-16-2013
My Device: Z10

Re: Draw smooth path from a set of vertex by OpenGL ES 1.1

[ Edited ]

You can try using enabling line smoothing. 

glEnable(GL_LINE_SMOOTH);

- change the glLineWidth
- use GL_LINES

 

If the anti-aliasing is still not correct, just draw a bunch of lines on top of each other with different thinknesses and alpha values.

 

edit: also set up blending

Please use plain text.
Developer
sreejond
Posts: 49
Registered: ‎03-27-2013
My Device: z10

Re: Draw smooth path from a set of vertex by OpenGL ES 1.1

[ Edited ]

Thanks for your reply.

 

Actually my path is not a straight line. My path will look like below-

google-map-boulder-ua-colorado-center-path.png

 

So, to draw a smooth path from a set of coordinate I need to take care of angel between two line. Actually I need round shape in common vertex. Can you give me any idea how to solve this issue?

Please use plain text.