Re: [osg-users] FBOs and iOS (iPad/iPhone)

2010-11-20 Thread Stephan Huber
Hi Tom, Am 20.11.10 18:02, schrieb Thomas Hogarth: Hi Stephan I've got round to looking at the new changes, I've got one altered CMake file (root one) just needed to default the windowing system to IOS. Other issue is that I'm getting a crash on line 1056 of RenderStage.cpp. Think the

Re: [osg-users] FBOs and iOS (iPad/iPhone)

2010-11-20 Thread Thomas Hogarth
Hi Stephan Sweet, yeah checked mine out on the 117th/18th soI'll give it a whirl now. Cheers Tom On 20 November 2010 17:14, Stephan Huber ratzf...@digitalmind.de wrote: Hi Tom, Am 20.11.10 18:02, schrieb Thomas Hogarth: Hi Stephan I've got round to looking at the new changes, I've got

Re: [osg-users] FBOs and iOS (iPad/iPhone)

2010-11-20 Thread Thomas Hogarth
Hi Stephan, Bingo, all looks good, great work mate. So I understand you are sending the changes to Robert to be merged into the main osg branch. Sweet, if only you lived near by, we could have a celebration drink :) Cheers Tom On 20 November 2010 17:15, Thomas Hogarth thomas.hoga...@gmail.com

Re: [osg-users] FBOs and iOS (iPad/iPhone) (was: Re: OSGs OpenGLES 2.0 status)

2010-11-17 Thread Robert Osfield
Hi Guys, I note that you have been using the name IPhone in naming of the GraphicsWindowIPhone, now that Apple have generalised the iPhone OS to be iOS, I would suggest changing the names of the various methods/classes/files to reflect the name iOS rather than iPhone. Cheers, Robert.

Re: [osg-users] FBOs and iOS (iPad/iPhone)

2010-11-17 Thread Stephan Huber
Hi Robert, Am 17.11.10 10:00, schrieb Robert Osfield: I note that you have been using the name IPhone in naming of the GraphicsWindowIPhone, now that Apple have generalised the iPhone OS to be iOS, I would suggest changing the names of the various methods/classes/files to reflect the name

[osg-users] FBOs and iOS (iPad/iPhone) (was: Re: OSGs OpenGLES 2.0 status)

2010-11-16 Thread Stephan Maximilian Huber
Hi Thomas, hi Robert, I did some more tests on the fbo-issue and I got it working on my side, but the fix is hackyish and not ready for primetime. The underlying issue is the following: on the iphone all rendering goes into a bunch of FBOs, when you want to swap buffers (there are no implicit

Re: [osg-users] FBOs and iOS (iPad/iPhone) (was: Re: OSGs OpenGLES 2.0 status)

2010-11-16 Thread Robert Osfield
HI Stephan, On Tue, Nov 16, 2010 at 4:12 PM, Stephan Maximilian Huber ratzf...@digitalmind.de wrote: So what's your opinion to tackle this issue? Another virtual method inside GraphicsWindow? Something like virtual void osg::GraphicsWindow::unbindFbos() {} where GraphicsWindowIphone

Re: [osg-users] FBOs and iOS (iPad/iPhone)

2010-11-16 Thread Stephan Huber
Hi Robert, Am 16.11.10 17:51, schrieb Robert Osfield: I wonder if the FBO Id for the iOS GraphicsContext could be stored in the GraphicsContext and when it's non zero have rendering backend pick up on the fact that the GraphicsContext isn't an ordinary graphics context but really just a FBO

Re: [osg-users] FBOs and iOS (iPad/iPhone) (was: Re: OSGs OpenGLES 2.0 status)

2010-11-16 Thread Thomas Hogarth
Hi Guys This sounds great, one question Stephan, does your approach also fix the problem I was having with having to setup any RTT after the ios view has been created (i.e. after the first frame)? I'll check this all out tommorw and try and have a big test session, I've got an IPod touch 2nd and

Re: [osg-users] FBOs and iOS (iPad/iPhone) (was: Re: OSGs OpenGLES 2.0 status)

2010-11-16 Thread Thomas Hogarth
Hi Stephan One last thing that need adding to the IPhone Graphics window is the re definitions for the gles2 frame buffer functions, essentially they just drop the OES part. My file is attached, ignore anything other than the defines at the top Cheers Tom On 16 November 2010 21:37, Thomas