Webpages looks blurry

96 views
Skip to first unread message

Shen Hui

unread,
Dec 6, 2012, 4:54:14 AM12/6/12
to berk...@googlegroups.com

Hello All,

When testing berkelium off-screen renderring, we found that web pages loaded by berkelium looks a lillte blurry.

The attachment provides a comparasion between web pages openning in firefox and in berkelium.

Any advice and help will be much appreciated.

Shen.

Ewen Cheslack-Postava

unread,
Dec 7, 2012, 1:10:45 PM12/7/12
to berk...@googlegroups.com
Didn't get an attachment, but you shouldn't compare with Firefox anyway since Berkelium uses Chromium. They might be using different font rendering libraries, have different antialiasing settings, different default fonts if the page you're testing with doesn't specify them, etc.

You can run the regular browser using the berkelium binary. If the page looks the same in that, then it's probably just the way Chromium renders it. In that case you should be looking at Chromium font settings rather than Berkelium.

-Ewen

Spyros Hajisavva

unread,
Dec 7, 2012, 7:25:56 PM12/7/12
to berk...@googlegroups.com
I have the same issue happening in firefox and I'm in the process of switching to berkelium. Had no luck getting it to not be blurry short of switching to a much older version of ff. Will report back if the same happens with berkelium.

Shen Hui

unread,
Dec 8, 2012, 3:56:56 AM12/8/12
to berk...@googlegroups.com
Sorry, attach files again.
 
I also take a try by berkelium.exe provided in the library package, it looks as clear as it in firefox. (berkelium_exe.jpg attached)
 
Only berkelium_offscreen.jpg looks blurry. I think it is because the height of text in berkelium_offscreen.jpg is smaller than normal height. But I havn't found out the solution yet.
 
berkelium_exe.jpg
berkelium_offscreen.jpg
firefox.jpg

Anton Yemelyanov

unread,
Dec 8, 2012, 8:20:31 AM12/8/12
to berkelium
I believe your problem is a classic texture mapping problem.  Your coordinates are not 1:1, meaning that the size of the texture is changed/remapped by the time it comes out to the screen.

This can be due to:  1 - incorrect mapping coordinates, 2 - incorrect placement of the polygon in the viewport, 3 - incorrect viewport configuration... etc.

Make sure that the size of the bitmap you are displaying is the same as the size of the texture (and the berkelium window).

You seem to be off by a very small amount because parts of the bitmap are sharp and others are blurry.

This has nothing to do with Berkelium but with your open gl setup (polygon/texturing/viewport).

Cheers,

Anton

Shen Hui

unread,
Dec 8, 2012, 8:13:05 PM12/8/12
to berk...@googlegroups.com

actually, the figure that looks blurry is generated by demo glut_input included in berkelium library.

does that mean the demo also  have such texture mapping problem ?

Thanks.

Ewen Cheslack-Postava

unread,
Dec 10, 2012, 2:30:21 PM12/10/12
to berk...@googlegroups.com
I only see this effect if the window for glut_input isn't it's
original size, which is expected since then the texture is being
resized. You should check the output of ppmrender, which will just
save the image instead of using GL to render it. Use a regular image
viewer to check.

Also, I don't think I've seen you mention anything about which
platform you're using. If you happen to be using a window manager that
is forcing an incorrect size on the GLUT window (either the requested
size is too big for your monitor or it's forcing it to a size to fit
with other windows, e.g. a tiling window manager), you would also see
this.

You can also, of course, change the texture settings in glut_input,
e.g. using GL_NEAREST to at least verify that's the issue. GL_NEAREST
won't give good looking results, but would demonstrate if texture
filtering is the issue since, by default, the glut_input window should
perfectly match the texture and just display each pixel directly.

-Ewen

Shen Hui

unread,
Dec 11, 2012, 3:41:57 AM12/11/12
to berk...@googlegroups.com
Got it, you are coorect. 

Thanks all for your help, I'll do more investigation about this issue.
--
做一名诚实、正直、优秀的科技工作者!
Reply all
Reply to author
Forward
0 new messages