pBuffer flips vertically on Mac

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

pBuffer flips vertically on Mac

karelknoes
Hi all,

On Mac OS X 10.6 (all browsers) with jogl-rc8, rendering (of non 2D graphics) to the pBuffer produces an image that is vertically flipped. 2D graphics are drawn correctly however.

The same rendering to a GLCanvas or GLJPanel produce the correct image. On Windows, the same rendering is correct for all of the above.

Any comments that point me in the right direction are very welcome.

Karel
Reply | Threaded
Open this post in threaded view
|

Re: pBuffer flips vertically on Mac

gouessej
Administrator
Hi

You should write a bug report. I have no Mac but Sven will probably look at all bugs concerning it next week or later. It would be fine if you could indicate whether it is a regression (was it working with an older release candidate?).
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: pBuffer flips vertically on Mac

karelknoes
Hi gouessej,

Apologies for the late reply (didn't have the 'alert me on reply' on). A bit more info:

The problem seems limited to 3D operations; 2D elements rendered on top of the 3D rendering result are correct.

We've tested the code on another Mac (Mac OS X 10.7, Oracle jre 7) and it works well there. The Mac that does have the problem runs Mac OS X 10.6.8 and Apple jre 6, latest version). The problem is not a general Mac issue.

I'll create a bug ticket for it somewhere today.
Reply | Threaded
Open this post in threaded view
|

Re: pBuffer flips vertically on Mac

Sven Gothel
Administrator
On 06/28/2012 02:00 PM, karelknoes [via jogamp] wrote:

> Hi gouessej,
>
> Apologies for the late reply (didn't have the 'alert me on reply' on). A bit
> more info:
>
> The problem seems limited to 3D operations; 2D elements rendered on top of the
> 3D rendering result are correct.
>
> We've tested the code on another Mac and it works well there. The problem is
> not a general Mac issue.
>
> I'll create a bug ticket for it somewhere today.
>
I have added extensive tests regarding pbuffer rendering/snapshot:
<http://jogamp.org/git/?p=jogl.git;a=commit;h=741bc48237fb1735bab09843ebf09feba200bd81>

None could reproduce the vert-flip.

See PNG screenshot results in:
<https://jogamp.org/chuck/view/fwd/job/jogl/lastSuccessfulBuild/label=macosx-10_6-x86_64-nvidia/artifact/build/jogl-2.0-b773-20120630-macosx-universal-test-results-macosx64-NV320M-10_6-jogamp-x64-sgothel-012.7z>

Hence it would be most useful if you can provide a unit test.

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pBuffer flips vertically on Mac

Sven Gothel
Administrator
In reply to this post by karelknoes
On 06/30/2012 03:29 PM, Sven Gothel wrote:
>
> I have added extensive tests regarding pbuffer rendering/snapshot:
> <http://jogamp.org/git/?p=jogl.git;a=commit;h=741bc48237fb1735bab09843ebf09feba200bd81>
>
> None could reproduce the vert-flip.
>
> See PNG screenshot results in:
> <https://jogamp.org/chuck/view/fwd/job/jogl/lastSuccessfulBuild/label=macosx-10_6-x86_64-nvidia/artifact/build/jogl-2.0-b773-20120630-macosx-universal-test-results-macosx64-NV320M-10_6-jogamp-x64-sgothel-012.7z>
>

Sorry .. go either to a specific test result page, like for build 773:
<https://jogamp.org/chuck/view/fwd/job/jogl/773/label=macosx-10_6-x86_64-nvidia/>

.. or the latest:
<https://jogamp.org/chuck/view/fwd/job/jogl/lastSuccessfulBuild/label=macosx-10_6-x86_64-nvidia/>

and download the artifact:

jogl-2.0-bxxx-yyyymmdd-macosx-universal-test-results-macosx64-NV320M-10_6-jogamp-x64-sgothel-012.7z


> Hence it would be most useful if you can provide a unit test.
>
> ~Sven
>



signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pBuffer flips vertically on Mac

karelknoes
Thanks for the excellent tips! I've just run several relevant jogl unit tests on the vertical-flip-Mac and they all turn out successful.

I'd love to dive deeper into the problem (not familiar yet with writing unit tests for jogl) but we're in a bit of a time shortage due to an upcoming release. Looking further into this problem will be on the list for after the release.

Again thanks for the help.
Reply | Threaded
Open this post in threaded view
|

Re: pBuffer flips vertically on Mac

Chris van Kampen
As a colleague of Karel, I can now become more specific with this problem. The problem occurs only when using a pbuffer with accumulation buffers, not when using a pbuffer in general. I can however not find any references on the web to problems with pbuffers, accumulation buffers, and vertical flipped images. Only that both are deprecated. We use them as a fallback software antialiasing solution. Any help or suggestions would be appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: pBuffer flips vertically on Mac

Chris van Kampen
As a follow-up to my follow-up:

The problem appears not to have anything to do with pbuffers! But with the use of *accumulation buffers* on the Mac instead. If we force our solution to use accumulation buffers for drawing to the screen ("software antialiasing"), the image gets flipped vertically there as well, but in this case the image is also shifted upward. Any ideas for workarounds?

Thanks.

Chris.
Reply | Threaded
Open this post in threaded view
|

Re: pBuffer flips vertically on Mac

Sven Gothel
Administrator
On 07/10/2012 10:43 AM, Chris van Kampen [via jogamp] wrote:
> As a follow-up to my follow-up:
>
> The problem appears not to have anything to do with pbuffers! But with the use
> of *accumulation buffers* on the Mac instead. If we force our solution to use
> accumulation buffers for drawing to the screen ("software antialiasing"), the
> image gets flipped vertically there as well, but in this case the image is
> also shifted upward. Any ideas for workarounds?

Please provide a test case, BSD/JogAmp license.

~Sven



signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: pBuffer flips vertically on Mac

karelknoes
I've just added a bug report, test code included:

https://jogamp.org/bugzilla/show_bug.cgi?id=605