Bug 4266 - GLCube sample loses cube shape in landscape orientation.
Summary: GLCube sample loses cube shape in landscape orientation.
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.1.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Dominique Louis
Depends on:
Reported: 2012-04-05 10:45 UTC by PJ
Modified: 2012-06-14 15:18 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description PJ 2012-04-05 10:45:28 UTC
The cube looks flat, more like a square plate. It also seems to pass through itself.


as it's passing through itself:

Comment 1 Dominique Louis 2012-06-13 16:39:52 UTC
I've just pushed a fix for this. I hope I've done it the right way. Please let me know if that works for you.
Comment 2 PJ 2012-06-13 17:10:24 UTC
Thanks so much! The cube is now always a cube! If possible, could you also make this change on the OpenTK 0.9 version?

If there's one change I would still make, now the cube is a significantly different size in the two orientations. 

In Landscape the whole cube fits inside the screen boundaries with room to spare

In Portrait, the cube corners go off the edge of the screen horizontally (and has only a little bit of room vertically).

Resolving as fixed. New trivial bug for size issue:  bug 5640
Comment 3 Dominique Louis 2012-06-14 06:03:12 UTC
Could you please clarify what you mean by "make this change on the OpenTK 0.9 version"?
Comment 4 PJ 2012-06-14 13:24:00 UTC
Hey sure.

The monodroid-samples repo has two GLCube samples.: http://screencast.com/t/jkowDXf9

GLCube-1.0 uses OpenTK 1.0 (you fixed this)
GLCube uses OpenTK 0.9

We are continuing to test with and support the OpenTK 0.9 version of all the GL samples for some time to come, so the behavior (ideally) would be the same between the two versions. I was hoping if it wasn't too much trouble the change could be applied to the 0.9 version as well. Thanks again for fixing these sample issues!
Comment 5 Dominique Louis 2012-06-14 13:39:18 UTC
No trouble at all. I'll update the other.
Comment 6 Dominique Louis 2012-06-14 15:18:30 UTC
Ok ported to OpenTK 0.9 and this should now fix the size issue too. Overcomplicated the previous fix.