Results 1 to 2 of 2

Thread: Stipple Problem - solve with textures?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2006

    Stipple Problem - solve with textures?

    I need to apply dash patterns to lines such that the patterns scale with the window size. I'm using the regular stipple functions right now, but when the window is resized the pattern doesn't shrink or expand to preserve the number of dashes on a given line.

    Is this something that can be done with textures (or some other method)? If so, does anyone know of a good tutorial on applying 1-D textures to lines? I've searched high and low and have found nothing. Thanks in advance for any help you can offer.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2006

    Re: Stipple Problem - solve with textures?

    Yes it could.
    the method is the same as when using 2D textures
    Only that you use a 1D texture and 1D texture coordinates.
    You could also use 2D textures if you don't want to do that.

Similar Threads

  1. Help me to solve the problem?
    By dweepdevil in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-09-2012, 07:51 AM
  2. solve my problem
    By prabhakaran in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-31-2008, 06:53 AM
  3. Stipple pattern mis-alignment problem
    By sharp in forum OpenGL: Windows
    Replies: 1
    Last Post: 05-16-2006, 06:53 PM
  4. Please help how do i solve a problem
    By bozland in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-24-2003, 10:39 AM
  5. solve this problem!
    By in forum OpenGL: User Software
    Replies: 1
    Last Post: 12-05-2002, 03:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean