Problem with clipmaps and glPushAttrib

New Message Reply Date view Thread view Subject view Author view

From: Ken Sewell (sewell++at++donet.com)
Date: 10/17/2001 11:06:04


        I have an application that draws terrain w/clipmap
in one channel and some OpenGL geometry in the other. In
the OpenGL draw callback, I call glPushAttrib with the
texture bit set. When I do this I get a strange effect on
the clipmap. At the border of every cliplevel, there
is a stripe of imagery than does not belong. The imagery
is from elsewhere in the clipmap. After about a second the
stripe is replaced by the correct imagery. About a second
later it repeats. My best guess is that the clipcenter is
being updated but its being drawn before the cliptexture is
updated. If I don't call glPushAttrib, my terrain shows up,
but no cliptexture.
        Right now I've stripped down the callback for the
OpenGL channel, all it does is glPushAttrib, glClear, and
glPopAttrib and I get this effect. Has anyone encountered
this problem before? Attached is a screenshot showing the
cliptexture problem. Thanks.

Ken.

-- 
Ken Sewell			Defense Research Associates
Project Engineer		1430 Oak Ct., Suite 303
sewell++at++dramail.com		Beavercreek, Ohio  45430
937-255-2811 x4377 (voice)      937-255-6663 (fax)


clipedges.jpg


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Oct 17 2001 - 11:03:59 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.