Message: 18
Date: Tue, 6 Mar 2007 09:30:58 +0000
From: "Robert Osfield" <[EMAIL PROTECTED]>
Subject: Re: [osg-users] windowing & double-buffering in osgPython
To: "osg users" <[email protected]>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Matt,

I double the traits.width has little to do with the issues.  One way
of checking to see if traits.width has been applied is to read it back
and print out the result.

When I try to set the values of traits' member variables like so...

traits._width = 600

... I'm worried that I'm actually just dynamically appending a python int to 
the python traits wrapper, without actually changing the value of the 
underlying C++ object's _width field. Therefore, successfully reading it back 
wouldn't indicate that all was well. For example, I could just as easily write

traits.thisMemberDoesntExist = 600
print traits.thisMemberDoesntExist

I can read this value back, but this certainly doesn't mean that I've set the value of the underlying C++ Trait's thisMemberDoesntExist field, since it doesn't exist.
Unless there's a way to read the underlying C++ object's fields directly, 
there's no way to confirm that the underlying object's being changed.

Miguel, does the python Traits wrapper have its fields implemented as python Properties, 
so that setting "traits._width = 600" actually changes the underlying C++ 
instance?

Perhaps something you could try is running the OSG with notification
level set up high i.e.

   export OSG_NOTIFY_LEVEL=DEBUG
   runmyapp myodel.osg

I tried this, but don't think it picked up anything interesting. I may be 
wrong, so I've enclosed it below. The sole error is at the second line from the 
bottom.

-- Matt

OSG debug spew:
################

Opened DynamicLibrary osgwrapper_osgText.so
CullSettings::readEnvironmentalVariables()
Relaxing traits
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc888b8
BadValue (integer parameter out of range for operation)
Major opcode: 1
Minor opcode: 0
Error code: 2
Request serial: 20
Current serial: 24
 Value: 0
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc888b8
BadWindow (invalid Window parameter)
Major opcode: 18
Minor opcode: 0
Error code: 3
Request serial: 21
Current serial: 24
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc888b8
BadWindow (invalid Window parameter)
Major opcode: 18
Minor opcode: 0
Error code: 3
Request serial: 22
Current serial: 24
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc888b8
BadWindow (invalid Window parameter)
Major opcode: 18
Minor opcode: 0
Error code: 3
Request serial: 23
Current serial: 24
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc888d8
BadWindow (invalid Window parameter)
Major opcode: 10
Minor opcode: 0
Error code: 3
Request serial: 25
Current serial: 28
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc888d8
BadWindow (invalid Window parameter)
Major opcode: 18
Minor opcode: 0
Error code: 3
Request serial: 26
Current serial: 28
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc888d8
BadWindow (invalid Window parameter)
Major opcode: 8
Minor opcode: 0
Error code: 3
Request serial: 27
Current serial: 28
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc88908
BadWindow (invalid Window parameter)
Major opcode: 2
Minor opcode: 0
Error code: 3
Request serial: 49
Current serial: 50
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc88938
BadWindow (invalid Window parameter)
Major opcode: 18
Minor opcode: 0
Error code: 3
Request serial: 53
Current serial: 54
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc888e8
BadWindow (invalid Window parameter)
Major opcode: 3
Minor opcode: 0
Error code: 3
Request serial: 55
Current serial: 56
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84f6db0 event=0xbfc88938
BadWindow (invalid Window parameter)
Major opcode: 2
Minor opcode: 0
Error code: 3
Request serial: 7
Current serial: 8
 ResourceID: 62914563
GraphicsContext::createNewContextID() creating contextID=0
Doing remove all operations
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
Doing add
Doing remove all operations
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
Doing add
Got an X11ErrorHandling call display=0x84f6db0 event=0xbfc88cb8
BadWindow (invalid Window parameter)
Major opcode: 38
Minor opcode: 0
Error code: 3
Request serial: 9
Current serial: 9
 ResourceID: 62914563
Viewer::startThreading() - starting threading
View::init()
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc88074
BadWindow (invalid Window parameter)
Major opcode: 8
Minor opcode: 0
Error code: 3
Request serial: 57
Current serial: 58
 ResourceID: 62914563
Got an X11ErrorHandling call display=0x84ab598 event=0xbfc88074
GLXBadDrawable
Major opcode: 143
Minor opcode: 5
Error code: 158
Request serial: 58
Current serial: 58
 ResourceID: 62914563
Doing op Render 0x84ab2a8
OpenGL extension 'GL_EXT_secondary_color' is not supported.
OpenGL extension 'GL_EXT_fog_coord' is not supported.
OpenGL extension 'GL_ARB_multitexture' is not supported.
OpenGL extension 'GL_NV_occlusion_query' is not supported.
OpenGL extension 'GL_ARB_occlusion_query' is not supported.
OpenGL extension 'GL_EXT_timer_query' is not supported.
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
Uniform Adding parent
OpenGL extension '' is not supported.
OpenGL extension 'GL_EXT_framebuffer_object' is not supported.
OpenGL extension 'GL_ARB_vertex_program' is not supported.
OpenGL extension 'GL_ARB_fragment_program' is not supported.
Error: OpenGL version test failed, requires valid graphics context.
Setting up osg::Camera::FRAME_BUFFER


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to