Hi Tobias,

I don't know why your app crashes in the simulator, can you try to debug
the example? From the console-output there seems to be a valid
viewer-object, so adding a camera manipulator should work.

Most likely there's a discrepancy in project- / compiler-settings,
please double-check that your project-settings are the same as for the
osg-projects.

Unfortunately I don't have a cmake-based-ios-workflow on my machine, so
can't test it on my end, all I know is that the examples from the
hand-maintained xcode project from
https://github.com/stmh/osg/tree/iphone do work on the device and on the
simulator.

Why are there any hand-maintained xcode-project anyway?
a) it's easier to develop, as the same xcode-project can build libs for
simulator and device, the project-files created with cmake can't do that.
b) the examples do work with the hand-maintained xcode-project-files, I
failed completely to create a cmake configuration to build one simple
ios-example
c) downsides: handmaintained, only a few plugins do compile and work, is
most of the time behind current trunk

HTH,
Stephan


Am 07.09.11 14:46, schrieb Tobias Weißhaar:
> H guysi,
> 
> I successfully build and linked my App for the iPad but when I try to run the 
> simulator it crashes. I get the following Output:
> 
> CullSettings::readEnvironmentalVariables()
> DatabasePager::addDatabaseThread() HANDLE_NON_HTTP
> DatabasePager::addDatabaseThread() HANDLE_ONLY_HTTP
> CullSettings::readEnvironmentalVariables()
> CullSettings::readEnvironmentalVariables()
> CullSettings::readEnvironmentalVariables()
> CullSettings::readEnvironmentalVariables()
> ShaderComposer::ShaderComposer() 0x70006e0
> CullSettings::readEnvironmentalVariables()
> ShaderComposer::ShaderComposer() 0xa6009c0
> View::setSceneData() Reusing exisitng scene0x713c8f0
>  CameraManipulator::computeHomePosition(0, 0)
>     boundingSphere.center() = (1 1 1)
>     boundingSphere.radius() = 0.866025
>  CameraManipulator::computeHomePosition(0x6827800, 0)
>     boundingSphere.center() = (1 1 1)
>     boundingSphere.radius() = 0.866025
> Viewer::realize() - No valid contexts found, setting up view across all 
> screens.
> GraphicsContext::getWindowingSystemInterface() 0x5d0ed30      0x75aaa8
> GraphicsContext::registerGraphicsContext 0xa6027c0
> ShaderComposer::ShaderComposer() 0xa602aa0
> GraphicsContext::createNewContextID() creating contextID=0
> Updating the MaxNumberOfGraphicsContexts to 1
>   GraphicsWindow has been created successfully.
>  CameraManipulator::computeHomePosition(0, 0)
>     boundingSphere.center() = (1 1 1)
>     boundingSphere.radius() = 0.866025
>  CameraManipulator::computeHomePosition(0x6827800, 0)
>     boundingSphere.center() = (1 1 1)
>     boundingSphere.radius() = 0.866025
> osg::State::_maxTexturePoolSize=0
> osg::State::_maxBufferObjectPoolSize=0
> GraphicsContext::getWindowingSystemInterface() 0x5d0ed30      0x75aaa8
> shouldAutorotateToInterfaceOrientation for 1: YES
> shouldAutorotateToInterfaceOrientation for 1: YES
> GraphicsWindowIOS :: grabFocusIfPointerInWindow not implemented yet 
> View::init()
> [Switching to process 28651 thread 0x5f0b]
> OpenGL extensions supported by installed OpenGL drivers are:
>     GL_APPLE_framebuffer_multisample
>     GL_APPLE_texture_2D_limited_npot
>     GL_APPLE_texture_format_BGRA8888
>     GL_APPLE_texture_max_level
>     GL_EXT_blend_minmax
>     GL_EXT_discard_framebuffer
>     GL_EXT_read_format_bgra
>     GL_EXT_texture_filter_anisotropic
>     GL_EXT_texture_lod_bias
>     GL_IMG_read_format
>     GL_IMG_texture_compression_pvrtc
>     GL_OES_blend_equation_separate
>     GL_OES_blend_func_separate
>     GL_OES_blend_subtract
>     GL_OES_compressed_paletted_texture
>     GL_OES_depth24
>     GL_OES_draw_texture
>     GL_OES_fbo_render_mipmap
>     GL_OES_framebuffer_object
>     GL_OES_mapbuffer
>     GL_OES_matrix_palette
>     GL_OES_packed_depth_stencil
>     GL_OES_point_size_array
>     GL_OES_point_sprite
>     GL_OES_read_format
>     GL_OES_rgb8_rgba8
>     GL_OES_stencil8
>     GL_OES_stencil_wrap
>     GL_OES_texture_mirrored_repeat
>     GL_OES_vertex_array_object
> 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(..)
> ShaderComposer::~ShaderComposer() 0x70006e0
> OpenGL extension '' is not supported.
> Setting up osg::Camera::FRAME_BUFFER
> 
> 
> In my Code the "error line" ist this:
> 
> _viewer->setCameraManipulator(new osgGA::TrackballManipulator);
> 
> 
> I dont know why the simulator crashes! pls help!
> 
> 
> 
> Thank you!
> 
> Cheers,
> Tobias
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=42490#42490
> 
> 
> 
> 
> 
> _______________________________________________
> 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

Reply via email to