PDA

View Full Version : the best way to create a 'path line after plane'



miroslav_karpis
04-23-2009, 05:57 AM
Hi, please can you help me with this?

I'm displaying a plane flying on a map (the map texture is moving based on the input parameters). Now I would like to create a 'path'/line to show where did the plane flight.

Most probably I have to use GL_LINE_STRIP and a buffer? that I would always fill with the new coordinates.

Is there not some other possibility? like:
1 - draw point on a new layer
2 - save the 'layer' as an image
3 - get coordinates and draw them in the image
4 - display the image

maybe too crazy solution?,...

do you have pls. some other ideas?

MaxH
04-23-2009, 03:11 PM
I'm displaying a plane flying on a map (the map texture is moving based on the input parameters). Now I would like to create a 'path'/line to show where did the plane flight.

Most probably I have to use GL_LINE_STRIP and a buffer? that I would always fill with the new coordinates.

I always go with the simplest approach first, which is using lines (as you mention above). Not sure why you are leaning towards generating images?