google search

Saturday, September 3, 2011

google- 3 yrs old


Google Chrome, now the third most popular Web browser in the world after Mozilla's Firefox and Microsoft's Internet Explorer which completed its three years on 1 September.

In order to celebrate the day, Google released an infographic that documents the evolution of the Web, which starts from Mosaic to the latest Chromebook.
The browser grabbed 15 per cent market share during these years. Ben Goodger and Darin Fisher, software engineers, said that the browser will continue to innovate and improve. It will have regular updates every six weeks.

Chrome has increased its speed with the V8 JavaScript engine. Its omnibox is also improved now and helps in suggesting partial matches for URLs and webpage titles.

The browser also supports many popular screen readers, which include, JAWS, NVDA and VoiceOver. These features make it simple for even the visually impaired people to experience the Web better.

Also, an integrated and sandboxed PDF viewer helps a user to view PDF files on the Web. The user need not install any additional software, which helps improve the overall security.

Read more...

Wednesday, October 6, 2010

Sutherland–Hodgman algorithm

The algorithm begins with an input list of all vertices in the subject polygon. Next, one side of the clip polygon is extended infinitely in both directions, and the path of the subject polygon is traversed. Vertices from the input list are inserted into an output list if they lie on the visible side of the extended clip polygon line, and new vertices are added to the output list where the subject polygon path crosses the extended clip polygon line.
This process is repeated iteratively for each clip polygon side, using the output list from one stage as the input list for the next. Once all sides of the clip polygon have been processed, the final generated list of vertices defines a new single polygon that is entirely visible. Note that if the subject polygon was concave at vertices outside the clipping polygon, the new polygon may have coincident (i.e. overlapping) edges – this is acceptable for rendering, but not for other applications such as computing shadows.


PSEUDO CODE:-
List outputList = subjectPolygon;
  for (Edge clipEdge in clipPolygon) do
     List inputList = outputList;
     outputList.clear();
     Point S = inputList.last;
     for (Point E in inputList) do
        if (E inside clipEdge) then
           if (S not inside clipEdge) then
              outputList.add(ComputeIntersection(S,E,clipEdge));
           end if
           outputList.add(E);
        else if (S inside clipEdge) then
           outputList.add(ComputeIntersection(S,E,clipEdge));
        end if
        S = E;
     done
  done


Read more...

CLIPPING PLANE

Clipping planes can be used in addition of those used created for the viewing volume. OpenGL define 6 clipping plane GL_CLIP_PLANEi (i goes from 0 to 5).
A clipping plane is a plane that separate the space in two regions. One region is included from the viewing volume, the other is excluded.

In mathematics, a plane is defined by this equation :
    a*x+b*y+c*z+d = 0
(x, y, z) are the coordinates of the points in the 3D space. All points that verify this equation are on the plane.
The inequality (< or > instead of =) define the region in each side of the plane.

In OpenGL, a clipping plane is the region defined by this equation :
    a*x+b*y+c*z+d >= 0
A clipping plane is creates with the 4 values a, b, c & d likethis :
    double[] eq = {a, b, c, d}
    gl.glClipPlane(GL_CLIP_PLANEieq)    

All points draw , the other are excluded (will not be rendered on the screen).

Like for lights, clipping planes have to be enable to be active :
    gl.glEnable(GL_CLIP_PLANEi) 

Read more...

  © Blogger templates ProBlogger Template by Ourblogtemplates.com 2008

Back to TOP