Hi Robert,
Thank you for the suggestion. I have attached the notify log. In
summary, the log includes a number of entries for features not supported
by the OpenGL driver, including GL_ARB_vertex_buffer_object. There are a
number of glBufferData errors in the log, but I am not sure of their
severity.
I did not see the OpenGL version reported in the log, but OpenGL
Extension viewer reports 1.1 and also agrees with the extension support
reported in the log.
I will continue to experiment.
Thanks,
Judson
On 3/20/2013 4:57 AM, Robert Osfield wrote:
Hi Judson,
I haven't played with using virtual machines for rendering so don't
have first hand experience. For item 1 - version detection and
extension usage, this should in theory work, with the OSG
automatically detecting OpenGL 1.1 and lack of VBO support and not
using it. The error you are seeing is either the driver claiming to
support VBO's or the OSG missing this check. Check what OpenGL
version is passed back.
Running the OSG with OSG_NOTIFY_LEVEL set to DEBUG or programatically
with osg::setNotifyLevel(osg::DEBUG_INFO); will report what version
and extensions are supported to the console, along with lots of other
stuff too, but redirect the output to a file and then browse through.
This should tell you what the OSG has got back from the driver.
Robert.
On 19 March 2013 23:27, Judson Weissert <[email protected]> wrote:
Hello,
I have been testing in VirtualBox recently, and encountered two problems
that I was hoping someone might recognize. Note: The problems do not occur
outside of a virtual environment.
1. I have geometry in my model where I call
osg::Geometry::setUseVertexBufferObjects(true), but the virtual environment
only supports OpenGL 1.1. An access violation occurs shortly after calling
glDrawElements() from DrawElementsUInt::draw().
The last portion of the call stack is as follows (access violation in
memcpy() trying to access 0x4fbc):
msvcrt.dll!memcpy() + 0x31 bytes
opengl32.dll!__gllc_ReducedElementsHandler() + 0x285 bytes
opengl32.dll!ReduceDrawElements() + 0x1cb bytes
opengl32.dll!__gllc_DrawElements() + 0x121 bytes
osg92-osg.dll!osg::DrawElementsUInt::draw(osg::State & state={...}, bool
useVertexBufferObjects=false)
osg92-osg.dll!osg::Geometry::drawImplementation(osg::RenderInfo &
renderInfo={...})
Taking out the call to setUseVertexBufferObjects() seems to fix the problem.
Do I have to detect the OpenGL version explicitly, or is the OSG library
supposed to fallback to a non-VBO mode of operation automatically?
Also, prior to the crash, I get various "Error: glBufferData not supported
by OpenGL driver" notifications. Also a glGenBuffers() and glBindBuffer()
error notification, and a Windows error #127 that mentions
wglChoosePixelFormatARB ext not found.
2. If I enable 3D acceleration in VirtualBox, there is no crash, but the
scene ends up opening as a separate window and takes up the entire screen. I
am not sure how much this issue relates to OSG though.
Spy++ shows a window class of "OSG Graphics Window for Win32 [{with
cursor}]", that is not visible in Spy if the window opens as a child window
with a non-null parent as expected.
Has anyone had success viewing their models using VirtualBox? or VMWare?
Thanks,
Judson
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
*Judson Weissert* | Software Engineer
*Baker Hughes* | Pressure Pumping
Office: +1 724 224 1440 | Fax: +1 724 224 1442
[email protected] <mailto:[email protected]> |
[email protected] <mailto:[email protected]>
http://www.mfrac.com | /A Global Leader in Hydraulic Fracturing Software/
http://www.bakerhughes.com | /Advancing Reservoir Performance/
CullSettings::readEnvironmentalVariables()
DatabasePager::addDatabaseThread() HANDLE_NON_HTTP
DatabasePager::addDatabaseThread() HANDLE_ONLY_HTTP
Render::Render() 0000000023651BD0
CullSettings::readEnvironmentalVariables() (*Repeated 4x)
ShaderComposer::ShaderComposer() 00000000239003F0
CullSettings::readEnvironmentalVariables()
ShaderComposer::ShaderComposer() 000000002390AFF0
_availableQueue.size()=2
GraphicsContext::registerGraphicsContext 0000000023917560
Windows Error #127: [Screen #0] ChooseMatchingPixelFormat() -
wglChoosePixelFormatARB extension not found, trying GDI. Reason: The specified
procedure could not be found.
Rendering in software: pixelFormatIndex 3
ShaderComposer::ShaderComposer() 00000000237AB600
GraphicsContext::createNewContextID() creating contextID=0
Updating the MaxNumberOfGraphicsContexts to 1
CullSettings::readEnvironmentalVariables()
Render::Render() 00000000237B1DE0
CullSettings::readEnvironmentalVariables() (*Repeated 4x)
ShaderComposer::ShaderComposer() 00000000237B8530
ShaderComposer::ShaderComposer() 000000002393D550
_availableQueue.size()=2
CullSettings::readEnvironmentalVariables()
Render::Render() 00000000239478E0
CullSettings::readEnvironmentalVariables() (*Repeated 4x)
ShaderComposer::ShaderComposer() 000000002394E030
ShaderComposer::ShaderComposer() 0000000023956FB0
_availableQueue.size()=2
StateAttribute::Setting Update callbacks
Going to set StateAttribute parents
StateAttribute::Setting Update callbacks
Going to set StateAttribute parents
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
Font 0000000023A0BFD0, numberOfTexturesAllocated 1
Font 0000000021EF1190, numberOfTexturesAllocated 2
View::setSceneData() Reusing exisitng scene000000002379EB70
CameraManipulator::computeHomePosition(0000000000000000, 0)
boundingSphere.center() = (2021.89 -417.34 5117.62)
boundingSphere.radius() = 5527.01
CameraManipulator::computeHomePosition(0000000021EEE0B0, 0)
boundingSphere.center() = (2021.89 -417.34 5117.62)
boundingSphere.radius() = 5527.01
osg::State::_maxTexturePoolSize=0
osg::State::_maxBufferObjectPoolSize=0
OpenGL extensions supported by installed OpenGL drivers are:
GL_EXT_bgra
GL_EXT_paletted_texture
GL_WIN_swap_hint
OpenGL extension 'GL_ARB_vertex_shader' is not supported.
OpenGL extension 'GL_ARB_multitexture' is not supported.
OpenGL extension 'GL_EXT_multitexture' is not supported.
OpenGL extension 'GL_ARB_vertex_program' is not supported.
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.
OpenGL extension 'GL_ARB_timer_query' is not supported.
GraphicsCostEstimator::calibrate(..)
GraphicsWindowWin32::setSyncToVBlank(bool) not supported
Warning: GraphicsWindowWin32::grabFocus() - Failed grabbing the focus
View::init()
StateAttribute::Setting Update callbacks
Going to set StateAttribute parents
StateAttribute::Setting Update callbacks
Going to set StateAttribute parents
-
BufferData::releaseGLObjects(0000000000000000)
BufferObject::releaseGLObjects(0000000000000000)
BufferObject::releaseGLObjects(0000000000000000)
- (*Repeated a number of times)
cull_draw() 0000000023651BD0
ShaderComposer::~ShaderComposer() 00000000239003F0
Renderer::compile()
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_EXT_multitexture' is not supported.
OpenGL extension 'GL_EXT_texture_filter_anisotropic' is not supported.
OpenGL extension 'GL_ARB_texture_compression' is not supported.
OpenGL extension 'GL_EXT_texture_compression_s3tc' is not 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 not supported.
OpenGL extension 'GL_ARB_texture_mirrored_repeat' is not supported.
OpenGL extension 'GL_EXT_texture_edge_clamp' is not supported.
OpenGL extension 'GL_SGIS_texture_edge_clamp' is not supported.
OpenGL extension 'GL_ARB_texture_border_clamp' is not supported.
OpenGL extension 'GL_SGIS_generate_mipmap' is not supported.
OpenGL extension 'GL_ARB_texture_multisample' is not supported.
OpenGL extension 'GL_ARB_shadow' is not supported.
OpenGL extension 'GL_ARB_shadow_ambient' is not supported.
OpenGL extension 'GL_APPLE_client_storage' is not supported.
OpenGL extension 'GL_ARB_texture_non_power_of_two' is not supported.
OpenGL extension 'GL_APPLE_texture_2D_limited_npot' is not supported.
OpenGL extension 'GL_EXT_texture_integer' is not supported.
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 1
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 2
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 3
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 4
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 5
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 6
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 7
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 8
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 9
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 10
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 11
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 12
Created new 00000000239037A0 TextureObject, _numOfTextureObjects 13
OpenGL extension 'GL_ARB_vertex_buffer_object' is not supported.
GLBufferObjectSet::GLBufferObjectSet _profile._size=102112
OpenGL extension 'GL_ARB_pixel_buffer_object' is not supported.
OpenGL extension 'GL_ARB_uniform_buffer_object' is not supported.
Error: glGenBuffers not supported by OpenGL driver
Error: glBindBuffer not supported by OpenGL driver
Error: glBufferData not supported by OpenGL driver (*Repeated 20x)
First-chance exception at 0x000007fefd8d1111 (msvcrt.dll) in app.exe:
0xC0000005: Access violation reading location 0x0000000000004fbc.
Unhandled exception at 0x000007fefd8d1111 (msvcrt.dll) in app.exe: 0xC0000005:
Access violation reading location 0x0000000000004fbc.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org