Hi Stephan

One other note on getting FBO rtt to work. Seems you have to wait for the
uiview to be launched before the context is actually ready. At the moment
I'm doing this by attaching the rtt camera to the graph after the first call
to update, but i'm guessing this would be very device and frame
rate specific. I currently have my timer set at around 30 fps.

I think I might be able to move the call to createframebuffers in the iphone
viewer to happen during realize rather then waiting for the view itself to
be displayed. But i'm unsure if it is framebuffer or context related at this
time.

Cheers
Tom


>
> On 4 November 2010 09:29, Robert Osfield <[email protected]> wrote:
>
>> Hi Thomas,
>>
>> Interesting investigation and fix.  Does this issue occur on the
>> target hardware and software emulators of it?
>>
>> Robert.
>>
>> On Thu, Nov 4, 2010 at 5:56 AM, Thomas Hogarth
>> <[email protected]> wrote:
>> > Fixed it,
>> >
>> > So after a bit of thinking I realised that the default buffer must be re
>> > binded at some point so did another search and found 3 calls to
>> >
>> > fbo_ext->glBindFramebuffer(GL_FRAMEBUFFER_EXT, 0);
>> >
>> > And my earlier hunch was correct that ios' default buffer id is actually
>> 1
>> > so changing to the below makes it work
>> >
>> > fbo_ext->glBindFramebuffer(GL_FRAMEBUFFER_EXT, 1);
>> >
>> > So now I need to add a DEFAULT_FRAMEBUFFER define or something in the
>> > FrameBufferObject header file that is set it to 1 on ios
>> >
>> > Over all though, good news. Performance seems great too.
>> >
>> > Tom
>> >
>> > _______________________________________________
>> > 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