My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 58: Trouble with FBO on some ATI Cards
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  txprog
Closed:  Apr 2009


 
Project Member Reported by txprog, Mar 31, 2009
Knochi on IRC have trouble with Fbo and his ATI Cards.
It seem using Hardware Fbo, and he it a crash on glClear() when he are in a
Framebuffer context.

Next comment will show the error in 3Dviewer, 3Ddrawing, and opengl trace.

I've tested:
* with or without depth buffer in fbo
* explicit set of glClearColor() and glClearDepth()
Mar 31, 2009
Project Member #1 txprog
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Python26\pymt0,2\examples\3Dviewer>python 3Dviewer.py
[INFO              ] Fbo will use hardware Framebuffer
C:\Python26\lib\site-packages\pymt\obj.py:63: UserWarning: Unknown material: (nu
ll)
  warnings.warn('Unknown material: %s' % values[1])
[INFO              ] listening for Tuio on 127.0.0.1:3333
[INFO              ] Leaving application in progress...
Traceback (most recent call last):
  File "3Dviewer.py", line 172, in <module>
    runTouchApp()
  File "C:\Python26\Lib\site-packages\pymt\mtpyglet.py", line 477, in runTouchApp
    pymt_evloop.run()
  File "C:\Python26\Lib\site-packages\pyglet\app\win32.py", line 47, in run
    self._setup()
  File "C:\Python26\Lib\site-packages\pyglet\app\__init__.py", line 153, in _setup
    window.dispatch_pending_events()
  File "C:\Python26\lib\site-packages\pyglet\window\win32\__init__.py", line 842, in
dispatch_pending_events
    event[0](*event[1:])
  File "C:\Python26\lib\site-packages\pyglet\window\win32\__init__.py", line 1120, in
_event_size
    self._immediate_redraw()
  File "C:\Python26\lib\site-packages\pyglet\window\win32\__init__.py", line 1073, in
_immediate_redraw
    self.dispatch_event('on_draw')
  File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line 1217, in
dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "C:\Python26\Lib\site-packages\pyglet\event.py", line 349, in dispatch_event
    getattr(self, event_type)(*args)
  File "C:\Python26\Lib\site-packages\pymt\ui\window.py", line 174, in on_draw
    w.dispatch_event('on_draw')
  File "C:\Python26\Lib\site-packages\pymt\ui\widgets\widget.py", line 286, in
dispatch_event
    if getattr(self, event_type)(*args):
  File "3Dviewer.py", line 30, in on_draw
    self.draw3D()
  File "3Dviewer.py", line 37, in draw3D
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
  File "C:\Python26\Lib\site-packages\pyglet\gl\lib.py", line 105, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: None

C:\Python26\pymt0,2\examples\3Dviewer>

Mar 31, 2009
Project Member #2 txprog
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 295, in 'calling callback function'
  File "C:\Python26\lib\site-packages\pyglet\window\win32\__init__.py", line 849, in
_wnd_proc
    result = event_handler(msg, wParam, lParam)
  File "C:\Python26\lib\site-packages\pyglet\window\win32\__init__.py", line 995, in
_event_mousemove
    x, y, dx, dy, buttons, modifiers)
  File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line 1217, in
dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "C:\Python26\Lib\site-packages\pyglet\event.py", line 349, in dispatch_event
    getattr(self, event_type)(*args)
  File "C:\Python26\Lib\site-packages\pymt\ui\window.py", line 239, in on_mouse_drag
    if w.dispatch_event('on_mouse_drag',x, y, dx, dy, button, modifiers):
  File "C:\Python26\Lib\site-packages\pymt\ui\widgets\widget.py", line 286, in
dispatch_event
    if getattr(self, event_type)(*args):
  File "C:\Python26\lib\site-packages\pymt\ui\simulator.py", line 54, in on_mouse_drag
    self.output.dispatch_event('on_touch_move', self.touches, cur.blobID, x, y)
  File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line 1217, in
dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "C:\Python26\Lib\site-packages\pyglet\event.py", line 349, in dispatch_event
    getattr(self, event_type)(*args)
  File "C:\Python26\Lib\site-packages\pymt\ui\window.py", line 224, in on_touch_move
    if w.dispatch_event('on_touch_move', touches, touchID, x, y):
  File "C:\Python26\Lib\site-packages\pymt\ui\widgets\widget.py", line 286, in
dispatch_event
    if getattr(self, event_type)(*args):
  File "3ddrawing.py", line 183, in on_touch_move
    pick = self.pick(x,y)
  File "3ddrawing.py", line 154, in pick
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
  File "C:\Python26\Lib\site-packages\pyglet\gl\lib.py", line 105, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: None

Mar 31, 2009
Project Member #3 txprog
glGetString(7936)
glGetString(7937)
glGetString(7939)
glGetString(7938)
glGetString(7936)
glGetString(7937)
glGetString(7939)
glGetString(7938)
gluGetString(100801)
gluGetString(100800)
[INFO              ] Fbo will use hardware Framebuffer
gluNewTess()
gluTessNormal(<pyglet.gl.glu.LP_st, 0, 0, 1)
gluTessProperty(<pyglet.gl.glu.LP_st, 100140, 100131)
glGetString(7936)
glGetString(7937)
glGetString(7939)
glGetString(7938)
<WinFunctionType object at 0x060D1558>(1, <cparam 'P' (060BC91)
<WinFunctionType object at 0x060D1648>(36160, c_ulong(1L))
<WinFunctionType object at 0x060D1738>(1, <cparam 'P' (060BC9B)
<WinFunctionType object at 0x060D1828>(36161, c_ulong(1L))
<WinFunctionType object at 0x060D1918>(36161, 6402, 1280, 1024)
<WinFunctionType object at 0x060D1A08>(36160, 36096, 36161, c_ulong(1L))
glGenTextures(1, <cparam 'P' (060BCA0)
glBindTexture(3553, c_ulong(1L))
glTexParameteri(3553, 10240, 9729)
glTexParameteri(3553, 10241, 9729)
glTexImage2D(3553, 0, 6408, 1280, 1024, 0, 6407, 5121, 0)
<WinFunctionType object at 0x060D1AF8>(36160, 36064, 3553, c_ulong(1L), 0)
<WinFunctionType object at 0x060D1828>(36161, 0)
<WinFunctionType object at 0x060D1648>(36160, 0)
<WinFunctionType object at 0x060D1BE8>(36160)

Warning (from warnings module):
  File "C:\Python26\lib\site-packages\pymt\obj.py", line 63
    warnings.warn('Unknown material: %s' % values[1])
UserWarning: Unknown material: (null)
glMatrixMode(5888)
glPushMatrix()
glLoadIdentity()
glGetFloatv(2982, <__main__.c_float_Ar)
glPopMatrix()
glViewport(0, 0, 640, 480)
[INFO              ] listening for Tuio on 127.0.0.1:3333
glMatrixMode(5889)
glLoadIdentity()
glFrustum(-320, 320, -240, 240, 0.10000000000000001, 1000)
glScalef(5000, 5000, 1)
glTranslatef(-320, -240, -500)
glMatrixMode(5888)
glClearColor(0.17647058823529413, 0.17647058823529413, 0.17647058823529413, 1)
glClear(16640)
<WinFunctionType object at 0x060D1648>(36160, c_ulong(1L))
glPushAttrib(2048)
glViewport(0, 0, 1280, 1024)
glClearColor(0, 0, 0, 1)
glClearDepth(0)
glClear(16384)
<WinFunctionType object at 0x060D1648>(36160, 0)
[INFO              ] Leaving application in progress...

Traceback (most recent call last):
  File "C:\Python26\pymt0,2\examples\3Dviewer\3Dviewer.py", line 180, in <module>
    runTouchApp()
  File "C:\Python26\Lib\site-packages\pymt\mtpyglet.py", line 477, in runTouchApp
    pymt_evloop.run()
  File "C:\Python26\Lib\site-packages\pyglet\app\win32.py", line 47, in run
    self._setup()
  File "C:\Python26\Lib\site-packages\pyglet\app\__init__.py", line 153, in _setup
    window.dispatch_pending_events()
  File "C:\Python26\lib\site-packages\pyglet\window\win32\__init__.py", line 842, in
dispatch_pending_events
    event[0](*event[1:])
  File "C:\Python26\lib\site-packages\pyglet\window\win32\__init__.py", line 1120, in
_event_size
    self._immediate_redraw()
  File "C:\Python26\lib\site-packages\pyglet\window\win32\__init__.py", line 1073, in
_immediate_redraw
    self.dispatch_event('on_draw')
  File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line 1217, in
dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "C:\Python26\Lib\site-packages\pyglet\event.py", line 349, in dispatch_event
    getattr(self, event_type)(*args)
  File "C:\Python26\Lib\site-packages\pymt\ui\window.py", line 174, in on_draw
    w.dispatch_event('on_draw')
  File "C:\Python26\Lib\site-packages\pymt\ui\widgets\widget.py", line 286, in
dispatch_event
    if getattr(self, event_type)(*args):
  File "C:\Python26\pymt0,2\examples\3Dviewer\3Dviewer.py", line 36, in on_draw
    self.draw3D()
  File "C:\Python26\pymt0,2\examples\3Dviewer\3Dviewer.py", line 45, in draw3D
    glClear(GL_COLOR_BUFFER_BIT)
  File "C:\Python26\Lib\site-packages\pyglet\gl\lib.py", line 105, in errcheck
    raise GLException(msg)
GLException: None

Apr 2, 2009
Project Member #4 txprog
http://groups.google.com/group/pymt-dev/browse_thread/thread/60ffb59ef26a83fa


Texture must be non-power of 2
Status: Started
Apr 2, 2009
Project Member #5 txprog
(No comment was entered for this change.)
Labels: Component-Core
Apr 6, 2009
Project Member #6 txprog
(No comment was entered for this change.)
Status: Done

Powered by Google Project Hosting