Sign in to follow this  
ffgu

How can I draw a map with GL_LINE_STIPPLE? URGENT!

Recommended Posts

How can I draw a map with GL_LINE_STIPPLE? I have many points,which can compose a map. The distances between points are very short. I want to know how can I use them to draw a map with the form of stipple line. I have tried any methods, but the results are not what I want. such as ,when I set the second parameter of glLineStipple is 0xcccc or 0xeeee,or 0x3333, the result also like 0x5555(0101 0101 0101 0101) because of the points are very densely. How to solve it, who can help me?

Share this post


Link to post
Share on other sites
You could instead use a quad, combined with a (1D) texture. By manipulating the UV coordinates, and setting the texture parameters to repeat, you'll have a lot more control over your stipple line.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this