View Full Version : Line Stippling

09-10-2001, 10:42 AM
Everything I read indicates that line stippling is based on a 16 bit pattern. Is there a way to input a pattern that is not divisible into 16? I have patterns that must repeat after 6 or 7 bits and end up with either dashes or spaces that are too long when the 16 bits repeat.

Kilam Malik
09-11-2001, 02:54 AM
It should be possible to use a 1D texture here with alpha testing. Instead of using the stippling function.

[This message has been edited by Kilam Malik (edited 09-11-2001).]

09-26-2001, 05:55 PM
I think it would just be easier to manually "scale up" your bit pattern, like if you're only using this:

(MSB) 110110

...use a pattern like this instead:

(MSB) 1111100011111000

...and then set the scale parameter for glLineStipple() to get your sizing properly. Alternatively, you could repeat your pattern over 16 bits.