graphics - OpenGL application fades when texturing an object -


i have application animates person traversing halls of spaceship. have created opengl dll application links to. purpose of opengl dll intercept specific calls, , when these calls intercepted.

the main call concerned intercepting wglswapbuffer ( think thats name ). in call, render 3d object ( half sphere or half cylinder ) , specify texture coordinates each vertex. capture output of framebuffer, , use texture contents of sphere using glcopyteximage2d, or that.

after stuff, dll calls real dll , real swapbuffer method called.

when place dll in same folder application, expect, dome graphics textured onto it. did not expect screen fades constently. mean looks way supposed to, , on second interval, screen fade completly black, , come being normal. repeats average frequency of second, faster, slower, seems depend on hard processor working.

any ideas?

turns out blending. in swapbuffer method, disabled blending, did stuff, , re-enabled blending, , works.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -