Fr/Projet Rembrandt: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 55: Line 55:
  In the culling pass, the cull visitor orders transparent surfaces in transparent bin. In a cull callback attached to the Geometry camera, after the scenegraph traversal, the transparent bins are removed from the render stage and saved in a temporary collection. In a cull callback attached to the Lighting camera, after the scenegraph traversal, the transparent bins saved at the previous stage, are added to the render stage of the Lighting camera with a high order num. That way, the transparent surface are drawn on top of the scene lighted from the Gbuffer.
  In the culling pass, the cull visitor orders transparent surfaces in transparent bin. In a cull callback attached to the Geometry camera, after the scenegraph traversal, the transparent bins are removed from the render stage and saved in a temporary collection. In a cull callback attached to the Lighting camera, after the scenegraph traversal, the transparent bins saved at the previous stage, are added to the render stage of the Lighting camera with a high order num. That way, the transparent surface are drawn on top of the scene lighted from the Gbuffer.


=== Memory consumption ===
=== Consommation de mémoire ===
For each camera defined in the camera group, there is a separate shadow map, so the video memory usage is :
Pour chaque caméra définie du groupe, il y a une carte d'ombre séparée, de telle sorte que l'utilisation de la mémoire vidéo soit:
* G-buffer and Lighting buffer: 20 bytes per pixel. For an HD screen (1920x1080) memory requirement is 40 Mb
* G-tampon et tampon lumière: 20 bytes par pixel. Pour un écran HD (1920x1080) la mémoire requise est de 40 Mb
* Shadow map: 3 x shadow_map_size x shadow_map_size bytes (if size is 8192, whole map size is 192 Mb
* Carte d'ombre 3 x taille_carte_ombre x shadow_map_size bytes (si la taille est 8192, la taille totale de la mémoire est 192 Mb
Not counting textures, display list or vertex buffers for models and terrain
Ne pas compter les textures, liste d'affichage ou tampons vertex pour kes modèles et terrains


3 HD screens require 120 Mb of memory for the buffers (shadow excluded), you're asking 3x8192x8192x3 = 576 Mb (megabytes) of memory for the shadows alone.
3 écrans HD ont besoin de 120 Mb de mémoire pour les tampons (ombre exclue), il vous faut  3x8192x8192x3 = 576 Mb (megabytes) de mémoire pour les seuls shadows.


If you are seeing error messages during startup or FlightGear doesn't start up properly, it's probably because you don't have enough free video memory. Reduce the size of the shadow map in preferences.xml by locating
Si vous voyez des messages d'erreur pendant le démarrage, ou si FlightGear ne démarre pas bien, c'est probablement parceque vous n'avez pas assez de mémoire vidéo libre. Réduisez la taille de la carte d'ombre dans préférences.xml  


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
Line 69: Line 69:
</syntaxhighlight>
</syntaxhighlight>


And put 4096 or 2048 instead.
Et mettez 4096 ou 2048 à la place.
You can also use a startup parameter: --prop:/sim/rendering/shadows/map-size=2048
Vous pouvez aussi utiliser un paramètre de démarrage: --prop:/sim/rendering/shadows/map-size=2048


=== Configurable pipeline ===
=== Pipeline configurable  ===


The Rembrandt renderer uses an XML file to setup its pipeline for each viewport described in the camera group. This file describes the way the intermediary buffers are setup and how the different rendering stages are sequenced. The general outline of a pipeline file is as follow :
Le rendu Rembrandt utilise un fichier XML pour installer son pipeline pour chaque fenêtre décrite dans le grpope de cameras.Ce fichier mntre la façon dont les tampons intermédiaires sont installés, et comment les stades des différents rendus sont agencés. Le schéma général du fichier pipeline est le suivant :


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
Line 97: Line 97:
</syntaxhighlight>
</syntaxhighlight>


==== Buffers ====
==== Tampons ====
A buffer is a texture used as a storage area in the GPU. It's size is usually a multiple of the screen size, but fixed size is supported (typical for shadow map). The description of a buffer is described below :
Un tampon est une texture utilisée comme zone de stockage dans le GPU. Sa taille est habituellement un multiple de la taille de l'écran, mais la taille fixée est prise en charge ( typique pour la carte shadow)La description d'un tampon suit :


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
88

edits

Navigation menu