Hi,
I've successfully compiled OSG and 3rd party libs for Windows, Mac, iOS, and
Android. I am able to see my example program with textures on all devices
successfully. All except for 1 PC. Works great on other Windows PC's.. just
not this one. No textures.
My CMAKE settings for mobile devices are:
------------------------------------------------
OSG_GL1_AVAILABLE OFF
OSG_GL2_AVAILABLE OFF
OSG_GL3_AVAILABLE OFF
OSG_GLES1_AVAILABLE ON
OSG_GLES2_AVAILABLE OFF
OSG_GL_DISPLAYLISTS_AVAILABLE OFF
OSG_GL_MATRICES_AVAILABLE ON
OSG_GL_VERTEX_FUNCS_AVAILABLE ON
OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE ON
OSG_GL_FIXED_FUNCTION_AVAILABLE ON
OSG_CPP_EXCEPTIONS_AVAILABLE ON
My CMAKE settings for desktops are:
------------------------------------------
OSG_GL1_AVAILABLE ON
OSG_GL2_AVAILABLE ON
OSG_GL3_AVAILABLE OFF
OSG_GLES1_AVAILABLE OFF
OSG_GLES2_AVAILABLE OFF
OSG_GL_DISPLAYLISTS_AVAILABLE OFF
OSG_GL_MATRICES_AVAILABLE ON
OSG_GL_VERTEX_FUNCS_AVAILABLE ON
OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE ON
OSG_GL_FIXED_FUNCTION_AVAILABLE ON
OSG_CPP_EXCEPTIONS_AVAILABLE OFF
Here is the Notify log for the desktop that will NOT show textures:
---------------------------------------------------------------------------
CullSettings::readEnvironmentalVariables()
Render::Render() 00C91CB8
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
ShaderComposer::ShaderComposer() 00BE1100
ShaderComposer::ShaderComposer() 00BE1068
_availableQueue.size()=2
Applying osgViewer::ViewConfig : SingleWindow
GraphicsContext::getWindowingSystemInterface() 004E1830 02A0E1E0
GraphicsContext::registerGraphicsContext 00C9FE40
ShaderComposer::ShaderComposer() 00BE1230
GraphicsContext::createNewContextID() creating contextID=0
Updating the MaxNumberOfGraphicsContexts to 1
View::setUpViewOnSingleScreen - GraphicsWindow has been created successfully.
View::setSceneData() Reusing exisitng scene00C8F7D0
osg::State::_maxTexturePoolSize=0
osg::State::_maxBufferObjectPoolSize=0
OpenGL extensions supported by installed OpenGL drivers are:
GL_AMD_performance_monitor
GL_ARB_depth_texture
GL_ARB_draw_buffers
GL_ARB_fragment_program
GL_ARB_fragment_program_shadow
GL_ARB_fragment_shader
GL_ARB_framebuffer_object
GL_ARB_half_float_pixel
GL_ARB_half_float_vertex
GL_ARB_map_buffer_range
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_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_array_object
GL_ARB_vertex_buffer_object
GL_ARB_vertex_program
GL_ARB_vertex_shader
GL_ARB_window_pos
GL_ATI_draw_buffers
GL_ATI_envmap_bumpmap
GL_ATI_fragment_shader
GL_ATI_meminfo
GL_ATI_separate_stencil
GL_ATI_texture_env_combine3
GL_ATI_texture_float
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_compiled_vertex_array
GL_EXT_copy_texture
GL_EXT_draw_range_elements
GL_EXT_fog_coord
GL_EXT_framebuffer_blit
GL_EXT_framebuffer_multisample
GL_EXT_framebuffer_object
GL_EXT_gpu_program_parameters
GL_EXT_multi_draw_arrays
GL_EXT_packed_depth_stencil
GL_EXT_packed_pixels
GL_EXT_point_parameters
GL_EXT_rescale_normal
GL_EXT_secondary_color
GL_EXT_separate_specular_color
GL_EXT_shadow_funcs
GL_EXT_stencil_wrap
GL_EXT_subtexture
GL_EXT_texgen_reflection
GL_EXT_texture3D
GL_EXT_texture_compression_s3tc
GL_EXT_texture_cube_map
GL_EXT_texture_edge_clamp
GL_EXT_texture_env_add
GL_EXT_texture_env_combine
GL_EXT_texture_env_dot3
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_lod_bias
GL_EXT_texture_mirror_clamp
GL_EXT_texture_object
GL_EXT_texture_rectangle
GL_EXT_texture_sRGB
GL_EXT_texture_swizzle
GL_EXT_vertex_array
GL_KTX_buffer_region
GL_NV_blend_square
GL_NV_texgen_reflection
GL_SGIS_generate_mipmap
GL_SGIS_texture_edge_clamp
GL_SGIS_texture_lod
GL_WIN_swap_hint
WGL_AMDX_gpu_association
WGL_ARB_buffer_region
WGL_ARB_create_context
WGL_ARB_extensions_string
WGL_ARB_make_current_read
WGL_ARB_multisample
WGL_ARB_pbuffer
WGL_ARB_pixel_format
WGL_ARB_pixel_format_float
WGL_ARB_render_texture
WGL_ATI_pixel_format_float
WGL_ATI_render_texture_rectangle
WGL_EXT_extensions_string
WGL_EXT_framebuffer_sRGB
WGL_EXT_pixel_format_packed_float
WGL_EXT_swap_control
WGL_I3D_genlock
WGL_NV_swap_group
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.
OpenGL extension 'GL_ARB_timer_query' is not supported.
GraphicsCostEstimator::calibrate(..)
GraphicsWindowWin32::setSyncToVBlank on
Viewer::startThreading() - starting threading
Viewer::startThreading() - contexts.size()=1
Making scene thread safe
Doing add
Doing add
Doing add
gc->getGraphicsThread()->startThread() 00C81330
Set up threading
CameraManipulator::computeHomePosition(00000000, 0)
boundingSphere.center() = (0 0 0)
boundingSphere.radius() = -1
CameraManipulator::computeHomePosition(00C90868, 0)
boundingSphere.center() = (0 0 0)
boundingSphere.radius() = -1
getCoordinateFrame(0 0 0)
no coordinate system found, using default orientation
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
Render::Render() 00C93530
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
ShaderComposer::ShaderComposer() 00BE1360
ShaderComposer::ShaderComposer() 00BE12C8
_availableQueue.size()=2
Doing run 00C81330 isRunning()=1
draw() 00C91CB8
View::setSceneData() Sharing scene 00BD0798
DatabasePager::RequestQueue::~RequestQueue() Destructing queue.
DatabasePager::RequestQueue::~RequestQueue() Destructing queue.
DatabasePager::RequestQueue::~RequestQueue() Destructing queue.
DatabasePager::RequestQueue::~RequestQueue() Destructing queue.
getCoordinateFrame(0 0 0)
no coordinate system found, using default orientation
View::setSceneData() Allocating new scene00C8F7D0
CameraManipulator::computeHomePosition(00000000, 0)
boundingSphere.center() = (0 0 0)
boundingSphere.radius() = -1
CameraManipulator::computeHomePosition(00C90868, 0)
boundingSphere.center() = (0 0 0)
boundingSphere.radius() = -1
getCoordinateFrame(0 0 0)
no coordinate system found, using default orientation
CameraManipulator::computeHomePosition(00C90868, 0)
boundingSphere.center() = (0 0 0)
boundingSphere.radius() = -1
getCoordinateFrame(0 0 0)
no coordinate system found, using default orientation
View::init()
cull()
cull() got SceneView 00C93CA0
ShaderComposer::~ShaderComposer() 00BE1100
end cull() 00C91CB8
draw() got SceneView 00C93CA0
Renderer::compile()
OpenGL extension 'GL_ARB_multitexture' is supported.
OpenGL extension 'GL_EXT_texture_filter_anisotropic' is supported.
OpenGL extension 'GL_ARB_texture_swizzle' is not supported.
OpenGL extension 'GL_ARB_texture_compression' is supported.
OpenGL extension 'GL_EXT_texture_compression_s3tc' is supported.
OpenGL extension 'GL_IMG_texture_compression_pvrtc' is not supported.
OpenGL extension 'GL_OES_compressed_ETC1_RGB8_texture' is not supported.
OpenGL extension 'GL_EXT_texture_compression_rgtc' is not supported.
OpenGL extension 'GL_IMG_texture_compression_pvrtc' is not supported.
OpenGL extension 'GL_IBM_texture_mirrored_repeat' is supported.
OpenGL extension 'GL_EXT_texture_edge_clamp' is supported.
OpenGL extension 'GL_ARB_texture_border_clamp' is supported.
OpenGL extension 'GL_SGIS_generate_mipmap' is supported.
OpenGL extension 'GL_ARB_texture_multisample' is not supported.
OpenGL extension 'GL_ARB_shadow' is supported.
OpenGL extension 'GL_ARB_shadow_ambient' is supported.
OpenGL extension 'GL_APPLE_client_storage' is not supported.
OpenGL extension 'GL_ARB_texture_non_power_of_two' is supported.
OpenGL extension 'GL_EXT_texture_integer' is not supported.
Created new 00C77298 TextureObject, _numOfTextureObjects 1
OpenGL extension 'GL_EXT_framebuffer_object' is supported.
OpenGL extension 'GL_EXT_packed_depth_stencil' is supported.
OpenGL extension '' is not supported.
Setting up osg::Camera::FRAME_BUFFER
Setting up osg::Camera::FRAME_BUFFER
OpenGL extension 'GL_ARB_vertex_buffer_object' is supported.
OpenGL extension 'GL_EXT_secon
Here is the reported OpenGL Context info for that machine
--------------------------------------------------------------------
Vendor = ATI Technologies Inc.
Version = 2.1.8545 Release
GLSL = 1.2.0
So....
Is OSG still trying to use shaders even though my CMAKE setting say use a fixed
function pipeline?
I noticed in the log, OSG is using a ShaderComposer(). Does this have anything
to do with my problem?
When compiling the OSG Examples, I get the same result.. No textures on this
machine.
I'm trying to stay away from shaders at the moment till I get a better grasp of
them. Hence this is why I'm using a fixed funtion pipeline at the moment.
Any help or ideas on what might be causing my problem would be very much
appreciated. Thanks ;)
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=58113#58113
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org