I have been playing with this a bit form time to time, and i just downloaded this am the head of the subversion tree and rebuilt osg to see if it changed anything. still doesnt work. i have looked at the event handling and all events are being handled (mouse/keyboard/ update) and the values being passed to the viewer are the same as the values passed in the osgviewerGLUT. So i am pretty sure that there is no problem with events. That leaves drawing. is it possible that the graphics context is setup for like double buffering and not swapping or something like that? Resize works correctly and redraws, but that is the only event that seems to cause a redraw based on events.

Attached is the trace from running the program. it opens up the image, then nothing is reported in the trace in response to mouse click, drag etc.

its like nothing is getting passed to osg. however the qt events are being received, and they are passing the viewer the correct values for example in mouse press

_gw->getEventQueue()->mouseButtonPress(event->x(), event->y(), button);

gets correct values or x, y, and button (or at least the values passed it are the same as those from the glut example).

in mouse move

    _gw->getEventQueue()->mouseMotion(event->x(), event->y());

is being passed the correct x and y.

but from the trace it appears as though nothing is being done inside osg with these values because they don't show up in the trace.

so i supposed the trackballmanipulator could also be doing the wrong thing.

Any ideas??

best jim

-----


[Session started at 2007-10-03 19:04:29 -0400.]
GraphicsContext::setWindowingSystemInterface() 0x1e0a290        0x661740
itr='/Users/hopper/Development/OSG/osgviewerQT/build/Debug'
FindFileInPath() : trying /Users/hopper/Development/OSG/osgviewerQT/ build/Debug/osgdb_OpenFlight.so ... itr='/Users/hopper/Development/OSG/osgviewerQT/build/Debug/ osgviewerQT.app/Contents/PlugIns'

...

Stats after:
Object Type     #Unique #Instanced
StateSet        6       21
Group           31      31
Transform       2       2
LOD             13      13
Switch          0       0
Geode           21      21
Drawable        21      21
Geometry        21      21
Vertices        3646    3646
Primitives      969     969
keepExternalReferences not found, so externals will be re-readed
CullSettings::readEnvironmentalVariables()
GraphicsContext::createNewContextID() creating contextID=0
Doing remove all operations
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
Doing add
View::init()
OpenGL extensions supported by installed OpenGL drivers are:
    GL_APPLE_client_storage
    GL_APPLE_element_array
    GL_APPLE_fence
    GL_APPLE_float_pixels
    GL_APPLE_flush_buffer_range
    GL_APPLE_flush_render
    GL_APPLE_packed_pixels
    GL_APPLE_pixel_buffer
    GL_APPLE_specular_vector
    GL_APPLE_texture_range
    GL_APPLE_transform_hint
    GL_APPLE_vertex_array_object
    GL_APPLE_vertex_array_range
    GL_APPLE_vertex_program_evaluators
    GL_APPLE_ycbcr_422
    GL_ARB_depth_texture
    GL_ARB_draw_buffers
    GL_ARB_fragment_program
    GL_ARB_fragment_program_shadow
    GL_ARB_fragment_shader
    GL_ARB_imaging
    GL_ARB_multisample
    GL_ARB_multitexture
    GL_ARB_occlusion_query
    GL_ARB_pixel_buffer_object
    GL_ARB_point_parameters
    GL_ARB_point_sprite
    GL_ARB_shader_objects
    GL_ARB_shader_texture_lod
    GL_ARB_shading_language_100
    GL_ARB_shadow
    GL_ARB_shadow_ambient
    GL_ARB_texture_border_clamp
    GL_ARB_texture_compression
    GL_ARB_texture_cube_map
    GL_ARB_texture_env_add
    GL_ARB_texture_env_combine
    GL_ARB_texture_env_crossbar
    GL_ARB_texture_env_dot3
    GL_ARB_texture_float
    GL_ARB_texture_mirrored_repeat
    GL_ARB_texture_non_power_of_two
    GL_ARB_texture_rectangle
    GL_ARB_transpose_matrix
    GL_ARB_vertex_blend
    GL_ARB_vertex_buffer_object
    GL_ARB_vertex_program
    GL_ARB_vertex_shader
    GL_ARB_window_pos
    GL_ATI_blend_equation_separate
    GL_ATI_blend_weighted_minmax
    GL_ATI_separate_stencil
    GL_ATI_text_fragment_shader
    GL_ATI_texture_compression_3dc
    GL_ATI_texture_env_combine3
    GL_ATI_texture_float
    GL_ATI_texture_mirror_once
    GL_EXT_abgr
    GL_EXT_bgra
    GL_EXT_blend_color
    GL_EXT_blend_equation_separate
    GL_EXT_blend_func_separate
    GL_EXT_blend_minmax
    GL_EXT_blend_subtract
    GL_EXT_clip_volume_hint
    GL_EXT_compiled_vertex_array
    GL_EXT_draw_range_elements
    GL_EXT_fog_coord
    GL_EXT_framebuffer_object
    GL_EXT_gpu_program_parameters
    GL_EXT_multi_draw_arrays
    GL_EXT_packed_depth_stencil
    GL_EXT_rescale_normal
    GL_EXT_secondary_color
    GL_EXT_separate_specular_color
    GL_EXT_shadow_funcs
    GL_EXT_stencil_two_side
    GL_EXT_stencil_wrap
    GL_EXT_texture_compression_dxt1
    GL_EXT_texture_compression_s3tc
    GL_EXT_texture_env_add
    GL_EXT_texture_filter_anisotropic
    GL_EXT_texture_lod_bias
    GL_EXT_texture_mirror_clamp
    GL_EXT_texture_rectangle
    GL_IBM_rasterpos_clip
    GL_NV_blend_square
    GL_NV_fog_distance
    GL_NV_light_max_exponent
    GL_NV_texgen_reflection
    GL_SGIS_generate_mipmap
    GL_SGIS_texture_edge_clamp
    GL_SGIS_texture_lod
    GL_SGI_color_matrix
OpenGL extension 'GL_ARB_vertex_program' is supported.
OpenGL extension 'GL_EXT_secondary_color' is supported.
OpenGL extension 'GL_EXT_fog_coord' is supported.
OpenGL extension 'GL_ARB_multitexture' is supported.
OpenGL extension 'GL_NV_occlusion_query' is not supported.
OpenGL extension 'GL_ARB_occlusion_query' is 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 supported.
OpenGL extension 'GL_ARB_vertex_program' is supported.
OpenGL extension 'GL_ARB_fragment_program' is supported.
OpenGL extension 'GL_ARB_shader_objects' is supported.
OpenGL extension 'GL_ARB_vertex_shader' is supported.
OpenGL extension 'GL_ARB_fragment_shader' is supported.
OpenGL extension 'GL_ARB_shading_language_100' is supported.
glVersion=2, isGlslSupported=YES, glslLanguageVersion=1.1
OpenGL extension 'GL_ARB_pixel_buffer_object' is supported.
Setting up osg::Camera::FRAME_BUFFER
OpenGL extension 'GL_EXT_texture_filter_anisotropic' is supported.
OpenGL extension 'GL_EXT_texture_compression_s3tc' is supported.
OpenGL extension 'GL_ARB_shadow' is supported.
OpenGL extension 'GL_ARB_shadow_ambient' is supported.
OpenGL extension 'GL_APPLE_client_storage' is supported.
Disabling _isNonPowerOfTwoTextureMipMappedSupported for ATI hardware.
OpenGL extension 'GL_EXT_secondary_color' is supported.
OpenGL extension 'GL_EXT_fog_coord' is supported.
Closing DynamicLibrary osgdb_OpenFlight.so
Closing DynamicLibrary osgdb_rgb.so
GraphicsContext::setWindowingSystemInterface() 0        0x661740

osgviewerQT has exited with status 0.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to