|
From: Daniele C. <dca...@in...> - 2007-09-18 14:14:46
|
I used OpenGL Extensions Viewer for test my video card and in report are present GL_EXT_framebuffer_object. I must control other extension? For to be sure to render offscreen after render onscreen I get drawcontext with Q3View_GetDrawContext and I use it for master draw Context, but Q3Object_GetProperty with KQ3DrawContextPropertyGLContext is not success. James Walker ha scritto: > Daniele Cavallini wrote: > >> I tried to set stencil bits at 0,8,32 value. >> If I create a drawcontext from video: >> >> TQ3Win32DCDrawContextData myWin32DrawContextData; >> CClientDC DC(theWindow); >> HDC hwin= (HDC) DC; >> myWin32DrawContextData.hdc = hwin; >> myDrawContext=Q3Win32DCDrawContext_New(&myWin32DrawContextData) ; >> Shadows are nicely visible. >> It is not necessary set stencil bits. >> > > True, there is a function AdjustStencilAndDepthForShadows that will set > stencil bits for you if you try to render shadows. > > >> So I think it is not a problem caused from videocard. >> > > That does not follow. If your video card lacks the FBO extension, then > you will not be able to do hardware-accelerated offscreen rendering. > > |