|
From: Brian P. <br...@va...> - 2001-01-03 20:23:20
|
joh...@pp... wrote: > > Brian Paul <br...@va...> wrote: > > > Johan Olin wrote: > > > > > > Hello !!! anybody out there that could help a newbie > > > with an annoying problem ?? > > > > > > I'm trying to draw some center-lines for a > > > cube. Center-lines are usually drawn dashed > > > (or dash-dotted, or whatever ...) > > > OK, enable GL_LINE_STIPPLE and set some > > > nice stipple pattern ... > > > > > > I did this .... solid lines ..... > > > > > > I then found the 'lines' demo in the 'book' > > > subdir of the Mesa package. > > > According to the code and the comments > > > it should draw some stippled lines ... > > > > Yes, when you press '1'. > > I'm not really 100% postitive that we're talking about the same demo ... > The one I refer to is found from the 'book' subir and is called lines.c > (Mesa-3.2/book/lines.c) > > The keyboard handler has an action for ESC (exit(0)), that's it ...... > According to the source-code is should draw some horizontal lines > using different stipple-patterns. > > I suppose you refer to the 'samples/line.c' demo which has a kb-handler/action > for ESC, '1', '2', 'W' and 'w' ..... Yes, that's the demo I was referring to. It works for me with Mesa 3.4 and 3.5. I haven't tested with any earlier version of Mesa but I'd be surprised if it didn't work. > > > BUT !!! > > > > > > All I see is a bunch of SOLID lines !!!! > > > The problem applies to both my own "creations" > > > and the demos/samples found in the Mesa distr. > > > > > > Everything else I've tried out so far seems to work :-) > > > (rotating cubes, spheres, teapots in all possible colors, > > > objects rotating in different directions e.t.c ..... ) > > > > > > My HW/SW setup is: > > > Linux 2.2.18 / XFree 3.3.6 / Matrox G400 / > > > utah-glx (OCT 19 2000) / Mesa 3.2 (OCT 19 2000 snapshot) ..... > > > Configured with '--enable-extras' (glut, GLU e.t.c. ...) > > > > > > BR. Jussi / Finland > > > > Line stipple works for me. If your program is easy to use I could > > try it out here. > > I'd be interested in your HW/SW setup .... > What versions of Mesa + "accessories" (glut, glx ,e.t.c ....) > Target platform ?? I'm testing with software rendering using the glut included with Mesa. I'm using a generic PIII system with RedHat 6.2 (which really is irrelevant). I see that you're using Utah-GLX. I have no idea if the Utah G400 driver supports stippled lines. You'll have to ask them. -Brian |