[android-developers] Re: Emulator bug drawing lines on GLSurfaceView
IV - thanks for your response. You are correct that if LINE_SMOOTH is disabled, the bug does not show up. An important point is the all the lines in this example have the same slope (0) and yet their width varies - with the position of the X coordinates. That is a very odd result, that I don't think can be explained as an artifact of emulation (an in a philosophical sense, if the emulator can produce a display that far off, it just isn't emulating very well in any case) However, I tried your suggestion - I multiplied the second Y coordinate by a variable (tried 1.1 and 1.5). In both cases, the slope is visibly not 0, and the width of the overly wide lines is narrower, but still WAY too wide. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Emulator bug drawing lines on GLSurfaceView
Then again, now that I have seen your flickr pictures, I see you always have the same 0 angle. So my proposed explanation is not quite on point. But I do still believe this is an artifact of emulation rather than a bug, and for reasons similar to what I described. So try varying the vertical spacing and see how that affects the spurious thickening. On Aug 14, 6:59 pm, Indicator Veritatis wrote: > Just off the top of my head, I don't think this is a bug per se. I > think it is an artifact of the smoothing (anti-aliasing) under > emulation conditions. That is, since the emulator is emulating a phone > screen with its own resolution, aspect ratio and pixel size, on a > computer screen with different resolution, aspect ratio and pixel > size, the calculations it performs when deciding to include a given > pixel are going to be different than on the phone. So for lines at > certain angles, this could mean including more pixels, giving the > appearance of a wider width. > > On Aug 13, 10:05 pm, SChaser wrote: > > > The Emulator draws line widths VERY incorrectly in OpenGL > > (GLSurfaceView). > > > Seehttp://www.flickr.com/photos/53002...@n03fora comparison of the > > lines drawn correctly (in JOGL) and incorrectly in the emulator. The > > code also draws correctly on a real device (G1) - looks just like the > > JOGL screen shot. > > > I believe this is a bug. However, I'm not an OpenGL GURU. Hence I have > > posted a concise version of the code to demonstrate this problem at > > athttp://gist.github.com/523955andhttp://gist.github.com/523961. I > > hope I am proven wrong about a bug in the emulator, and can find a way > > to use the emulator for what I want to do. > > > Specifically, line widths vary based on the end point locations of > > lines, under the following conditions (and maybe others): > > > -ortho projection > > > -line smoothing enabled > > > Note: I started this thread as a continuation of > > threadhttp://groups.google.com/group/android-developers/browse_thread/threa... > > because I think it is of general interest and worth a new start. > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Emulator bug drawing lines on GLSurfaceView
This is my second reply to the same post. I was going to double check by visiting your flickr site before finishing my first post, but my computer registered a mouse click prematurely, sending my previous post before I could do that:( So now that I have seen your flickr photos, I see my proposed explanation is not quite right: you are always using the same angle, 0. So I suggest varying the vertical offsets to see if that makes the thickening go away. Also, I assume that you do not see this thickening if LINE_SMOOTH is disabled. Is that the case? On Aug 13, 10:05 pm, SChaser wrote: > The Emulator draws line widths VERY incorrectly in OpenGL > (GLSurfaceView). > > Seehttp://www.flickr.com/photos/53002...@n03for a comparison of the > lines drawn correctly (in JOGL) and incorrectly in the emulator. The > code also draws correctly on a real device (G1) - looks just like the > JOGL screen shot. > > I believe this is a bug. However, I'm not an OpenGL GURU. Hence I have > posted a concise version of the code to demonstrate this problem at > athttp://gist.github.com/523955andhttp://gist.github.com/523961. I > hope I am proven wrong about a bug in the emulator, and can find a way > to use the emulator for what I want to do. > > Specifically, line widths vary based on the end point locations of > lines, under the following conditions (and maybe others): > > -ortho projection > > -line smoothing enabled > > Note: I started this thread as a continuation of > threadhttp://groups.google.com/group/android-developers/browse_thread/threa... > because I think it is of general interest and worth a new start. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Emulator bug drawing lines on GLSurfaceView
Just off the top of my head, I don't think this is a bug per se. I think it is an artifact of the smoothing (anti-aliasing) under emulation conditions. That is, since the emulator is emulating a phone screen with its own resolution, aspect ratio and pixel size, on a computer screen with different resolution, aspect ratio and pixel size, the calculations it performs when deciding to include a given pixel are going to be different than on the phone. So for lines at certain angles, this could mean including more pixels, giving the appearance of a wider width. On Aug 13, 10:05 pm, SChaser wrote: > The Emulator draws line widths VERY incorrectly in OpenGL > (GLSurfaceView). > > Seehttp://www.flickr.com/photos/53002...@n03for a comparison of the > lines drawn correctly (in JOGL) and incorrectly in the emulator. The > code also draws correctly on a real device (G1) - looks just like the > JOGL screen shot. > > I believe this is a bug. However, I'm not an OpenGL GURU. Hence I have > posted a concise version of the code to demonstrate this problem at > athttp://gist.github.com/523955andhttp://gist.github.com/523961. I > hope I am proven wrong about a bug in the emulator, and can find a way > to use the emulator for what I want to do. > > Specifically, line widths vary based on the end point locations of > lines, under the following conditions (and maybe others): > > -ortho projection > > -line smoothing enabled > > Note: I started this thread as a continuation of > threadhttp://groups.google.com/group/android-developers/browse_thread/threa... > because I think it is of general interest and worth a new start. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en