|
From: Johan O. <joh...@pp...> - 2000-12-15 19:37:41
|
Hi, I'm having troubles getting Stippled lines beeing drawn as sold lines no matter what I do .... I'm able to succesfully compile & link the 'lines' demo in the 'book' subdir ... ... /* in 1st row, 3 lines, each with a different stipple */ glEnable (GL_LINE_STIPPLE); glLineStipple (1, 0x0101); /* dotted */ drawOneLine (50.0, 125.0, 150.0, 125.0); glLineStipple (1, 0x00FF); /* dashed */ drawOneLine (150.0, 125.0, 250.0, 125.0); glLineStipple (1, 0x1C47); /* dash/dot/dash */ drawOneLine (250.0, 125.0, 350.0, 125.0); ... e.t.c ... BUT all I see are solid lines :-( My setup is: Linux 2.2.18 / XFree 3.3.6 / Matrox G400 / utah-glx (OCT 19 2000) / Mesa 3.2 (OCT 19 2000 snapshot) ..... Any clues, I've got none .... BR: Jussi / Finland PS: Quake 3 arena demo runs fine :-) |
|
From: Johan O. <joh...@pp...> - 2000-12-15 20:28:54
|
Johan Olin wrote an writes again ..... > Hi, I'm having troubles getting Stippled > lines beeing drawn as sold lines no matter > what I do .... > I'm able to succesfully compile & link > the 'lines' demo in the 'book' subdir ... > Jesus, get a spellchecker !!!! I'm talking to myself here ...... (must have been drunk ..... half an hour ago ???? what's a 'sold line' ??) My problem is that even if I enable stippled lines and set some stipple-patterns, my lines are drawn solid :-( I've followed the instructions from the "Red Book", copied some bits from the 'lines' demo in the 'book' subdir and re-compiled the entire driver/lib stuff but those d**n lines refuse to stipple themselves ....... > Mesa_xx_xx_xx/book/lines.c : > ... > /* in 1st row, 3 lines, each with a different stipple */ > glEnable (GL_LINE_STIPPLE); > > glLineStipple (1, 0x0101); /* dotted */ > drawOneLine (50.0, 125.0, 150.0, 125.0); > glLineStipple (1, 0x00FF); /* dashed */ > drawOneLine (150.0, 125.0, 250.0, 125.0); > glLineStipple (1, 0x1C47); /* dash/dot/dash */ > drawOneLine (250.0, 125.0, 350.0, 125.0); > ... e.t.c ... 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 ..... ) 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 PS. Quake 3 arena demo runs fine :-) (as root...) |
|
From: Johan O. <joh...@pp...> - 2001-01-01 14:16:02
|
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 ... 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 |
|
From: Brian P. <br...@va...> - 2001-01-02 22:21:22
|
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'. > 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. -Brian |
|
From: <joh...@pp...> - 2001-01-03 08:21:10
|
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' ..... > > > > 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 ?? > > -Brian > BR: Johan -- ________________________________________________________________ Ilmainen Internet @ http://www.nic.fi/ |
|
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 |
|
From: Johan O. <joh...@pp...> - 2001-01-04 16:46:24
|
Johan Olin writes once again ...... As usual, I was barking up the wrong tree .... The source of the problem is the glx-driver .... Lines ar extremely stippled when disabling HW acceleration :-) Sorry ...... BR: Johan Johan Olin wrote: > > Johan Olin wrote an writes again ..... > > > Hi, I'm having troubles getting Stippled > > lines beeing drawn as sold lines no matter > > what I do .... > > I'm able to succesfully compile & link > > the 'lines' demo in the 'book' subdir ... > > > > Jesus, get a spellchecker !!!! I'm talking to myself here ...... > (must have been drunk ..... half an hour ago ???? what's a 'sold line' > ??) > > My problem is that even if I enable stippled lines and > set some stipple-patterns, my lines are drawn solid :-( > I've followed the instructions from the "Red Book", > copied some bits from the 'lines' demo in the 'book' subdir > and re-compiled the entire driver/lib stuff but those > d**n lines refuse to stipple themselves ....... > > > Mesa_xx_xx_xx/book/lines.c : > > ... > > /* in 1st row, 3 lines, each with a different stipple */ > > glEnable (GL_LINE_STIPPLE); > > > > glLineStipple (1, 0x0101); /* dotted */ > > drawOneLine (50.0, 125.0, 150.0, 125.0); > > glLineStipple (1, 0x00FF); /* dashed */ > > drawOneLine (150.0, 125.0, 250.0, 125.0); > > glLineStipple (1, 0x1C47); /* dash/dot/dash */ > > drawOneLine (250.0, 125.0, 350.0, 125.0); > > ... e.t.c ... > > 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 ..... ) > > 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 > > PS. Quake 3 arena demo runs fine :-) (as root...) > > _______________________________________________ > Mesa3d-users mailing list > Mes...@li... > http://lists.sourceforge.net/mailman/listinfo/mesa3d-users |