View Full Version : Line Stippling
09-10-2001, 11: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.
09-11-2001, 03: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, 06:55 PM
I think it would just be easier to manually "scale up" your bit pattern, like if you're only using this:
...use a pattern like this instead:
...and then set the scale parameter for glLineStipple() to get your sizing properly. Alternatively, you could repeat your pattern over 16 bits.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.