Dokumentacja/Pulpit/Efekty 3D pulpitu

Z Mandriva Poland

Strona w trakcie tłumaczenia!
Ta strona jest ciągle tłumaczona i zawiera informacje w innym języku.
Strona w trakcie korekty językowej!
Trwa korekta językowa tej strony. Strona może ona zawierać błędy.

Po dokonaniu korekty proszę usunąć kategorię - strona do korekty.


Akceleracja pulpitu

Mandriva integruje wiele rozwiązań mających na celu graficzne przyspieszenie, w tym Xgl i AIGLX, które pozwalają na tworzenie efektów 3D przy użyciu menadżera compiz

Spis treści


Szybka instalacja

  • uruchom drak3d by skonfigurować efekty 3D pulpitu (jest dostępny w Centrum Sterowania Mandrivy)
  • rozpocznij nową X

Używanie (wtyczki compiz i skróty klawiszowe)

Decoration Włącza menadżera okien. Musisz uruchomić gnome-window-decorator lub kde-window-decorator gnome/kde, wsparcie w tej chwili tylko dla gnome

Move Przenoszenie okna w dowolne miejsce na ekranie

  • Przenieś okno = Alt + lewo-klik

Resize Zmiana rozmiaru okna w dowolnym miejscu na ekranie

  • Zmiana rozmiaru okna = Alt + prawo-klik

Place Umieszczenie okna w odpowiedniej pozycji podczas mapowania

Fade Windows/tooltips/menus fade in/out when opened/closed.

Switcher Alt+Tab Application switcher replacement.

  • Switch windows = Alt + Tab

Wobbly Makes windows wobble like jelly when moved or resized.

Minimize Renders windows from and to the Window list during minimizing and maximizing them.

Cube Provides the cube the virtual desktop is mapped upon. You can also configure svg slides on the top (as shown in the offical xgl presentation). This is (currently) a necessary prerequisite for rotate.

  • Switch desktops on cube = Ctrl + Alt + Left/Right Arrow
  • Switch desktops on cube - with active window following = Ctrl + Shift + Alt + Left/Right Arrow

Rotate Enables 3d desktop rotating via keyboard+mouse shortcuts.

  • Rotate desktop cube = Ctrl + Alt + Left-click on wallpaper and drag

Zoom Enables zooming in and around desktop.

  • Zoom-in once = Alt + right-click
  • Zoom-in manually = Alt + wheel mouse up
  • Zoom-out manually = Alt + wheel mouse down

Scale Exposé-like window-switcher.

Opacity The plugin allows you to change the currently focused window's opacity

  • Make window translucent/opaque = Ctrl+Shift+Mouse wheel

Other keyboard shortcuts

  • Snap Move window (will stick to borders) = Ctrl during move (either by Alt + left-click or by title bar)
  • Arrange and View All Windows = F12 turns on or off; clicking a window will zoom it to the front

Components

To have a 3D desktop in Mandriva 2007, an accelerated X server and a compositing manager are required. They can be installed by using the task-3ddesktop meta-package.

Accelerated X servers

AIGLX

AIGLX is directly integrated in the Xorg server.

Xgl

Xgl is a modified Xorg server that is running on top of an other Xorg server. Applications have to be run on the Xgl server display. 3D applications can't be run on top of Xgl, while it's possible with AIGLX.

Compositing manager

Compiz

Compiz is an OpenGL compositing manager and acts as a window manager. The Composite extension in the accelerated X servers allows to render window to buffers, which are then transformed to OpenGL textures in compiz, using the GLX_EXT_texture_from_pixmap extension. This allows to render a 3D desktop.

See Compiz shortcuts for keyboard shortcuts.

Compiz needs a window decorator, which is gnome-window-decorator by default.

Configuration

Automatic detection

AIGLX

The Xorg server automaticaly enables AIGLX whenever possible.

Xgl

The x11-server-xgl package provides a /etc/X11/xinit.d/01_xgl script that is run when a new X session start. If XGL is set to auto in /etc/sysconfig/xgl, the script performs the following checks using glxinfo:

  • direct rendering must be available
  • the GLX_EXT_texture_from_pixmap extension must not be available in both client and server GLX extensions (this would mean AIGLX may be preferred). If the conditions are met, an Xgl server is started, the DISPLAY variable is set to the Xgl server display and exported, and LD_LIBRARY_PATH is modified so that compiz use Mesa libraires instead of proprietary OpenGL libraries.

Compiz

The compiz package provides a /etc/X11/xinit.d/02_compiz script that is run when a new X session start (after the Xgl script). If COMPIZ is set to auto in /etc/sysconfig/compiz, the script performs the following checks using glxinfo:

  • direct rendering must be available
  • the _GLX_EXT_texture_from_pixmap_ extension must be available

If the conditions are met, compiz is started with its window decorator.

When AIGLX is used, compiz normally needs the --indirect-rendering and --strict-binding options. This is automatically detected by the compiz binary in the Mandriva package.

Manual configuration

  • set XGL to yes/no/auto in /etc/sysconfig/xgl
  • set COMPIZ to yes/no/auto in /etc/sysconfig/compiz
  • boot with the no3ddesktop command line option to disable both Xgl and compiz (if in automatic mode)

Supported chipsets

AIGLX

Xgl

  • Nvidia cards using the nvidia proprietary driver
  • ATI cards using the fglrx proprietary driver


References

Ad (via La Vignette)
Looking for a job?