Hi

Sent the below last night but got bounced for too big an attachment

-----

Me again

Fixed my problem, I discovered single threaded mode will call the graphics
window releaseContextImplementation method. I for some reason had taken that
to mean literally release my context so I had made it null. Next frame the
context would be lost so no new content in the buffer. Silly me :)

It has highlighted one issue though, that behavior on simulators and devices
can differ at lower levels. For now I will explicitly set the threading mode
but thought perhaps something could be added to suggestBestThreadingModel()
to ensure users are getting the most consistent results across platforms?

Things are looking close to complete, I'm just going to finish the input
stuff for the graphics window to get the trackball manipulator working
properly then I should be able to post the code for others to try out.

I was thinking of making one touch be left mouse drag (rotate view), two
touches to be middle mouse drag (pan view) and detect a basic pinch for
right mouse drag up/down (zoom). I'll keep you posted.


Tom

PS
Attached some pics of it running on my ipod touch

----

Jon here is my config, I think the difference is you are trying to compile
both gles 1 and 2 at the same time. I think it has to be one or the other,
is that correct Robert?

#ifndef OSG_CONFIG
#define OSG_CONFIG 1

//static link needed on IPhone
#define OSG_LIBRARY_STATIC

#define OSG_USE_FLOAT_MATRIX
/* #undef OSG_USE_FLOAT_PLANE */
#define OSG_USE_FLOAT_BOUNDINGSPHERE
#define OSG_USE_FLOAT_BOUNDINGBOX
#define OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION
/* #undef OSG_USE_UTF8_FILENAME */
#define OSG_DISABLE_MSVC_WARNINGS

/* #undef OSG_GLU_AVAILABLE */
/* #undef OSG_GL1_AVAILABLE */
/* #undef OSG_GL2_AVAILABLE */
/* #undef OSG_GL3_AVAILABLE */
#define OSG_GLES1_AVAILABLE
/* #undef OSG_GLES2_AVAILABLE */


/* #undef OSG_GL_DISPLAYLISTS_AVAILABLE */
#define OSG_GL_MATRICES_AVAILABLE
/* #undef OSG_GL_VERTEX_FUNCS_AVAILABLE */
#define OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE
#define OSG_GL_FIXED_FUNCTION_AVAILABLE

#endif

<<attachment: photo.jpg>>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to